You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tom <tb...@tbee.org> on 2010/07/22 12:03:18 UTC
dependency:copy with resolve, or dependency:copy-dependencies with
specified artifact
I'm converting an applet project to use Maven.
This means I have a applet artifact which uses all kinds of other Swing
related libraries and the actual WAR artifact. There also is a "shared"
artifact that both use to communicate with each other. The applet is
compiled with Java 1.6, the WAR with 1.5. This is no problem because
each runs in its own JVM; one on the clien, the other on the server.
The applet is not part of the dependencies of the WAR, but it is to be
copied into the WAR. Using dependency:copy I only get the applet.jar
itself, but not any of its required dependencies. Using
dependency:copy-dependencies I cannot specify which artifact(s) should
be the starting point (it always assume the current WAR project).
Does anyone know of such a maven plugin, or will I develop it myself?
Re: dependency:copy with resolve, or dependency:copy-dependencies
with specified artifact
Posted by Brian Fox <br...@infinity.nu>.
copy-dependencies has filters you can use to filter on scope, group,
artifact etc
On Thu, Jul 22, 2010 at 6:03 AM, Tom <tb...@tbee.org> wrote:
> I'm converting an applet project to use Maven.
>
> This means I have a applet artifact which uses all kinds of other Swing
> related libraries and the actual WAR artifact. There also is a "shared"
> artifact that both use to communicate with each other. The applet is
> compiled with Java 1.6, the WAR with 1.5. This is no problem because each
> runs in its own JVM; one on the clien, the other on the server.
>
> The applet is not part of the dependencies of the WAR, but it is to be
> copied into the WAR. Using dependency:copy I only get the applet.jar itself,
> but not any of its required dependencies. Using dependency:copy-dependencies
> I cannot specify which artifact(s) should be the starting point (it always
> assume the current WAR project).
>
> Does anyone know of such a maven plugin, or will I develop it myself?
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: dependency:copy with resolve, or dependency:copy-dependencies with specified artifact
Posted by Jörg Schaible <jo...@gmx.de>.
Hi Tom,
Tom wrote:
> I'm converting an applet project to use Maven.
>
> This means I have a applet artifact which uses all kinds of other Swing
> related libraries and the actual WAR artifact. There also is a "shared"
> artifact that both use to communicate with each other. The applet is
> compiled with Java 1.6, the WAR with 1.5. This is no problem because
> each runs in its own JVM; one on the clien, the other on the server.
>
> The applet is not part of the dependencies of the WAR, but it is to be
> copied into the WAR. Using dependency:copy I only get the applet.jar
> itself, but not any of its required dependencies. Using
> dependency:copy-dependencies I cannot specify which artifact(s) should
> be the starting point (it always assume the current WAR project).
>
> Does anyone know of such a maven plugin, or will I develop it myself?
I assemble applets typically into a ZIP (directly in the project of the
applet) and add this artifact to the WARs dependencies as predefined where I
unpack it with the dependency plugin.
- Jörg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org