You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Matthias Wessendorf <mw...@pironet-ndh.com> on 2005/09/08 16:20:36 UTC

calling maven for a maven.xml

Hi,

I have a problem, related to an applet that is build w/ m1.
The applet itself is a jar that got's signed by a maven.xml jelly script.
This applet has dependencies that got also signed w/ this maven.xml file.

After this, I have four signed JARs in $project/target.
this is nice, and works as expected.

the problem is, that I have currently no idea, how to *include* this applet 
and its jars into my web app (also maven based).

So let's say for simplicity, that I'd like to do a "mavencall" of that
applet project and *after* that call, I'd like to copy its jar files (from target directory) into
a folder of my web app.

Is there any plugin, or jelly script, that allows me to do something like that ?

Thanks in advice,
Matthias

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


Re: calling maven for a maven.xml

Posted by Doug Douglass <dd...@denverdata.com>.
Matthias,

So the applet is a dependency of your webapp, yes?

Are you using maven to build your webapp?

Why not add the applet, and it's signed dependencies, as dependencies in 
the webapp POM? Add the property <war.bundle>true</war.bundle> so that 
these dependencies are also copied to the lib directory of your war.

If you can't/don't deploy or install the signed applet jars into a local 
or remote repository, then you can add maven.jar.override to your webapp 
project.properties and point maven to the actual signed jars in the file 
system of the applet project (e.g., 
maven.jar.my-signed-applet=/some/other/dir/target/my-signed-applet.jar)

In addition, you may wish to setup a multiproject structure so that your 
applet is always built before your webapp. You may need to add to/modify 
your applets maven.xml to run your custom goal to sign the jars as part 
of your multiproject, but that should be pretty easy.

HTH,
Doug



Matthias Wessendorf wrote:

>Hi,
>
>I have a problem, related to an applet that is build w/ m1.
>The applet itself is a jar that got's signed by a maven.xml jelly script.
>This applet has dependencies that got also signed w/ this maven.xml file.
>
>After this, I have four signed JARs in $project/target.
>this is nice, and works as expected.
>
>the problem is, that I have currently no idea, how to *include* this applet 
>and its jars into my web app (also maven based).
>
>So let's say for simplicity, that I'd like to do a "mavencall" of that
>applet project and *after* that call, I'd like to copy its jar files (from target directory) into
>a folder of my web app.
>
>Is there any plugin, or jelly script, that allows me to do something like that ?
>
>Thanks in advice,
>Matthias
>
>---------------------------------------------------------------------
>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