Re: [m2] adding classpathentry with maven-eclipse-plugin

2007-04-27 Thread Adrian Herscu
Here is one use case (or probably something missing from 
maven-eclipse-plugin):


- add a resource folder to your Java project
- add it in the pom.xml
- write some code to load some resource (e.g. using getResourceAsStream)
- test the project using M2 -- the resource will be found
- test the project in Eclipse -- the resource will *not* be found

In order to run/test/debug the project in Eclipse, you will have to 
manually add that resource folder to the .classpath descriptor file.
The maven-eclipse-plugin could automatically add that resource folder as 
a classpathentry.

Adrian.

Adrian Herscu wrote:

Solved by adding that classpath using the build-helper-maven-plugin.

Thorsten Heit wrote:

Hi Adrian,


Is there some way to add a classpathentry such as

   

to the .classpath file?

It seems that the plugin knows only about classpath containers :-(


AFAIK no. The plugin only adds all the dependencies contained in your 
pom.xml to the .classpath file. Just for curiosity: What's your use case?



Thorsten



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



Re: [m2] adding classpathentry with maven-eclipse-plugin

2007-04-23 Thread Adrian Herscu

Solved by adding that classpath using the build-helper-maven-plugin.

Thorsten Heit wrote:

Hi Adrian,


Is there some way to add a classpathentry such as

   

to the .classpath file?

It seems that the plugin knows only about classpath containers :-(


AFAIK no. The plugin only adds all the dependencies contained in your pom.xml 
to the .classpath file. Just for curiosity: What's your use case?


Thorsten



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



Re: [m2] adding classpathentry with maven-eclipse-plugin

2007-04-18 Thread Thorsten Heit
Hi Adrian,

> Is there some way to add a classpathentry such as
> 
>
> 
> to the .classpath file?
> 
> It seems that the plugin knows only about classpath containers :-(

AFAIK no. The plugin only adds all the dependencies contained in your pom.xml 
to the .classpath file. Just for curiosity: What's your use case?


Thorsten

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



[m2] adding classpathentry with maven-eclipse-plugin

2007-04-18 Thread Adrian Herscu

Hi all,

Is there some way to add a classpathentry such as

  

to the .classpath file?

It seems that the plugin knows only about classpath containers :-(

Adrian.


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