You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by pd...@apache.org on 2006/07/04 21:30:07 UTC
svn commit: r419074 -
/incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateSharedLibraryMojo.java
Author: pdodds
Date: Tue Jul 4 12:30:07 2006
New Revision: 419074
URL: http://svn.apache.org/viewvc?rev=419074&view=rev
Log:
Added forced loading of the jar extension to the repo (workaround for bug http://jira.codehaus.org/browse/MNG-2240)
Modified:
incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateSharedLibraryMojo.java
Modified: incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateSharedLibraryMojo.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateSharedLibraryMojo.java?rev=419074&r1=419073&r2=419074&view=diff
==============================================================================
--- incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateSharedLibraryMojo.java (original)
+++ incubator/servicemix/trunk/tooling/jbi-maven-plugin/src/main/java/org/apache/servicemix/maven/plugin/jbi/GenerateSharedLibraryMojo.java Tue Jul 4 12:30:07 2006
@@ -58,6 +58,14 @@
* @required
*/
private String sharedLibraryName;
+
+ /**
+ * The name of the generated war.
+ *
+ * @parameter expression="${project.artifactId}-${project.version}.jar"
+ * @required
+ */
+ private String jarName;
/**
* The Zip archiver.
@@ -95,6 +103,9 @@
File installerFile = new File(outputDirectory, sharedLibraryName);
createArchive(installerFile);
+
+ projectHelper.attachArtifact(project,"jar", "", new File(
+ outputDirectory, jarName));
projectHelper.attachArtifact(project,"zip", "installer", new File(
outputDirectory, sharedLibraryName));