Hello Siarhei,

This is working very well for me but, it is incomplete. I have other source 
folders because I'm using Groovy and AspectJ too. I can add the source folders 
for these other languages but I cannot set the output directories for these 
sources from my pom so I have to manually set them in Eclipse. This is what I 
am trying to avoid.

________________________________
Pierre



----- Original Message ----
From: Siarhei Dudzin <[EMAIL PROTECTED]>
To: Maven Users List <[email protected]>
Sent: Wednesday, July 23, 2008 8:12:05 AM
Subject: Re: Setting output folders in Eclipse

Hi Pierre,

Assuming you use maven-eclipse-project you should have the following
settings in your .classpath generated automagically:

<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java" *
output="target/test-classes"*/>
<classpathentry kind="output" *path="target/classes"*/>


As you see the output directory for the test classes is separate. Does that
not work for you?

Regards,
Siarhei

On Wed, Jul 23, 2008 at 1:55 PM, Pierre Thibault <[EMAIL PROTECTED]>
wrote:

> Yes, the output directory is the target directory. Eclipse call them them
> 'output folders' while maven call them 'target directories'. I have two
> target directories in my project: target/classes and target/test-classes.
> This is the convention made by Maven. But in Eclipse, I have to set them
> manually to follow the convention. Each source directory can have its own
> destination folder in Eclipse. This is where class files will go. No need to
> create another project.
>
> ________________________________
> Pierre
>
>
>
> ----- Original Message ----
> From: Vedanta Ulises <[EMAIL PROTECTED]>
> To: Maven Users List <[email protected]>
> Sent: Wednesday, July 23, 2008 5:17:07 AM
> Subject: Re: Setting output folders in Eclipse
>
> I assume the output is the *target* directory.
> And It is uncommon case :) Usually if you need different output for
> different source you create another project for it.
> But i do not know what exactly what you want, try using assembly instead
>
> here is the official reference from maven about *assembly* :)
> http://maven.apache.org/plugins/maven-assembly-plugin/
>
> On Wed, Jul 23, 2008 at 3:06 PM, Arnaud HERITIER <[EMAIL PROTECTED]>
> wrote:
>
> > No
> >
> > Arnaud
> >
> > On Wed, Jul 23, 2008 at 3:52 AM, Pierre Thibault <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hello,
> > >
> > > Is it possible to set the output folders for different source folders
> > when
> > > creating the Eclipse project with 'mvn eclipse:eclipse'?
> > >
> > > ________________________________
> > > Pierre
> > >
> > >
> > >
> > >      __________________________________________________________________
> > > Get the name you've always wanted @ymail.com or @rocketmail.com! Go to
> > > http://ca.promos.yahoo.com/jacko/
> > >
> >
> >
> >
> > --
> > ..........................................................
> > Arnaud HERITIER
> > ..........................................................
> > OCTO Technology - aheritier AT octo DOT com
> > www.octo.com | blog.octo.com
> > ..........................................................
> > ASF - aheritier AT apache DOT org
> > www.apache.org | maven.apache.org
> > ...........................................................
> >
>
>
>
> --
> Vedanta Ulises
>
> -- The Beginning of knowledge is
> the discovery of something we do not understand
> --Frank Herber(1920-1986)--
>
>
>
>       __________________________________________________________________
> Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo!
> Canada Messenger at http://ca.beta.messenger.yahoo.com/
>



      __________________________________________________________________
Get a sneak peak at messages with a handy reading pane with All new Yahoo! 
Mail: http://ca.promos.yahoo.com/newmail/overview2/

Reply via email to