Fixed Karaf Distribution Archetype add dependent bundles 77/10877/1
authorMathieu Lemay <mlemay@inocybe.com>
Sat, 6 Sep 2014 19:04:18 +0000 (15:04 -0400)
committerMathieu Lemay <mlemay@inocybe.com>
Sat, 6 Sep 2014 19:04:18 +0000 (15:04 -0400)
This patch adds the copy-dependencies execution so that bundles are copied
to /system in local distribution for projects using this archetype so that
the final package can be used offline or without local developer .m2 repository.

Change-Id: I4fa661611eeb5e3c0e466fe748e9453264e0695d
Signed-off-by: Mathieu Lemay <mlemay@inocybe.com>
opendaylight/archetypes/opendaylight-karaf-distro-archetype/src/main/resources/archetype-resources/pom.xml

index 965c61969558b3dd5524dae38e8ab0a374663fb3..fdc60625c85536a4c22ab52836bed884aa4e8696 100644 (file)
              <ignorePermissions>false</ignorePermissions>
             </configuration>
           </execution>
              <ignorePermissions>false</ignorePermissions>
             </configuration>
           </execution>
+          <execution>
+            <id>copy-dependencies</id>
+            <phase>prepare-package</phase>
+            <goals>
+              <goal>copy-dependencies</goal>
+            </goals>
+            <configuration>
+              <outputDirectory>${project.build.directory}/assembly/system</outputDirectory>
+              <overWriteReleases>false</overWriteReleases>
+              <overWriteSnapshots>true</overWriteSnapshots>
+              <overWriteIfNewer>true</overWriteIfNewer>
+              <useRepositoryLayout>true</useRepositoryLayout>
+              <addParentPoms>true</addParentPoms>
+              <copyPom>true</copyPom>
+            </configuration>
+          </execution>
         </executions>
       </plugin>
       <plugin>
         </executions>
       </plugin>
       <plugin>