You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by m h <lb...@yahoo.com> on 2005/09/06 22:32:49 UTC
ant plugin doesnt work?
Hi all
Im trying to produce an ant build.xml that works. I
put a build.properties file in my project base dir
that specifies
libdir=somedir
but when I do maven ant, the libdir is not set to my
specification. I have tried moving the
build.properties file to my home dir, and I have tried
setting the maven.ant.use.properties=true (even though
this is the default).
When I run with the -X option, the output indicates
that the file is being used, however this is not
backed up by what I see in the resulting build.xml.
Please advise.
Thank you.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ant plugin doesnt work?
Posted by m h <lb...@yahoo.com>.
I can open an issue; copying all the files and whatnot
will take some time as I have an NDA and there is
sensitive info in the requested output.
I have another issue; generating javadoc is failing (I
have modified the generated build.xml by hand so it
wont search for newer versions of deps, and I added
the <property file="build..." /> by hand)
The error is
<javadoc use="true" private="true"
destdir="${javadocdir}" author="true" version="true"
sourcepath="src/main/java" packagenames=".*">
any thoughts?
build.xml:148: No source files and no packages have
been specified
and the build.xml line referenced by the error is
--- Arnaud HERITIER <ah...@gmail.com> wrote:
> I don't have a linux to test it.
> is there someone who can reproduce this problem ??
> Can you open an issue and join to it :
> - the generated ant script
> - the logs of the script generation from maven (in
> debug with -X)
> - the logs when your run the script in ant (in
> verbose)
>
> Arnaud
>
> On 9/7/05, m h <lb...@yahoo.com> wrote:
> >
> > Guys thanx for your help.
> >
> > so I wrote a .sh script to generate
> build.properties
> > with my depency list. Every line looks like
> >
> > somedep.jar=/source/to/jar/somedep.jar
> >
> > unfortuneately when I run maven ant, it still sets
> > src to
> > http://www.ibiblio.org/maven/springf
> > ramework/jars/spring-1.1.5.jar
> >
> > (this is in the section with all the get dest
> > statements.
> >
> > remember, im using linux, with the latest stable
> > version of maven and the latest ant plugin.
> >
> >
> >
> > --- Arnaud HERITIER <ah...@gmail.com> wrote:
> >
> > >
> > >
> > > > Thanx for the quick reply. Yes, I am using
> 1.0.2.
> > > I shoudl
> > > > be able to specify maven.ant.use.properties
> int
> > > the
> > > > project.properties file, correct?
> > > yes
> > >
> > > >
> > > > Also, the doc on the website says this is
> supposed
> > > to be the
> > > > default behavior. Furthermore,that commandline
> > > doesnt
> > > > produce the desired result.
> > > :-(
> > >
> > > >
> > > > We have a picky client who doesnt want deps
> > > downloaded.
> > > > Otherwise we wouldnt be modifying the
> properties.
> > > ;)
> > >
> > > you can try to define a property for each
> dependency
> > > For example if you depends on
> commons-collections
> > > you can store the jar in a lib directory in your
> > > project and in your
> > > build.properties you set the following property
> (if
> > > it works :-( ) :
> > >
> >
>
commons-collection.jar=${basedir}/lib/commons-collections-3.0.jar
> > >
> > > But it will not resolve the problem with the
> libdir
> > > property :-(
> > >
> > > Arnaud
> > >
> > > It's the time to go to bed : I'll not be able to
> > > help you more tonight.
> > >
> > > >
> > > > mike
> > > >
> > > >
> > > >
> > > > --- Arnaud HERITIER <ah...@gmail.com>
> wrote:
> > > >
> > > > > You are using maven 1.0.2 ?
> > > > >
> > > > > "maven ant -Dmaven.ant.use.properties=true"
> > > should create the
> > > > > build.xml in your project's root directory.
> > > > >
> > > > > Then in your build.properties (stored in
> your
> > > project's
> > > > root dir or in
> > > > > your user's home dir) you should set the
> > > properties for the
> > > > script :-(
> > > > >
> > > > > Arnaud
> > > > >
> > > > > >
> > > > > > Hi all
> > > > > >
> > > > > > Im trying to produce an ant build.xml that
> > > works.
> > > > > I put a
> > > > > > build.properties file in my project base
> dir
> > > that
> > > > > specifies
> > > > > >
> > > > > > libdir=somedir
> > > > > >
> > > > > > but when I do maven ant, the libdir is not
> set
> > > to
> > > > > my
> > > > > > specification. I have tried moving the
> > > > > > build.properties file to my home dir, and
> I
> > > have
> > > > > tried
> > > > > > setting the maven.ant.use.properties=true
> > > (even
> > > > > though this
> > > > > > is the default).
> > > > > >
> > > > > > When I run with the -X option, the output
> > > > > indicates that the
> > > > > > file is being used, however this is not
> backed
> > > up
> > > > > by what I
> > > > > > see in the resulting build.xml.
> > > > > >
> > > > > > Please advise.
> > > > > >
> > > > > > Thank you.
> > > > > >
> > > > > >
> > >
> __________________________________________________
> > > > > > Do You Yahoo!?
> > > > > > Tired of spam? Yahoo! Mail has the best
> spam
> > > > > protection
> > > > > > around http://mail.yahoo.com
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > > > 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!?
> > > > Tired of spam? Yahoo! Mail has the best spam
> > > protection
> > > > around http://mail.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > users-unsubscribe@maven.apache.org
> > > > For additional commands, e-mail:
> > > users-help@maven.apache.org
> > > >
>
=== message truncated ===
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: ant plugin doesnt work?
Posted by Arnaud HERITIER <ah...@gmail.com>.
I don't have a linux to test it.
is there someone who can reproduce this problem ??
Can you open an issue and join to it :
- the generated ant script
- the logs of the script generation from maven (in debug with -X)
- the logs when your run the script in ant (in verbose)
Arnaud
On 9/7/05, m h <lb...@yahoo.com> wrote:
>
> Guys thanx for your help.
>
> so I wrote a .sh script to generate build.properties
> with my depency list. Every line looks like
>
> somedep.jar=/source/to/jar/somedep.jar
>
> unfortuneately when I run maven ant, it still sets
> src to
> http://www.ibiblio.org/maven/springf
> ramework/jars/spring-1.1.5.jar
>
> (this is in the section with all the get dest
> statements.
>
> remember, im using linux, with the latest stable
> version of maven and the latest ant plugin.
>
>
>
> --- Arnaud HERITIER <ah...@gmail.com> wrote:
>
> >
> >
> > > Thanx for the quick reply. Yes, I am using 1.0.2.
> > I shoudl
> > > be able to specify maven.ant.use.properties int
> > the
> > > project.properties file, correct?
> > yes
> >
> > >
> > > Also, the doc on the website says this is supposed
> > to be the
> > > default behavior. Furthermore,that commandline
> > doesnt
> > > produce the desired result.
> > :-(
> >
> > >
> > > We have a picky client who doesnt want deps
> > downloaded.
> > > Otherwise we wouldnt be modifying the properties.
> > ;)
> >
> > you can try to define a property for each dependency
> > For example if you depends on commons-collections
> > you can store the jar in a lib directory in your
> > project and in your
> > build.properties you set the following property (if
> > it works :-( ) :
> >
> commons-collection.jar=${basedir}/lib/commons-collections-3.0.jar
> >
> > But it will not resolve the problem with the libdir
> > property :-(
> >
> > Arnaud
> >
> > It's the time to go to bed : I'll not be able to
> > help you more tonight.
> >
> > >
> > > mike
> > >
> > >
> > >
> > > --- Arnaud HERITIER <ah...@gmail.com> wrote:
> > >
> > > > You are using maven 1.0.2 ?
> > > >
> > > > "maven ant -Dmaven.ant.use.properties=true"
> > should create the
> > > > build.xml in your project's root directory.
> > > >
> > > > Then in your build.properties (stored in your
> > project's
> > > root dir or in
> > > > your user's home dir) you should set the
> > properties for the
> > > script :-(
> > > >
> > > > Arnaud
> > > >
> > > > >
> > > > > Hi all
> > > > >
> > > > > Im trying to produce an ant build.xml that
> > works.
> > > > I put a
> > > > > build.properties file in my project base dir
> > that
> > > > specifies
> > > > >
> > > > > libdir=somedir
> > > > >
> > > > > but when I do maven ant, the libdir is not set
> > to
> > > > my
> > > > > specification. I have tried moving the
> > > > > build.properties file to my home dir, and I
> > have
> > > > tried
> > > > > setting the maven.ant.use.properties=true
> > (even
> > > > though this
> > > > > is the default).
> > > > >
> > > > > When I run with the -X option, the output
> > > > indicates that the
> > > > > file is being used, however this is not backed
> > up
> > > > by what I
> > > > > see in the resulting build.xml.
> > > > >
> > > > > Please advise.
> > > > >
> > > > > Thank you.
> > > > >
> > > > >
> > __________________________________________________
> > > > > Do You Yahoo!?
> > > > > Tired of spam? Yahoo! Mail has the best spam
> > > > protection
> > > > > around http://mail.yahoo.com
> > > > >
> > > > >
> > > >
> > >
> >
> ---------------------------------------------------------------------
> > > > > 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!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > protection
> > > around http://mail.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > 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
> >
> >
>
>
>
>
>
> ______________________________________________________
> Click here to donate to the Hurricane Katrina relief effort.
> http://store.yahoo.com/redcross-donate3/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
RE: ant plugin doesnt work?
Posted by m h <lb...@yahoo.com>.
Guys thanx for your help.
so I wrote a .sh script to generate build.properties
with my depency list. Every line looks like
somedep.jar=/source/to/jar/somedep.jar
unfortuneately when I run maven ant, it still sets
src to
http://www.ibiblio.org/maven/springf
ramework/jars/spring-1.1.5.jar
(this is in the section with all the get dest
statements.
remember, im using linux, with the latest stable
version of maven and the latest ant plugin.
--- Arnaud HERITIER <ah...@gmail.com> wrote:
>
>
> > Thanx for the quick reply. Yes, I am using 1.0.2.
> I shoudl
> > be able to specify maven.ant.use.properties int
> the
> > project.properties file, correct?
> yes
>
> >
> > Also, the doc on the website says this is supposed
> to be the
> > default behavior. Furthermore,that commandline
> doesnt
> > produce the desired result.
> :-(
>
> >
> > We have a picky client who doesnt want deps
> downloaded.
> > Otherwise we wouldnt be modifying the properties.
> ;)
>
> you can try to define a property for each dependency
> For example if you depends on commons-collections
> you can store the jar in a lib directory in your
> project and in your
> build.properties you set the following property (if
> it works :-( ) :
>
commons-collection.jar=${basedir}/lib/commons-collections-3.0.jar
>
> But it will not resolve the problem with the libdir
> property :-(
>
> Arnaud
>
> It's the time to go to bed : I'll not be able to
> help you more tonight.
>
> >
> > mike
> >
> >
> >
> > --- Arnaud HERITIER <ah...@gmail.com> wrote:
> >
> > > You are using maven 1.0.2 ?
> > >
> > > "maven ant -Dmaven.ant.use.properties=true"
> should create the
> > > build.xml in your project's root directory.
> > >
> > > Then in your build.properties (stored in your
> project's
> > root dir or in
> > > your user's home dir) you should set the
> properties for the
> > script :-(
> > >
> > > Arnaud
> > >
> > > >
> > > > Hi all
> > > >
> > > > Im trying to produce an ant build.xml that
> works.
> > > I put a
> > > > build.properties file in my project base dir
> that
> > > specifies
> > > >
> > > > libdir=somedir
> > > >
> > > > but when I do maven ant, the libdir is not set
> to
> > > my
> > > > specification. I have tried moving the
> > > > build.properties file to my home dir, and I
> have
> > > tried
> > > > setting the maven.ant.use.properties=true
> (even
> > > though this
> > > > is the default).
> > > >
> > > > When I run with the -X option, the output
> > > indicates that the
> > > > file is being used, however this is not backed
> up
> > > by what I
> > > > see in the resulting build.xml.
> > > >
> > > > Please advise.
> > > >
> > > > Thank you.
> > > >
> > > >
> __________________________________________________
> > > > Do You Yahoo!?
> > > > Tired of spam? Yahoo! Mail has the best spam
> > > protection
> > > > around http://mail.yahoo.com
> > > >
> > > >
> > >
> >
>
---------------------------------------------------------------------
> > > > 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!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection
> > around http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > 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
>
>
______________________________________________________
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: ant plugin doesnt work?
Posted by Arnaud HERITIER <ah...@gmail.com>.
> Thanx for the quick reply. Yes, I am using 1.0.2. I shoudl
> be able to specify maven.ant.use.properties int the
> project.properties file, correct?
yes
>
> Also, the doc on the website says this is supposed to be the
> default behavior. Furthermore,that commandline doesnt
> produce the desired result.
:-(
>
> We have a picky client who doesnt want deps downloaded.
> Otherwise we wouldnt be modifying the properties. ;)
you can try to define a property for each dependency
For example if you depends on commons-collections you can store the jar in a lib directory in your project and in your
build.properties you set the following property (if it works :-( ) :
commons-collection.jar=${basedir}/lib/commons-collections-3.0.jar
But it will not resolve the problem with the libdir property :-(
Arnaud
It's the time to go to bed : I'll not be able to help you more tonight.
>
> mike
>
>
>
> --- Arnaud HERITIER <ah...@gmail.com> wrote:
>
> > You are using maven 1.0.2 ?
> >
> > "maven ant -Dmaven.ant.use.properties=true" should create the
> > build.xml in your project's root directory.
> >
> > Then in your build.properties (stored in your project's
> root dir or in
> > your user's home dir) you should set the properties for the
> script :-(
> >
> > Arnaud
> >
> > >
> > > Hi all
> > >
> > > Im trying to produce an ant build.xml that works.
> > I put a
> > > build.properties file in my project base dir that
> > specifies
> > >
> > > libdir=somedir
> > >
> > > but when I do maven ant, the libdir is not set to
> > my
> > > specification. I have tried moving the
> > > build.properties file to my home dir, and I have
> > tried
> > > setting the maven.ant.use.properties=true (even
> > though this
> > > is the default).
> > >
> > > When I run with the -X option, the output
> > indicates that the
> > > file is being used, however this is not backed up
> > by what I
> > > see in the resulting build.xml.
> > >
> > > Please advise.
> > >
> > > Thank you.
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam
> > protection
> > > around http://mail.yahoo.com
> > >
> > >
> >
> ---------------------------------------------------------------------
> > > 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!?
> Tired of spam? Yahoo! Mail has the best spam protection
> around http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> 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
RE: ant plugin doesnt work?
Posted by m h <lb...@yahoo.com>.
Thanx for the quick reply. Yes, I am using 1.0.2. I
shoudl be able to specify maven.ant.use.properties int
the project.properties file, correct?
Also, the doc on the website says this is supposed to
be the default behavior. Furthermore,that commandline
doesnt produce the desired result.
We have a picky client who doesnt want deps
downloaded. Otherwise we wouldnt be modifying the
properties. ;)
mike
--- Arnaud HERITIER <ah...@gmail.com> wrote:
> You are using maven 1.0.2 ?
>
> "maven ant -Dmaven.ant.use.properties=true" should
> create the build.xml in your project's root
> directory.
>
> Then in your build.properties (stored in your
> project's root dir or in your user's home dir) you
> should set the properties for the
> script :-(
>
> Arnaud
>
> >
> > Hi all
> >
> > Im trying to produce an ant build.xml that works.
> I put a
> > build.properties file in my project base dir that
> specifies
> >
> > libdir=somedir
> >
> > but when I do maven ant, the libdir is not set to
> my
> > specification. I have tried moving the
> > build.properties file to my home dir, and I have
> tried
> > setting the maven.ant.use.properties=true (even
> though this
> > is the default).
> >
> > When I run with the -X option, the output
> indicates that the
> > file is being used, however this is not backed up
> by what I
> > see in the resulting build.xml.
> >
> > Please advise.
> >
> > Thank you.
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam
> protection
> > around http://mail.yahoo.com
> >
> >
>
---------------------------------------------------------------------
> > 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!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: ant plugin doesnt work?
Posted by Arnaud HERITIER <ah...@gmail.com>.
You are using maven 1.0.2 ?
"maven ant -Dmaven.ant.use.properties=true" should create the build.xml in your project's root directory.
Then in your build.properties (stored in your project's root dir or in your user's home dir) you should set the properties for the
script :-(
Arnaud
>
> Hi all
>
> Im trying to produce an ant build.xml that works. I put a
> build.properties file in my project base dir that specifies
>
> libdir=somedir
>
> but when I do maven ant, the libdir is not set to my
> specification. I have tried moving the
> build.properties file to my home dir, and I have tried
> setting the maven.ant.use.properties=true (even though this
> is the default).
>
> When I run with the -X option, the output indicates that the
> file is being used, however this is not backed up by what I
> see in the resulting build.xml.
>
> Please advise.
>
> Thank you.
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection
> around http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> 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