You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2014/11/17 08:23:42 UTC

svn commit: r1640075 - /sling/trunk/contrib/launchpad/debian/pom.xml

Author: bdelacretaz
Date: Mon Nov 17 07:23:41 2014
New Revision: 1640075

URL: http://svn.apache.org/r1640075
Log:
SLING-4151 - use maven-dependency-plugin to get launchpad jar

Modified:
    sling/trunk/contrib/launchpad/debian/pom.xml

Modified: sling/trunk/contrib/launchpad/debian/pom.xml
URL: http://svn.apache.org/viewvc/sling/trunk/contrib/launchpad/debian/pom.xml?rev=1640075&r1=1640074&r2=1640075&view=diff
==============================================================================
--- sling/trunk/contrib/launchpad/debian/pom.xml (original)
+++ sling/trunk/contrib/launchpad/debian/pom.xml Mon Nov 17 07:23:41 2014
@@ -48,11 +48,10 @@ under the License.
             jdeb plugin version for debian package
         -->
         <jdeb.version>1.0.1</jdeb.version>
-        <!--
-            builder artifact identifier
-        -->
-        <builder.artifact>org.apache.sling.launchpad</builder.artifact>
 
+        <launchpad.artifact>org.apache.sling.launchpad</launchpad.artifact>
+        <launchpad.version>8-SNAPSHOT</launchpad.version>
+        <launchpad.classifier>standalone</launchpad.classifier>
     </properties>
 
     <build>
@@ -70,7 +69,7 @@ under the License.
                         <configuration>
                             <dataSet>
                                 <data>
-                                    <src>../../../launchpad/builder/target/${builder.artifact}-${project.version}-standalone.jar</src>
+                                    <src>${project.build.directory}/${launchpad.artifact}-${project.version}-${launchpad.classifier}.jar</src>
                                     <type>file</type>
                                     <mapper>
                                         <type>perm</type>
@@ -91,9 +90,38 @@ under the License.
                     </execution>
                 </executions>
             </plugin>
-
+			<plugin>
+				<groupId>org.apache.maven.plugins</groupId>
+				<artifactId>maven-dependency-plugin</artifactId>
+				<executions>
+					<execution>
+						<id>copy-dependencies</id>
+						<goals>
+    						<goal>copy-dependencies</goal>
+						</goals>
+						<phase>process-resources</phase>
+						<configuration>
+							<outputDirectory>${project.build.directory}</outputDirectory>
+							<includeArtifactIds>${launchpad.artifact}</includeArtifactIds>
+							<excludeTransitive>true</excludeTransitive>
+							<overWriteReleases>false</overWriteReleases>
+							<overWriteSnapshots>false</overWriteSnapshots>
+						</configuration>
+					</execution>
+				</executions>
+			</plugin>
         </plugins>
     </build>
+    
+	<dependencies>
+	    <dependency>
+	        <groupId>org.apache.sling</groupId>
+	        <artifactId>${launchpad.artifact}</artifactId>
+	        <version>${launchpad.version}</version>
+	        <classifier>${launchpad.classifier}</classifier>
+	    </dependency>
+	</dependencies>
+        
     <reporting>
         <plugins>
             <plugin>
@@ -122,5 +150,4 @@ under the License.
             </snapshots>
         </repository>
     </repositories>
-</project>
-
+</project>
\ No newline at end of file