You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "King_Henree@yahoo.com" <ki...@yahoo.com> on 2004/02/24 16:39:33 UTC
How do I include multiple java source directories in Maven?
I am using XDoclet with Maven and when XDoclet
generates additional java source files it puts those
in a separate directory. How do I make Maven use
multiple source directories for compilation using the
"java:compile" goal?
Thanks.
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Where can I get info about Maven tasks and goals?
Posted by Emmanuel Venisse <em...@venisse.net>.
addPath tag is documented here :
http://maven.apache.org/tags.html
Emmanuel
----- Original Message -----
From: "King_Henree@yahoo.com" <ki...@yahoo.com>
To: "Maven Users List" <us...@maven.apache.org>
Sent: Tuesday, February 24, 2004 5:55 PM
Subject: Where can I get info about Maven tasks and goals?
> Where can I find information on Maven tasks like
> "<maven:addPath/>"? I have not seen any documentation
> about these tasks available to maven.
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Where can I get info about Maven tasks and goals?
Posted by "King_Henree@yahoo.com" <ki...@yahoo.com>.
Where can I find information on Maven tasks like
"<maven:addPath/>"? I have not seen any documentation
about these tasks available to maven.
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How do I include multiple java source directories in Maven?
Posted by "King_Henree@yahoo.com" <ki...@yahoo.com>.
Nevermind, I figured it out. I used <maven:addPath/>
instead of <addPath/> to which puts it in the correct
context I presume.
Thanks.
--- "King_Henree@yahoo.com" <ki...@yahoo.com>
wrote:
> OS: Windows 2000
> Maven: 1.0-rc1
>
> I have tried the <addPath/> task inside maven.xml,
> but
> it does not work. What am I doing wrong?
>
> ********************************************
> maven.xml:
>
> <preGoal name="java:compile">
> <path
> id="src.java.compile.src.set"
> location="${src.java.dir}" />
> <addPath
> id="maven.compile.src.set"
> refid="src.java.compile.src.set" />
>
> <path
> id="gen-src.java.compile.src.set"
> location="${target.gen_src.dir}" />
> <addPath
> id="maven.compile.src.set"
> refid="gen-src.java.compile.src.set" />
>
> <attainGoal name="xdoclet-ejbdoclet"/>
> <attainGoal name="xdoclet-webdoclet"/>
> </preGoal>
>
> ********************************************
> project.properties:
>
> src.java.dir=src/java
> target.gen_src.dir=target/gen-src
>
> Thanks.
>
>
> --- "King_Henree@yahoo.com" <ki...@yahoo.com>
> wrote:
> > Thanks everyone for their help. Although, it sure
> > would be nice if we could simply do something like
> > the
> > following within the project.xml file:
> >
> > <build>
> > <sourceDirectories>
> > <sourceDirectory>dir1</sourceDirectory>
> > <sourceDirectory>dir2</sourceDirectory>
> > </sourceDirectories>
> > </build>
> >
> > Also, where can I find information on Maven tasks
> > like
> > "<maven:addPath/>"? I have not seen any
> > documentation
> > about these tasks available to maven.
> >
> > Thanks.
> >
> > --- Johan Andries <ja...@schaubroeck.be> wrote:
> > > Hello,
> > >
> > > AFAIK the only solution to specify multiple
> source
> > > dirs which is available
> > > at the moment can be found at:
> > >
> >
>
http://wiki.codehaus.org/maven/FrequentlyAskedQuestions#head-7545bdc005f855e
> > > 6b2009275529746f011a9ebcd.
> > >
> > > Also have a peek at
> > >
> >
>
http://wiki.codehaus.org/maven/CreatingJ2eeApplications.
> > >
> > > regards,
> > > Johan
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "King_Henree@yahoo.com"
> > > <ki...@yahoo.com>
> > > To: <us...@maven.apache.org>
> > > Sent: Tuesday, February 24, 2004 4:39 PM
> > > Subject: How do I include multiple java source
> > > directories in Maven?
> > >
> > >
> > > > I am using XDoclet with Maven and when XDoclet
> > > > generates additional java source files it puts
> > > those
> > > > in a separate directory. How do I make Maven
> > use
> > > > multiple source directories for compilation
> > using
> > > the
> > > > "java:compile" goal?
> > > >
> > > > Thanks.
> > > >
> > > > __________________________________
> > > > Do you Yahoo!?
> > > > Yahoo! Mail SpamGuard - Read only the mail you
> > > want.
> > > > http://antispam.yahoo.com/tools
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail:
> > > users-help@maven.apache.org
> > > >
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail:
> > > users-help@maven.apache.org
> > >
> >
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail SpamGuard - Read only the mail you
> want.
> > http://antispam.yahoo.com/tools
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> > users-help@maven.apache.org
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How do I include multiple java source directories in Maven?
Posted by "King_Henree@yahoo.com" <ki...@yahoo.com>.
OS: Windows 2000
Maven: 1.0-rc1
I have tried the <addPath/> task inside maven.xml, but
it does not work. What am I doing wrong?
********************************************
maven.xml:
<preGoal name="java:compile">
<path
id="src.java.compile.src.set"
location="${src.java.dir}" />
<addPath
id="maven.compile.src.set"
refid="src.java.compile.src.set" />
<path
id="gen-src.java.compile.src.set"
location="${target.gen_src.dir}" />
<addPath
id="maven.compile.src.set"
refid="gen-src.java.compile.src.set" />
<attainGoal name="xdoclet-ejbdoclet"/>
<attainGoal name="xdoclet-webdoclet"/>
</preGoal>
********************************************
project.properties:
src.java.dir=src/java
target.gen_src.dir=target/gen-src
Thanks.
--- "King_Henree@yahoo.com" <ki...@yahoo.com>
wrote:
> Thanks everyone for their help. Although, it sure
> would be nice if we could simply do something like
> the
> following within the project.xml file:
>
> <build>
> <sourceDirectories>
> <sourceDirectory>dir1</sourceDirectory>
> <sourceDirectory>dir2</sourceDirectory>
> </sourceDirectories>
> </build>
>
> Also, where can I find information on Maven tasks
> like
> "<maven:addPath/>"? I have not seen any
> documentation
> about these tasks available to maven.
>
> Thanks.
>
> --- Johan Andries <ja...@schaubroeck.be> wrote:
> > Hello,
> >
> > AFAIK the only solution to specify multiple source
> > dirs which is available
> > at the moment can be found at:
> >
>
http://wiki.codehaus.org/maven/FrequentlyAskedQuestions#head-7545bdc005f855e
> > 6b2009275529746f011a9ebcd.
> >
> > Also have a peek at
> >
>
http://wiki.codehaus.org/maven/CreatingJ2eeApplications.
> >
> > regards,
> > Johan
> >
> >
> >
> > ----- Original Message -----
> > From: "King_Henree@yahoo.com"
> > <ki...@yahoo.com>
> > To: <us...@maven.apache.org>
> > Sent: Tuesday, February 24, 2004 4:39 PM
> > Subject: How do I include multiple java source
> > directories in Maven?
> >
> >
> > > I am using XDoclet with Maven and when XDoclet
> > > generates additional java source files it puts
> > those
> > > in a separate directory. How do I make Maven
> use
> > > multiple source directories for compilation
> using
> > the
> > > "java:compile" goal?
> > >
> > > Thanks.
> > >
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail SpamGuard - Read only the mail you
> > want.
> > > http://antispam.yahoo.com/tools
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail:
> > users-help@maven.apache.org
> > >
> >
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> > users-help@maven.apache.org
> >
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How do I include multiple java source directories in Maven?
Posted by "King_Henree@yahoo.com" <ki...@yahoo.com>.
Thanks everyone for their help. Although, it sure
would be nice if we could simply do something like the
following within the project.xml file:
<build>
<sourceDirectories>
<sourceDirectory>dir1</sourceDirectory>
<sourceDirectory>dir2</sourceDirectory>
</sourceDirectories>
</build>
Also, where can I find information on Maven tasks like
"<maven:addPath/>"? I have not seen any documentation
about these tasks available to maven.
Thanks.
--- Johan Andries <ja...@schaubroeck.be> wrote:
> Hello,
>
> AFAIK the only solution to specify multiple source
> dirs which is available
> at the moment can be found at:
>
http://wiki.codehaus.org/maven/FrequentlyAskedQuestions#head-7545bdc005f855e
> 6b2009275529746f011a9ebcd.
>
> Also have a peek at
>
http://wiki.codehaus.org/maven/CreatingJ2eeApplications.
>
> regards,
> Johan
>
>
>
> ----- Original Message -----
> From: "King_Henree@yahoo.com"
> <ki...@yahoo.com>
> To: <us...@maven.apache.org>
> Sent: Tuesday, February 24, 2004 4:39 PM
> Subject: How do I include multiple java source
> directories in Maven?
>
>
> > I am using XDoclet with Maven and when XDoclet
> > generates additional java source files it puts
> those
> > in a separate directory. How do I make Maven use
> > multiple source directories for compilation using
> the
> > "java:compile" goal?
> >
> > Thanks.
> >
> > __________________________________
> > Do you Yahoo!?
> > Yahoo! Mail SpamGuard - Read only the mail you
> want.
> > http://antispam.yahoo.com/tools
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> > For additional commands, e-mail:
> users-help@maven.apache.org
> >
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@maven.apache.org
> For additional commands, e-mail:
> users-help@maven.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: How do I include multiple java source directories in Maven?
Posted by Johan Andries <ja...@schaubroeck.be>.
Hello,
AFAIK the only solution to specify multiple source dirs which is available
at the moment can be found at:
http://wiki.codehaus.org/maven/FrequentlyAskedQuestions#head-7545bdc005f855e
6b2009275529746f011a9ebcd.
Also have a peek at http://wiki.codehaus.org/maven/CreatingJ2eeApplications.
regards,
Johan
----- Original Message -----
From: "King_Henree@yahoo.com" <ki...@yahoo.com>
To: <us...@maven.apache.org>
Sent: Tuesday, February 24, 2004 4:39 PM
Subject: How do I include multiple java source directories in Maven?
> I am using XDoclet with Maven and when XDoclet
> generates additional java source files it puts those
> in a separate directory. How do I make Maven use
> multiple source directories for compilation using the
> "java:compile" goal?
>
> Thanks.
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail SpamGuard - Read only the mail you want.
> http://antispam.yahoo.com/tools
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org