incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r585948 - /incubator/sling/whiteboard/microsling/pom.xml
Date Thu, 18 Oct 2007 12:45:33 GMT
Author: fmeschbe
Date: Thu Oct 18 05:45:33 2007
New Revision: 585948

URL: http://svn.apache.org/viewvc?rev=585948&view=rev
Log:
SLING-66 Use the jar plugin to generate the attachement. Makes the pom simpler but adds a
classifier which is not a bad idea because the main artifact is the war file and additional
artifacts may properly be classified.

Modified:
    incubator/sling/whiteboard/microsling/pom.xml

Modified: incubator/sling/whiteboard/microsling/pom.xml
URL: http://svn.apache.org/viewvc/incubator/sling/whiteboard/microsling/pom.xml?rev=585948&r1=585947&r2=585948&view=diff
==============================================================================
--- incubator/sling/whiteboard/microsling/pom.xml (original)
+++ incubator/sling/whiteboard/microsling/pom.xml Thu Oct 18 05:45:33 2007
@@ -91,40 +91,18 @@
       </plugin>
       <plugin>
         <!-- SLING-66: create a jar in addition to our war, to make our servlets reusable
-->
-        <artifactId>maven-antrun-plugin</artifactId>
+        <groupId>org.apache.maven.plugins</groupId>
+        <artifactId>maven-jar-plugin</artifactId>
         <executions>
           <execution>
-            <phase>package</phase>
-            <configuration>
-              <tasks>
-                <jar basedir="${project.build.outputDirectory}"
-                  destfile="${project.build.directory}/${project.name}-${project.version}.jar"/>
-              </tasks>
-            </configuration>
-            <goals>
-              <goal>run</goal>
-            </goals>
-          </execution>
-        </executions>
-      </plugin>
-      <plugin>
-        <!-- SLING-66: add the jar created by maven-antrun-plugin in our artifacts -->
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>build-helper-maven-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>attach-artifacts</id>
+            <id>attach-classes</id>
             <phase>package</phase>
             <goals>
-              <goal>attach-artifact</goal>
+              <goal>jar</goal>
             </goals>
             <configuration>
-                <artifacts>
-                  <artifact>
-                    <file>${project.build.directory}/${project.name}-${project.version}.jar</file>
-                    <type>jar</type>
-                  </artifact>
-                </artifacts>
+              <!-- using the classifier makes the jar an attachement -->
+              <classifier>classes</classifier>
             </configuration>
           </execution>
         </executions>



Mime
View raw message