Using a project name different than the artifactId in eclipse-plugin

2008-05-05 Thread Cyril Ledru
Hi all,

I have a problem with the maven-eclipse-plugin. I have a multi module
architecture and two of my projects don't have a name (eclipse wise) equal
to their artifactId.
When I execute mvn eclipse:eclipse, the projects referencing those two
really reference projects named after the artifactId which don't exists, and
I then have to edit eclipse classpaths manually each time.

I tried setting the projectNameTemplate to a hardcoded name, but it expects
properties like [artifactId], [groupId], etc which is not what I'm looking
for and that doesn't seem to work.
So is there a way to tell eclipse-plugin to use a different name than the
artifactId ?

Thanks in advance,
Cyril.


Re: Multiple source tree in maven 2

2008-03-15 Thread Cyril Ledru
Hi,

I had this problem earlier trying to migrate from ant.
I had sources in src/java and src/util.

What I did is put the  sourceDirectory to src and put includes and
excludes in the maven-compiler-plugin configuration.
So for you it would be modules in sourceDirectory and then

includes
  includex/src/**/*.java/include
  includey/src/**/*.java/include
  includez/src/**/*.java/include
/includes

in the configuration element of maven-compiler-plugin.

The only problem I have so far is that doing mvn eclipse:eclipse result in
having only src as source directory so I have to edit my eclipse build path
by hand.

Having said that I must add that I'm a maven newby and that there's maybe a
better way to do it.

Cyril.

On Sat, Mar 15, 2008 at 5:21 PM, david.delbecq [EMAIL PROTECTED] wrote:

 Hello,

 am trying to mavenize an existing ant based projet. One of the
 caracteristics of the project is it's source tree organization

 modules/x/src/...
 modules/y/src/...
 modules/z/src/...

 I thought first of using maven modules for this, but the dependency
 graph makes it impossible (x depends on y which depends on z which
 depends on x, it's just an example). The current ant task just build all
 modules at same time in a single jar. So we'd like to make that too with
 maven2 (the mavenization should not imply a code reorg, whe just want
 that project to provide a pom + jar + dependencies informations). I
 tried to put multiple sourceDirectory entries, but maven complains
 there can be only one.

 Anyone has a suggestion on how to put multiple tree in compilation? It
 seems possible to put multiple resource trees, but not multiple source
 trees? Maybe using the generate-source goal and some copy goals, someone
 has suggestions?



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