You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Vikas Phonsa <VP...@suz.com> on 2003/11/07 19:49:55 UTC

Modifying jar plugin

Hi Everybody,

I am using a project directory structure different than the one specified by
maven and have updated the basic properties accordingly.

I have

maven.build.dir=${basedir}


And the jar plugin by default would place the generated jar in
maven.build.dir but I want to place that in ${maven.build.dir}/builds

What would be the best way to do that. I have looked into the jelly script
code for the jar plugin:

<ant:jar
      jarfile="${maven.build.dir}/${maven.final.name}.jar"
      basedir="${maven.build.dest}"
      index="${maven.jar.index}"
      compress="${maven.jar.compress}"
      excludes="${maven.jar.excludes}"> 


In the above ant task (and at other places in script) I can use another user
define property like ${maven.jar.dest} instead of ${maven.build.dir}.

But is there another way I can achieve my desired functionality without
modifying the jar plugin ?

Please guide.

Thanks

Vikas
      
-help@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Modifying jar plugin

Posted by Michal Maczka <mm...@interia.pl>.

> -----Original Message-----
> From: Vikas Phonsa [mailto:VPhonsa@suz.com]
> Sent: Friday, November 07, 2003 7:50 PM
> To: 'Maven Users List'
> Subject: Modifying jar plugin
>
>
> Hi Everybody,
>
> I am using a project directory structure different than the one
> specified by
> maven and have updated the basic properties accordingly.
>
> I have
>
> maven.build.dir=${basedir}
>
>
> And the jar plugin by default would place the generated jar in
> maven.build.dir but I want to place that in ${maven.build.dir}/builds
>
> What would be the best way to do that. I have looked into the jelly script
> code for the jar plugin:
>
> <ant:jar
>       jarfile="${maven.build.dir}/${maven.final.name}.jar"
>       basedir="${maven.build.dest}"
>       index="${maven.jar.index}"
>       compress="${maven.jar.compress}"
>       excludes="${maven.jar.excludes}">
>
>
> In the above ant task (and at other places in script) I can use
> another user
> define property like ${maven.jar.dest} instead of ${maven.build.dir}.
>
> But is there another way I can achieve my desired functionality without
> modifying the jar plugin ?
>
> Please guide.
>
You can write your own script which will replace jar plugin.


Michal



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org