Re: SV: Eclipse knows resources dir?

2006-11-07 Thread Daniel Serodio
Hermod Opstvedt wrote:
 Hi

 No problem, you need to go into settings/build/Sourcepath path and then add
 src/main/resources as a new source folder. Remember to set target as the
 default output folder
   
Actually, the default output folder should be target/classes/

HTH,
Daniel Serodio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SV: Eclipse knows resources dir?

2006-11-07 Thread hermod.opstvedt
Yepp

-Original Message-
From: Daniel Serodio [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 07, 2006 2:02 PM
To: Maven Users List
Subject: Re: SV: Eclipse knows resources dir?


Hermod Opstvedt wrote:
 Hi

 No problem, you need to go into settings/build/Sourcepath path and then add
 src/main/resources as a new source folder. Remember to set target as the
 default output folder
   
Actually, the default output folder should be target/classes/

HTH,
Daniel Serodio

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SV: Eclipse knows resources dir?

2006-11-02 Thread David J. M. Karlsen

jiangshachina wrote:

Hi Hermod,
Thanks very much.
  

you need to go into settings/build/Sourcepath path and then add
src/main/resources as a new source folder.


I don't exactly know what you indicated?
I didn't find settings/build/Sourcepath in any configuration file(Eclipse
or Maven).

But you have gave me very clue, and I set src/main/resources as src folder.
Then the trouble disappeared.

a cup of Java, cheers!
Sha Jiang
  
If you use the eclipse-plugin ( 
http://maven.apache.org/plugins/maven-eclipse-plugin/ ) this will be 
done automatically.


--
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SV: SV: Eclipse knows resources dir?

2006-11-02 Thread Hermod Opstvedt
Hi

No, it won't on an existing project. The Maven plugin only handles the
dependencies on it. It will not transform the source paths.

Hermod


-Opprinnelig melding-
Fra: David J. M. Karlsen [mailto:[EMAIL PROTECTED] 
Sendt: 2. november 2006 11:48
Til: Maven Users List
Emne: Re: SV: Eclipse knows resources dir?

jiangshachina wrote:
 Hi Hermod,
 Thanks very much.
   
 you need to go into settings/build/Sourcepath path and then add
 src/main/resources as a new source folder.
 
 I don't exactly know what you indicated?
 I didn't find settings/build/Sourcepath in any configuration
file(Eclipse
 or Maven).

 But you have gave me very clue, and I set src/main/resources as src
folder.
 Then the trouble disappeared.

 a cup of Java, cheers!
 Sha Jiang
   
If you use the eclipse-plugin ( 
http://maven.apache.org/plugins/maven-eclipse-plugin/ ) this will be 
done automatically.

-- 
David J. M. Karlsen - +47 90 68 22 43
http://www.davidkarlsen.com
http://mp3.davidkarlsen.com



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



SV: Eclipse knows resources dir?

2006-11-01 Thread Hermod Opstvedt
Hi

No problem, you need to go into settings/build/Sourcepath path and then add
src/main/resources as a new source folder. Remember to set target as the
default output folder

Hermod


-Opprinnelig melding-
Fra: jiangshachina [mailto:[EMAIL PROTECTED] 
Sendt: 2. november 2006 06:47
Til: users@maven.apache.org
Emne: Eclipse knows resources dir?


myapp
  |--pom.xml
  |--LICENSE.txt
  |--README.txt
  |--target/
  |--src/
  |--main
  |--java/
  |--webapp/
  |--WEB-INF/
  |--resources/
Maven recommends Application/Library resources should be located at
resources.
And when run mvn package, the files/directories would be copies into jar
file or classes dir(under WEB-INF dir).

I'm using Eclipse, if I use the directory structure, a trouble appears.
Eclipse doesn't think files/dirs under resources are resources for jar file.
Generally, resources would adhere to class files, then Eclipse can know the
files are resources for jar.

If I don't care resources dir, and put resource files into dir java, Eclipse
would work well.
But when run mvn package, the resource files don't be copied into jar
archive file.

How can I resolve the problem?
Thanks!

a cup of Java, cheers!
Sha Jiang
-- 
View this message in context:
http://www.nabble.com/Eclipse-knows-%22resources%22-dir--tf2557880s177.html#
a7128152
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: SV: Eclipse knows resources dir?

2006-11-01 Thread jiangshachina

Hi Hermod,
Thanks very much.
 you need to go into settings/build/Sourcepath path and then add
 src/main/resources as a new source folder.
I don't exactly know what you indicated?
I didn't find settings/build/Sourcepath in any configuration file(Eclipse
or Maven).

But you have gave me very clue, and I set src/main/resources as src folder.
Then the trouble disappeared.

a cup of Java, cheers!
Sha Jiang


Hermod Opstvedt wrote:
 
 Hi
 
 No problem, you need to go into settings/build/Sourcepath path and then
 add
 src/main/resources as a new source folder. Remember to set target as the
 default output folder
 
 Hermod
 
 
 -Opprinnelig melding-
 Fra: jiangshachina [mailto:[EMAIL PROTECTED] 
 Sendt: 2. november 2006 06:47
 Til: users@maven.apache.org
 Emne: Eclipse knows resources dir?
 
 
 myapp
   |--pom.xml
   |--LICENSE.txt
   |--README.txt
   |--target/
   |--src/
   |--main
   |--java/
   |--webapp/
   |--WEB-INF/
   |--resources/
 Maven recommends Application/Library resources should be located at
 resources.
 And when run mvn package, the files/directories would be copies into jar
 file or classes dir(under WEB-INF dir).
 
 I'm using Eclipse, if I use the directory structure, a trouble appears.
 Eclipse doesn't think files/dirs under resources are resources for jar
 file.
 Generally, resources would adhere to class files, then Eclipse can know
 the
 files are resources for jar.
 
 If I don't care resources dir, and put resource files into dir java,
 Eclipse
 would work well.
 But when run mvn package, the resource files don't be copied into jar
 archive file.
 
 How can I resolve the problem?
 Thanks!
 
 a cup of Java, cheers!
 Sha Jiang
 -- 
 View this message in context:
 http://www.nabble.com/Eclipse-knows-%22resources%22-dir--tf2557880s177.html#
 a7128152
 Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Eclipse-knows-%22resources%22-dir--tf2557880s177.html#a7128361
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]