You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Craig Gaffney <ga...@rinstrum.com> on 2004/06/23 01:18:45 UTC
Manual deploying Jar files - Update
G'Day everyone,
Firstly, thanks for all the various tips and pointers that
people have been giving me.
Just a recap - the maven project in question is one suggested on
the Maven - Using Maven page - apache-turbine-torque. This is not one
that I have started myself, though I am getting more tempted to try that
approach.
Anyway, I thought that if the following appeared in the
project.xml file
<dependency>
<id>jndi</id>
<version>1.2.1</version>
<url>http://java.sun.com/products/jndi/</url>
</dependency>
maven would look for repo/jdni/jars/jndi-1.2.1.jar, and if that
was not found, then try in the remote repository.
I manually created the directory, and placed the jndi-1.2.1.jar
in there, maven does not appear to find it.
Anyway, does anyone have a (relatively) simple maven based
project for a beginner to look at, in a manner that would be helpful as
a learning tool? Ultimately, that's what I am looking for.
Once again, thanks everyone for your help.
Cheers,
Craig Gaffney
PC Applications Developer
Rinstrum Pty Ltd (formerly Ranger Instruments)
41 Success St, Acacia Ridge Qld 4110 Australia
Ph: +61 7 3216 7166
Fax: +61 7 3216 6211
Email: gaffney@rinstrum.com
Web: www.rinstrum.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: clean-up test garbage
Posted by "Jefferson K. French" <je...@frenches.org>.
You can add a postGoal to clean:clean to get rid of them:
<postGoal name="clean:clean">
<delete>
<fileset dir="${basedir}" includes="junit*.properties"/>
</delete>
</postGoal>
I do that to get rid of some files like maven.log and velocity.log.
Jeff
On Wed, 23 Jun 2004, at 17:03:36 [GMT +0200] Maarten Coene wrote:
> Hi,
> everytime I execute my unit tests, maven creates a new file in my
> basedir, e.g. "junit458743546.properties". These files never gets
> deleted, so if you don't do this manually, after a while the basedir
> contains a lot of these files. How can I tell the test-plugin to stop
> generating this file, or how can I tell the clean-plugin to delete this
> file?
> I'm using maven RC3.
> thanks,
> Maarten
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: clean-up test garbage
Posted by Eric Pugh <ep...@upstate.com>.
I often stick a post goal on clean to fix these if I have a bunch..
> -----Original Message-----
> From: dan tran [mailto:dantran@gmail.com]
> Sent: Wednesday, June 23, 2004 5:34 PM
> To: Maven Users List
> Subject: Re: clean-up test garbage
>
>
> Maarten,
>
> Internally maven-test-plugin uses junit's ant task to do the job
> junitxxxx.properties is generated by ant task. Therefore, i doubt
> maven can disable this generated file. Normally this file
> is removed automatically by ant task unless you interrupt it.
>
> -Dan
>
>
> On Wed, 23 Jun 2004 17:03:36 +0200, Maarten Coene
> <ma...@toughguy.net> wrote:
> >
> > Hi,
> >
> > everytime I execute my unit tests, maven creates a new file in my
> > basedir, e.g. "junit458743546.properties". These files never gets
> > deleted, so if you don't do this manually, after a while the basedir
> > contains a lot of these files. How can I tell the test-plugin to stop
> > generating this file, or how can I tell the clean-plugin to delete this
> > file?
> >
> > I'm using maven RC3.
> >
> > thanks,
> > Maarten
> >
> > ---------------------------------------------------------------------
> > 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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: clean-up test garbage
Posted by dan tran <da...@gmail.com>.
Maarten,
Internally maven-test-plugin uses junit's ant task to do the job
junitxxxx.properties is generated by ant task. Therefore, i doubt
maven can disable this generated file. Normally this file
is removed automatically by ant task unless you interrupt it.
-Dan
On Wed, 23 Jun 2004 17:03:36 +0200, Maarten Coene
<ma...@toughguy.net> wrote:
>
> Hi,
>
> everytime I execute my unit tests, maven creates a new file in my
> basedir, e.g. "junit458743546.properties". These files never gets
> deleted, so if you don't do this manually, after a while the basedir
> contains a lot of these files. How can I tell the test-plugin to stop
> generating this file, or how can I tell the clean-plugin to delete this
> file?
>
> I'm using maven RC3.
>
> thanks,
> Maarten
>
> ---------------------------------------------------------------------
> 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
clean-up test garbage
Posted by Maarten Coene <Ma...@toughguy.net>.
Hi,
everytime I execute my unit tests, maven creates a new file in my
basedir, e.g. "junit458743546.properties". These files never gets
deleted, so if you don't do this manually, after a while the basedir
contains a lot of these files. How can I tell the test-plugin to stop
generating this file, or how can I tell the clean-plugin to delete this
file?
I'm using maven RC3.
thanks,
Maarten
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Manual deploying Jar files - Update
Posted by Craig Gaffney <ga...@rinstrum.com>.
G'Day Jeff,
Oops... Email typo only, fortunately. No, the actual directory
says
repo/jndi/jars/jndi-1.2.1.jar
Thanks for the clarification. Apologies to Dan.
Cheers,
Craig Gaffney
PC Applications Developer
Rinstrum Pty Ltd (formerly Ranger Instruments)
41 Success St, Acacia Ridge Qld 4110 Australia
Ph: +61 7 3216 7166
Fax: +61 7 3216 6211
Email: gaffney@rinstrum.com
Web: www.rinstrum.com
-----Original Message-----
From: Jefferson K. French [mailto:jeff@frenches.org]
Sent: Wednesday, 23 June 2004 10:36 PM
To: Maven Users List; gaffney@rinstrum.com
Subject: Re: Manual deploying Jar files - Update
I think Dan means a typo in your local repository path, not the
project.xml file. In your earlier email you said:
... maven would look for repo/jdni/jars/jndi-1.2.1.jar
where the directory name says "jdni" instead of "jndi". Is the path in
your local repo spelled correctly?
On Wed, 23 Jun 2004, at 10:48:10 [GMT +1000] Craig Gaffney wrote:
> G'Day Dan,
> All I am doing is running with the what someone else has done.
> If there has been a typo, it wasn't done by me, it ws done by someone
> in the Apache crew.
> I'll double check and make sure that there isn't a typo, and
> take it from there.
> Thanks,
> Craig Gaffney
> PC Applications Developer
> Rinstrum Pty Ltd (formerly Ranger Instruments)
> 41 Success St, Acacia Ridge Qld 4110 Australia
> Ph: +61 7 3216 7166
> Fax: +61 7 3216 6211
> Email: gaffney@rinstrum.com
> Web: www.rinstrum.com
> -----Original Message-----
> From: dan tran [mailto:dantran@gmail.com]
> Sent: Wednesday, 23 June 2004 10:27 AM
> To: Maven Users List; gaffney@rinstrum.com
> Subject: Re: Manual deploying Jar files - Update
>> maven would look for repo/jdni/jars/jndi-1.2.1.jar, and if
that
>> was not found, then try in the remote repository.
>> I manually created the directory, and placed the
jndi-1.2.1.jar
>> in there, maven does not appear to find it.
> did you miss type "jndi" for "jdni" ??
> -D
> On Wed, 23 Jun 2004 09:18:45 +1000, Craig Gaffney
<ga...@rinstrum.com>
> wrote:
>>
>> G'Day everyone,
>> Firstly, thanks for all the various tips and pointers that
>> people have been giving me.
>>
>> Just a recap - the maven project in question is one suggested
>> on the Maven - Using Maven page - apache-turbine-torque. This is not
>> one that I have started myself, though I am getting more tempted to
>> try that approach.
>>
>> Anyway, I thought that if the following appeared in the
>> project.xml file
>>
>> <dependency>
>> <id>jndi</id>
>> <version>1.2.1</version>
>> <url>http://java.sun.com/products/jndi/</url>
>> </dependency>
>>
>> maven would look for repo/jdni/jars/jndi-1.2.1.jar, and if
that
>> was not found, then try in the remote repository.
>> I manually created the directory, and placed the
jndi-1.2.1.jar
>> in there, maven does not appear to find it.
>>
>> Anyway, does anyone have a (relatively) simple maven based
>> project for a beginner to look at, in a manner that would be helpful
>> as a learning tool? Ultimately, that's what I am looking for.
>>
>> Once again, thanks everyone for your help.
>>
>> Cheers,
>>
>> Craig Gaffney
>> PC Applications Developer
>> Rinstrum Pty Ltd (formerly Ranger Instruments)
>> 41 Success St, Acacia Ridge Qld 4110 Australia
>> Ph: +61 7 3216 7166
>> Fax: +61 7 3216 6211
>> Email: gaffney@rinstrum.com
>> Web: www.rinstrum.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> __________ NOD32 1.793 (20040622) Information __________
> This message was checked by NOD32 Antivirus System.
http://www.nod32.com
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
__________ NOD32 1.793 (20040622) Information __________
This message was checked by NOD32 Antivirus System.
http://www.nod32.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Manual deploying Jar files - Update
Posted by "Jefferson K. French" <je...@frenches.org>.
I think Dan means a typo in your local repository path, not the
project.xml file. In your earlier email you said:
... maven would look for repo/jdni/jars/jndi-1.2.1.jar
where the directory name says "jdni" instead of "jndi". Is the path in
your local repo spelled correctly?
On Wed, 23 Jun 2004, at 10:48:10 [GMT +1000] Craig Gaffney wrote:
> G'Day Dan,
> All I am doing is running with the what someone else has done.
> If there has been a typo, it wasn't done by me, it ws done by someone in
> the Apache crew.
> I'll double check and make sure that there isn't a typo, and
> take it from there.
> Thanks,
> Craig Gaffney
> PC Applications Developer
> Rinstrum Pty Ltd (formerly Ranger Instruments)
> 41 Success St, Acacia Ridge Qld 4110 Australia
> Ph: +61 7 3216 7166
> Fax: +61 7 3216 6211
> Email: gaffney@rinstrum.com
> Web: www.rinstrum.com
> -----Original Message-----
> From: dan tran [mailto:dantran@gmail.com]
> Sent: Wednesday, 23 June 2004 10:27 AM
> To: Maven Users List; gaffney@rinstrum.com
> Subject: Re: Manual deploying Jar files - Update
>> maven would look for repo/jdni/jars/jndi-1.2.1.jar, and if that
>> was not found, then try in the remote repository.
>> I manually created the directory, and placed the jndi-1.2.1.jar
>> in there, maven does not appear to find it.
> did you miss type "jndi" for "jdni" ??
> -D
> On Wed, 23 Jun 2004 09:18:45 +1000, Craig Gaffney <ga...@rinstrum.com>
> wrote:
>>
>> G'Day everyone,
>> Firstly, thanks for all the various tips and pointers that
>> people have been giving me.
>>
>> Just a recap - the maven project in question is one suggested
>> on the Maven - Using Maven page - apache-turbine-torque. This is not
>> one that I have started myself, though I am getting more tempted to
>> try that approach.
>>
>> Anyway, I thought that if the following appeared in the
>> project.xml file
>>
>> <dependency>
>> <id>jndi</id>
>> <version>1.2.1</version>
>> <url>http://java.sun.com/products/jndi/</url>
>> </dependency>
>>
>> maven would look for repo/jdni/jars/jndi-1.2.1.jar, and if that
>> was not found, then try in the remote repository.
>> I manually created the directory, and placed the jndi-1.2.1.jar
>> in there, maven does not appear to find it.
>>
>> Anyway, does anyone have a (relatively) simple maven based
>> project for a beginner to look at, in a manner that would be helpful
>> as a learning tool? Ultimately, that's what I am looking for.
>>
>> Once again, thanks everyone for your help.
>>
>> Cheers,
>>
>> Craig Gaffney
>> PC Applications Developer
>> Rinstrum Pty Ltd (formerly Ranger Instruments)
>> 41 Success St, Acacia Ridge Qld 4110 Australia
>> Ph: +61 7 3216 7166
>> Fax: +61 7 3216 6211
>> Email: gaffney@rinstrum.com
>> Web: www.rinstrum.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> __________ NOD32 1.793 (20040622) Information __________
> This message was checked by NOD32 Antivirus System. http://www.nod32.com
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Manual deploying Jar files - Update
Posted by Craig Gaffney <ga...@rinstrum.com>.
G'Day Dan,
All I am doing is running with the what someone else has done.
If there has been a typo, it wasn't done by me, it ws done by someone in
the Apache crew.
I'll double check and make sure that there isn't a typo, and
take it from there.
Thanks,
Craig Gaffney
PC Applications Developer
Rinstrum Pty Ltd (formerly Ranger Instruments)
41 Success St, Acacia Ridge Qld 4110 Australia
Ph: +61 7 3216 7166
Fax: +61 7 3216 6211
Email: gaffney@rinstrum.com
Web: www.rinstrum.com
-----Original Message-----
From: dan tran [mailto:dantran@gmail.com]
Sent: Wednesday, 23 June 2004 10:27 AM
To: Maven Users List; gaffney@rinstrum.com
Subject: Re: Manual deploying Jar files - Update
> maven would look for repo/jdni/jars/jndi-1.2.1.jar, and if that
> was not found, then try in the remote repository.
> I manually created the directory, and placed the jndi-1.2.1.jar
> in there, maven does not appear to find it.
did you miss type "jndi" for "jdni" ??
-D
On Wed, 23 Jun 2004 09:18:45 +1000, Craig Gaffney <ga...@rinstrum.com>
wrote:
>
> G'Day everyone,
> Firstly, thanks for all the various tips and pointers that
> people have been giving me.
>
> Just a recap - the maven project in question is one suggested
> on the Maven - Using Maven page - apache-turbine-torque. This is not
> one that I have started myself, though I am getting more tempted to
> try that approach.
>
> Anyway, I thought that if the following appeared in the
> project.xml file
>
> <dependency>
> <id>jndi</id>
> <version>1.2.1</version>
> <url>http://java.sun.com/products/jndi/</url>
> </dependency>
>
> maven would look for repo/jdni/jars/jndi-1.2.1.jar, and if that
> was not found, then try in the remote repository.
> I manually created the directory, and placed the jndi-1.2.1.jar
> in there, maven does not appear to find it.
>
> Anyway, does anyone have a (relatively) simple maven based
> project for a beginner to look at, in a manner that would be helpful
> as a learning tool? Ultimately, that's what I am looking for.
>
> Once again, thanks everyone for your help.
>
> Cheers,
>
> Craig Gaffney
> PC Applications Developer
> Rinstrum Pty Ltd (formerly Ranger Instruments)
> 41 Success St, Acacia Ridge Qld 4110 Australia
> Ph: +61 7 3216 7166
> Fax: +61 7 3216 6211
> Email: gaffney@rinstrum.com
> Web: www.rinstrum.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
__________ NOD32 1.793 (20040622) Information __________
This message was checked by NOD32 Antivirus System. http://www.nod32.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Manual deploying Jar files - Update
Posted by dan tran <da...@gmail.com>.
> maven would look for repo/jdni/jars/jndi-1.2.1.jar, and if that
> was not found, then try in the remote repository.
> I manually created the directory, and placed the jndi-1.2.1.jar
> in there, maven does not appear to find it.
did you miss type "jndi" for "jdni" ??
-D
On Wed, 23 Jun 2004 09:18:45 +1000, Craig Gaffney <ga...@rinstrum.com> wrote:
>
> G'Day everyone,
> Firstly, thanks for all the various tips and pointers that
> people have been giving me.
>
> Just a recap - the maven project in question is one suggested on
> the Maven - Using Maven page - apache-turbine-torque. This is not one
> that I have started myself, though I am getting more tempted to try that
> approach.
>
> Anyway, I thought that if the following appeared in the
> project.xml file
>
> <dependency>
> <id>jndi</id>
> <version>1.2.1</version>
> <url>http://java.sun.com/products/jndi/</url>
> </dependency>
>
> maven would look for repo/jdni/jars/jndi-1.2.1.jar, and if that
> was not found, then try in the remote repository.
> I manually created the directory, and placed the jndi-1.2.1.jar
> in there, maven does not appear to find it.
>
> Anyway, does anyone have a (relatively) simple maven based
> project for a beginner to look at, in a manner that would be helpful as
> a learning tool? Ultimately, that's what I am looking for.
>
> Once again, thanks everyone for your help.
>
> Cheers,
>
> Craig Gaffney
> PC Applications Developer
> Rinstrum Pty Ltd (formerly Ranger Instruments)
> 41 Success St, Acacia Ridge Qld 4110 Australia
> Ph: +61 7 3216 7166
> Fax: +61 7 3216 6211
> Email: gaffney@rinstrum.com
> Web: www.rinstrum.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: Manual deploying Jar files - Update
Posted by Craig Gaffney <ga...@rinstrum.com>.
G'Day Alex,
I thought I saw something about a default generator somewhere,
but couldn't find it.
I have generated a new project, and I am now having fun
exploring.
Thanks for the info, Alex. Also, thanks again to all the other
list members for their assistance so far.
Cheers,
Craig Gaffney
PC Applications Developer
Rinstrum Pty Ltd (formerly Ranger Instruments)
41 Success St, Acacia Ridge Qld 4110 Australia
Ph: +61 7 3216 7166
Fax: +61 7 3216 6211
Email: gaffney@rinstrum.com
Web: www.rinstrum.com
-----Original Message-----
From: Alex Shneyderman [mailto:alex@law.columbia.edu]
Sent: Wednesday, 23 June 2004 9:57 AM
To: 'Maven Users List'; gaffney@rinstrum.com
Subject: RE: Manual deploying Jar files - Update
>
> Anyway, does anyone have a (relatively) simple maven based
project
> for a beginner to look at, in a manner that would be helpful
as
> a learning tool? Ultimately, that's what I am looking for.
>
Just run genapp and you will get the project as simple as you can
possibly get.
Alex.
__________ NOD32 1.793 (20040622) Information __________
This message was checked by NOD32 Antivirus System. http://www.nod32.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Manual deploying Jar files - Update
Posted by Alex Shneyderman <al...@law.columbia.edu>.
>
> Anyway, does anyone have a (relatively) simple maven based
> project for a beginner to look at, in a manner that would be helpful
as
> a learning tool? Ultimately, that's what I am looking for.
>
Just run genapp and you will get the project as simple as you can
possibly get.
Alex.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Manual deploying Jar files - Update
Posted by "J. Matthew Pryor" <jm...@yahoo.com>.
If you are just interested to learn, then change the dependency to something
that *IS* on ibiblio first
Take a look at http://www.ibiblio.org/maven
Pick any version of any (small?) jar and use that as the groupId and
artifact Id
E.g.
<dependency>
<groupId>batik</groupId>
<artifactId>batik-ext</artifactId>
<version>1.5</version>
</dependency>
Use that as the only dependency & confirm it gets downloaded & confirm it is
the place in your local repository you *expect* it to be
i.e. <localrepo>/batik/jars/batik-ext.1.5.jar
Once that works, start getting more sophisticated from there
HTH,
Matthew
> -----Original Message-----
> From: Craig Gaffney [mailto:gaffney@rinstrum.com]
> Sent: Wednesday, June 23, 2004 9:19 AM
> To: Maven Users List
> Subject: Manual deploying Jar files - Update
>
> G'Day everyone,
> Firstly, thanks for all the various tips and pointers
> that people have been giving me.
>
> Just a recap - the maven project in question is one
> suggested on the Maven - Using Maven page -
> apache-turbine-torque. This is not one that I have started
> myself, though I am getting more tempted to try that approach.
>
> Anyway, I thought that if the following appeared in the
> project.xml file
>
> <dependency>
> <id>jndi</id>
> <version>1.2.1</version>
> <url>http://java.sun.com/products/jndi/</url>
> </dependency>
>
> maven would look for repo/jdni/jars/jndi-1.2.1.jar, and
> if that was not found, then try in the remote repository.
> I manually created the directory, and placed the
> jndi-1.2.1.jar in there, maven does not appear to find it.
>
> Anyway, does anyone have a (relatively) simple maven
> based project for a beginner to look at, in a manner that
> would be helpful as a learning tool? Ultimately, that's what
> I am looking for.
>
>
> Once again, thanks everyone for your help.
>
>
> Cheers,
>
> Craig Gaffney
> PC Applications Developer
> Rinstrum Pty Ltd (formerly Ranger Instruments)
> 41 Success St, Acacia Ridge Qld 4110 Australia
> Ph: +61 7 3216 7166
> Fax: +61 7 3216 6211
> Email: gaffney@rinstrum.com
> Web: www.rinstrum.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