Merge "Fixed opendaylight-karaf to have resources in target/assembly"
authorGiovanni Meo <gmeo@cisco.com>
Tue, 6 May 2014 17:12:05 +0000 (17:12 +0000)
committerGerrit Code Review <gerrit@opendaylight.org>
Tue, 6 May 2014 17:12:05 +0000 (17:12 +0000)
opendaylight/distribution/opendaylight-karaf/pom.xml

index 60f660a..7708985 100644 (file)
           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
         </configuration>
       </plugin>
+      <plugin>
+        <artifactId>maven-resources-plugin</artifactId>
+        <version>2.6</version>
+        <executions>
+          <execution>
+            <id>copy-resources</id>
+            <goals>
+              <goal>copy-resources</goal>
+            </goals>
+            <!-- here the phase you need -->
+            <phase>process-resources</phase>
+            <configuration>
+              <outputDirectory>${basedir}/target/assembly</outputDirectory>
+              <overwrite>true</overwrite>
+              <resources>
+                <resource>
+                  <directory>${basedir}/src/main/resources</directory>
+                </resource>
+              </resources>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
     </plugins>
   </build>
   <scm>