You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Geffrey Caruso <gc...@mobilvox.com> on 2007/03/13 19:59:56 UTC
Download JAR from Local Repository
Here is the problem I'm trying to solve. I've got a project that creates a
signed applet JAR file and installs it into the local repository. I now
have another webapp project that isn't technically dependent on that jar to
compile but I want to copy the applet jar into the my project in a specific
folder before building the WAR file.
Is there any easy way to do this?
Thanks in advance for any advice you can offer.
Geff
RE: Download JAR from Local Repository
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
I see now that the artifactItem is not fully documented. There is a
classifier field you can set. The stuff you pasted below (descriptor
etc) is from the assembly plugin.
Here are the fields in artifactItem:
/**
* Group Id of Artifact
*
* @parameter
* @required
*/
private String groupId;
/**
* Name of Artifact
*
* @parameter
* @required
*/
private String artifactId;
/**
* Version of Artifact
*
* @parameter
*/
private String version = null;
/**
* Type of Artifact (War,Jar,etc)
*
* @parameter
* @required
*/
private String type = "jar";
/**
* Classifier for Artifact (tests,sources,etc)
*
* @parameter
*/
private String classifier;
/**
* Location to use for this Artifact. Overrides default location.
*
* @parameter
*/
private File outputDirectory;
/**
* Provides ability to change destination file name
*
* @parameter
*/
private String destFileName;
/**
* Force Overwrite..this is the one to set in pom
*/
private String overWrite;
-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu]
Sent: Wednesday, March 14, 2007 4:23 PM
To: Maven Users List
Subject: RE: Download JAR from Local Repository
Try setting the classifier to signed.
-----Original Message-----
From: Geffrey Caruso [mailto:gcaruso@mobilvox.com]
Sent: Wednesday, March 14, 2007 3:51 PM
To: 'Maven Users List'
Subject: RE: Download JAR from Local Repository
Thanks Brian,
So the dependency plugin seems to be working fine I just have one
problem now.
I have to different JARs in my snapshot repository, a signed one and an
unsigned one. The dependency plugin seems to be downloading the
unsigned on by default and I can't seem to figure out how to tell it to
download the signed one.
I tried using
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
Inside my configuration section but that didn't work its always just
downloads 1.0-SNAPSHOT.jar instead of 1.0-SNAPSHOT-signed.jar
Any help?
-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu]
Sent: Tuesday, March 13, 2007 5:05 PM
To: Maven Users List
Subject: RE: Download JAR from Local Repository
There are a few ways to do it with the dependency plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/
-----Original Message-----
From: Geffrey Caruso [mailto:gcaruso@mobilvox.com]
Sent: Tuesday, March 13, 2007 3:00 PM
To: users@maven.apache.org
Subject: Download JAR from Local Repository
Here is the problem I'm trying to solve. I've got a project that
creates a signed applet JAR file and installs it into the local
repository. I now have another webapp project that isn't technically
dependent on that jar to compile but I want to copy the applet jar into
the my project in a specific folder before building the WAR file.
Is there any easy way to do this?
Thanks in advance for any advice you can offer.
Geff
---------------------------------------------------------------------
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
---------------------------------------------------------------------
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
RE: Download JAR from Local Repository
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Try setting the classifier to signed.
-----Original Message-----
From: Geffrey Caruso [mailto:gcaruso@mobilvox.com]
Sent: Wednesday, March 14, 2007 3:51 PM
To: 'Maven Users List'
Subject: RE: Download JAR from Local Repository
Thanks Brian,
So the dependency plugin seems to be working fine I just have one
problem now.
I have to different JARs in my snapshot repository, a signed one and an
unsigned one. The dependency plugin seems to be downloading the
unsigned on by default and I can't seem to figure out how to tell it to
download the signed one.
I tried using
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
Inside my configuration section but that didn't work its always just
downloads 1.0-SNAPSHOT.jar instead of 1.0-SNAPSHOT-signed.jar
Any help?
-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu]
Sent: Tuesday, March 13, 2007 5:05 PM
To: Maven Users List
Subject: RE: Download JAR from Local Repository
There are a few ways to do it with the dependency plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/
-----Original Message-----
From: Geffrey Caruso [mailto:gcaruso@mobilvox.com]
Sent: Tuesday, March 13, 2007 3:00 PM
To: users@maven.apache.org
Subject: Download JAR from Local Repository
Here is the problem I'm trying to solve. I've got a project that
creates a signed applet JAR file and installs it into the local
repository. I now have another webapp project that isn't technically
dependent on that jar to compile but I want to copy the applet jar into
the my project in a specific folder before building the WAR file.
Is there any easy way to do this?
Thanks in advance for any advice you can offer.
Geff
---------------------------------------------------------------------
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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Download JAR from Local Repository
Posted by Geffrey Caruso <gc...@mobilvox.com>.
Thanks Brian,
So the dependency plugin seems to be working fine I just have one problem
now.
I have to different JARs in my snapshot repository, a signed one and an
unsigned one. The dependency plugin seems to be downloading the unsigned on
by default and I can't seem to figure out how to tell it to download the
signed one.
I tried using
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
Inside my configuration section but that didn't work its always just
downloads 1.0-SNAPSHOT.jar instead of 1.0-SNAPSHOT-signed.jar
Any help?
-----Original Message-----
From: Brian E. Fox [mailto:brianf@reply.infinity.nu]
Sent: Tuesday, March 13, 2007 5:05 PM
To: Maven Users List
Subject: RE: Download JAR from Local Repository
There are a few ways to do it with the dependency plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/
-----Original Message-----
From: Geffrey Caruso [mailto:gcaruso@mobilvox.com]
Sent: Tuesday, March 13, 2007 3:00 PM
To: users@maven.apache.org
Subject: Download JAR from Local Repository
Here is the problem I'm trying to solve. I've got a project that
creates a signed applet JAR file and installs it into the local
repository. I now have another webapp project that isn't technically
dependent on that jar to compile but I want to copy the applet jar into
the my project in a specific folder before building the WAR file.
Is there any easy way to do this?
Thanks in advance for any advice you can offer.
Geff
---------------------------------------------------------------------
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
RE: Download JAR from Local Repository
Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
There are a few ways to do it with the dependency plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/
-----Original Message-----
From: Geffrey Caruso [mailto:gcaruso@mobilvox.com]
Sent: Tuesday, March 13, 2007 3:00 PM
To: users@maven.apache.org
Subject: Download JAR from Local Repository
Here is the problem I'm trying to solve. I've got a project that
creates a signed applet JAR file and installs it into the local
repository. I now have another webapp project that isn't technically
dependent on that jar to compile but I want to copy the applet jar into
the my project in a specific folder before building the WAR file.
Is there any easy way to do this?
Thanks in advance for any advice you can offer.
Geff
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org