You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by bob johnson <si...@yahoo.com> on 2008/09/10 21:55:15 UTC

war repackage question

Hello,

I apologize in advance if this message is already answered in the forums.  I have searched and didn't find anything related to this issue.

Here is the problem that I need advice from the community.
I am using maven 2 to manage two projects: one is a web-app the other is code that is built into a jar that the web-app calls.  The problem I need to solve is building the single jar that will be the resulting artifact built by this project.  In order to build this jar I will need to pull several jars from the repository, open then, run an ant script against all the exploded classes, then repackage the classes into a single jar file.

This jar will be the final artifact produced by the project and will be used by the web-app.  Can anyone point me in the right direction as to how to accomplish this?  Is this possible to do with Maven?

Thanks,
Bob



      

Re: war repackage question

Posted by Dan Tran <da...@gmail.com>.
maven-assembly-plugin and maven-dependency-plugin.

On Wed, Sep 10, 2008 at 12:55 PM, bob johnson
<si...@yahoo.com> wrote:
> Hello,
>
> I apologize in advance if this message is already answered in the forums.  I have searched and didn't find anything related to this issue.
>
> Here is the problem that I need advice from the community.
> I am using maven 2 to manage two projects: one is a web-app the other is code that is built into a jar that the web-app calls.  The problem I need to solve is building the single jar that will be the resulting artifact built by this project.  In order to build this jar I will need to pull several jars from the repository, open then, run an ant script against all the exploded classes, then repackage the classes into a single jar file.
>
> This jar will be the final artifact produced by the project and will be used by the web-app.  Can anyone point me in the right direction as to how to accomplish this?  Is this possible to do with Maven?
>
> Thanks,
> Bob
>
>
>
>

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