You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guy Davis <da...@guydavis.ca> on 2005/02/18 00:45:09 UTC
Copying jar to other directory after 'maven jar'?
Hello,
I've been asked to use Maven to create our jar file and put it in it's
historical location {proj.home}/lib/. Currently, Maven creates it in
{proj.home}/target/.
Is there a setting or something else I can set to have the jar placed in
the lib/ location? I'd like to keep everything else Maven generates in
{proj.home}/target/
Thanks,
Guy
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency question
Posted by Gisbert Amm <gi...@webde-ag.de>.
Gisbert Amm wrote:
> Gisbert Amm wrote:
>
>>> Isn't an easier way in Maven to resolve the full path
>>> of the dependency?
> Missed the closing bracket:
>
> ${pom.getDependencyPath('atifactId:groupId')}
Even worse: Wrong order of elements:
${pom.getDependencyPath('groupId:artifactId')}
Gisbert
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency question
Posted by Gisbert Amm <gi...@webde-ag.de>.
Gisbert Amm wrote:
>> Isn't an easier way in Maven to resolve the full path
>> of the dependency?
>
>
> Probably this:
>
> ${pom.getDependencyPath('atifactId:groupId')
Missed the closing bracket:
${pom.getDependencyPath('atifactId:groupId')}
^
Gisbert
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency question
Posted by Gisbert Amm <gi...@webde-ag.de>.
Janos Mucsi wrote:
> I declare an ear artifact in my project.xml:
>
> <dependencies>
> <dependency>
> <groupId>opcert</groupId>
> <artifactId>USOpcert</artifactId>
> <version>${pom.currentVersion}</version>
> <type>ear</type>
> </dependency>
>
> In maven.xml I want to resolve its full path so that I
> can pass it to an external script like this:
> *${home.dir}*${maven.repo.local}/${dependency.groupId}/${dependency.artifactId}-${dependency.version}.${dependency.type}
>
> My question is how do I get the home directory of the
> current user?
> Isn't an easier way in Maven to resolve the full path
> of the dependency?
Probably this:
${pom.getDependencyPath('atifactId:groupId')
Regards,
Gisbert Amm
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
dependency question
Posted by Janos Mucsi <mu...@yahoo.com>.
I declare an ear artifact in my project.xml:
<dependencies>
<dependency>
<groupId>opcert</groupId>
<artifactId>USOpcert</artifactId>
<version>${pom.currentVersion}</version>
<type>ear</type>
</dependency>
In maven.xml I want to resolve its full path so that I
can pass it to an external script like this:
*${home.dir}*${maven.repo.local}/${dependency.groupId}/${dependency.artifactId}-${dependency.version}.${dependency.type}
My question is how do I get the home directory of the
current user?
Isn't an easier way in Maven to resolve the full path
of the dependency?
Thanks.
Janos
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Copying jar to other directory after 'maven jar'?
Posted by Brett Porter <br...@gmail.com>.
you can create a maven.xml file with:
<project xmlns:ant="jelly:ant">
<postGoal name="jar:jar">
<ant:copy todir="${basedir}/lib"
file="${maven.build.dir}/${maven.final.name}.jar" />
</postGoal>
</project>
This will work in any situation.
- Brett
On Thu, 17 Feb 2005 16:45:09 -0700, Guy Davis <da...@guydavis.ca> wrote:
> Hello,
>
> I've been asked to use Maven to create our jar file and put it in it's
> historical location {proj.home}/lib/. Currently, Maven creates it in
> {proj.home}/target/.
>
> Is there a setting or something else I can set to have the jar placed in
> the lib/ location? I'd like to keep everything else Maven generates in
> {proj.home}/target/
>
> Thanks,
> Guy
>
> ---------------------------------------------------------------------
> 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