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
diff --git a/pom.xml b/pom.xml
index d727947..88e2f7e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -48,11 +48,10 @@
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 @@
<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 @@
</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 @@
</snapshots>
</repository>
</repositories>
-</project>
-
+</project>
\ No newline at end of file