You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:25:58 UTC

[sling-launchpad-debian] 02/15: SLING-4151 - use maven-dependency-plugin to get launchpad jar

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-launchpad-debian.git

commit bc070cb9cb200c3a48327d98b2d44c08758868d2
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon Nov 17 07:23:41 2014 +0000

    SLING-4151 - use maven-dependency-plugin to get launchpad jar
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1640075 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml | 43 +++++++++++++++++++++++++++++++++++--------
 1 file changed, 35 insertions(+), 8 deletions(-)

diff --git a/pom.xml b/pom.xml
index d727947..88e2f7e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -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

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.