Set the properties needed and run this after building the jar:
<copy file="${maven.build.dir}/${maven.final.name}.jar"
todir="${maven.repo.local}/${pom.groupId}/jars"/>
Oren
-----Original Message-----
From: Eric Pugh [mailto:[EMAIL PROTECTED]
Sent: 20 October 2004 09:01
To: Maven Users List
Subject: RE: Maven
Take a look at the uberjar plugin.. it handles creating the classpath...
> -----Original Message-----
> From: Ming Fang [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 19, 2004 4:21 PM
> To: Maven Users List
> Subject: Re: Maven
>
>
> we actually copy the versioned jars to a "distribution" directory but
> leave of the version number in the process.
> our maven.xml looks like this
>
> <project
> xmlns:deploy="deploy" xmlns:j="jelly:core">
>
> <goal name="lib">
> <deploy:copy-deps todir="lib"/>
> </goal>
> <goal name="copy.dep" description="copy dependencies">
> <j:forEach var="dep" items="${pom.dependencies}">
> <echo>${dep.getArtifactId()}.${dep.getExtension()}</echo>
> <copy file="${pom.getDependencyPath(dep.getId())}"
> tofile="lib/${dep.getArtifactId()}.${dep.getExtension()}"/>
> </j:forEach>
> </goal>
>
> </project>
>
> On Oct 19, 2004, at 11:15 AM, STRAYER, JON (SBCSI) wrote:
>
> >>
> >>> Hi,
> >>>
> >>> Maven creates jar, but with name "PROJECT-version.jar" eg:-
> >>> PROJECT-12.0.0.jar,
> >>> is there anyway i can override this to create "project.jar"
> >>>
> >> This is not something which you would normally want to do
> >> with maven. Jars and other artifacts are versioned for
> >> numerous good reasons.
> >
> > How many people here are running their applications outside of a
> > container?
> >
> > How do you handle setting the class path (when it changes with each
> > release)?
> >
> > I ended up taking some code from the maven deploy plugin and
modifying
> > it to generate a class path from the pom.
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --ming
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
****************************************************************************
This email and any files transmitted with it contain information that may be
confidential or privileged, and are intended solely for the use of the
individual or entity to whom they are addressed. If you are not the intended
recipient any disclosure, copying, distribution or use of the information is
prohibited. If you have received this email in error, please notify me by
return email immediately. Any opinions expressed are those of the author,
not of Morpheus Limited.
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre.
****************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]