You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2012/10/11 12:45:16 UTC
svn commit: r1396981 -
/karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java
Author: jbonofre
Date: Thu Oct 11 10:45:15 2012
New Revision: 1396981
URL: http://svn.apache.org/viewvc?rev=1396981&view=rev
Log:
[KARAF-1853] Align SNAPSHOT build number in the kar goal
Modified:
karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java
Modified: karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java
URL: http://svn.apache.org/viewvc/karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java?rev=1396981&r1=1396980&r2=1396981&view=diff
==============================================================================
--- karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java (original)
+++ karaf/branches/karaf-2.3.x/tooling/features-maven-plugin/src/main/java/org/apache/karaf/tooling/features/CreateKarMojo.java Thu Oct 11 10:45:15 2012
@@ -16,7 +16,6 @@
* specific language governing permissions and limitations
* under the License.
*/
-
package org.apache.karaf.tooling.features;
import org.apache.karaf.deployer.kar.KarArtifactInstaller;
@@ -110,10 +109,7 @@ public class CreateKarMojo extends MojoS
File archive = createArchive(resources);
// attach the generated archive to install/deploy
- Artifact artifact = factory.createArtifact(project.getGroupId(), project.getArtifactId(), project.getVersion(), null, "kar");
- artifact.setFile(archive);
-
- project.addAttachedArtifact(artifact);
+ projectHelper.attachArtifact(project, "kar", null, archive);
}
/**