Fixed opendaylight-karaf to have resources in target/assembly
[controller.git] / opendaylight / distribution / opendaylight-karaf / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>commons.opendaylight</artifactId>
7     <version>1.4.2-SNAPSHOT</version>
8     <relativePath>../../commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>distribution.opendaylight-karaf</artifactId>
11   <packaging>pom</packaging>
12   <prerequisites>
13     <maven>3.0</maven>
14   </prerequisites>
15
16   <dependencies>
17     <dependency>
18       <!-- scope is compile so all features (there is only one) are installed
19             into startup.properties and the feature repo itself is not installed -->
20       <groupId>org.apache.karaf.features</groupId>
21       <artifactId>framework</artifactId>
22       <version>${karaf.version}</version>
23       <type>kar</type>
24     </dependency>
25     <!-- scope is runtime so the feature repo is listed in the features
26       service config file, and features may be installed using the
27       karaf-maven-plugin configuration -->
28     <!-- dependencies commented out till we can get them in
29     <dependency>
30       <groupId>org.apache.karaf.features</groupId>
31       <artifactId>standard</artifactId>
32       <version>${karaf.version}</version>
33       <classifier>features</classifier>
34       <type>xml</type>
35       <scope>runtime</scope>
36     </dependency>
37     <dependency>
38       <groupId>org.opendaylight.controller</groupId>
39       <artifactId>controller-features</artifactId>
40       <version>${project.version}</version>
41       <classifier>features</classifier>
42       <type>xml</type>
43       <scope>runtime</scope>
44     </dependency>
45     <dependency>
46       <groupId>org.opendaylight.yangtools</groupId>
47       <artifactId>features-file</artifactId>
48       <version>${yangtools.version}</version>
49       <classifier>features</classifier>
50       <type>xml</type>
51       <scope>runtime</scope>
52     </dependency>
53   -->
54   </dependencies>
55
56   <build>
57     <pluginManagement>
58       <plugins>
59         <plugin>
60           <groupId>org.eclipse.m2e</groupId>
61           <artifactId>lifecycle-mapping</artifactId>
62           <version>1.0.0</version>
63           <configuration>
64             <lifecycleMappingMetadata>
65               <pluginExecutions>
66                 <pluginExecution>
67                   <pluginExecutionFilter>
68                     <groupId>org.apache.felix</groupId>
69                     <artifactId>maven-bundle-plugin</artifactId>
70                     <versionRange>[0,)</versionRange>
71                     <goals>
72                       <goal>cleanVersions</goal>
73                     </goals>
74                   </pluginExecutionFilter>
75                   <action>
76                     <ignore></ignore>
77                   </action>
78                 </pluginExecution>
79                 <pluginExecution>
80                   <pluginExecutionFilter>
81                     <groupId>org.apache.maven.plugins</groupId>
82                     <artifactId>maven-dependency-plugin</artifactId>
83                     <versionRange>[0,)</versionRange>
84                     <goals>
85                       <goal>copy</goal>
86                       <goal>unpack</goal>
87                     </goals>
88                   </pluginExecutionFilter>
89                   <action>
90                     <ignore></ignore>
91                   </action>
92                 </pluginExecution>
93                 <pluginExecution>
94                   <pluginExecutionFilter>
95                     <groupId>org.apache.karaf.tooling</groupId>
96                     <artifactId>karaf-maven-plugin</artifactId>
97                     <versionRange>[0,)</versionRange>
98                     <goals>
99                       <goal>commands-generate-help</goal>
100                     </goals>
101                   </pluginExecutionFilter>
102                   <action>
103                     <ignore></ignore>
104                   </action>
105                 </pluginExecution>
106                 <pluginExecution>
107                   <pluginExecutionFilter>
108                     <groupId>org.fusesource.scalate</groupId>
109                     <artifactId>maven-scalate-plugin</artifactId>
110                     <versionRange>[0,)</versionRange>
111                     <goals>
112                       <goal>sitegen</goal>
113                     </goals>
114                   </pluginExecutionFilter>
115                   <action>
116                     <ignore></ignore>
117                   </action>
118                 </pluginExecution>
119                 <pluginExecution>
120                   <pluginExecutionFilter>
121                     <groupId>org.apache.servicemix.tooling</groupId>
122                     <artifactId>depends-maven-plugin</artifactId>
123                     <versionRange>[0,)</versionRange>
124                     <goals>
125                       <goal>generate-depends-file</goal>
126                     </goals>
127                   </pluginExecutionFilter>
128                   <action>
129                     <ignore></ignore>
130                   </action>
131                 </pluginExecution>
132               </pluginExecutions>
133             </lifecycleMappingMetadata>
134           </configuration>
135         </plugin>
136       </plugins>
137     </pluginManagement>
138     <plugins>
139       <plugin>
140         <groupId>org.apache.karaf.tooling</groupId>
141         <artifactId>karaf-maven-plugin</artifactId>
142         <version>${karaf.version}</version>
143         <extensions>true</extensions>
144         <configuration>
145           <!-- no startupFeatures -->
146           <bootFeatures>
147             <feature>standard</feature>
148           </bootFeatures>
149           <!-- no installedFeatures -->
150         </configuration>
151         <executions>
152           <execution>
153             <id>process-resources</id>
154             <goals>
155               <goal>install-kars</goal>
156             </goals>
157             <phase>process-resources</phase>
158           </execution>
159           <execution>
160             <id>package</id>
161             <goals>
162               <goal>instance-create-archive</goal>
163             </goals>
164           </execution>
165         </executions>
166       </plugin>
167       <plugin>
168         <groupId>org.apache.maven.plugins</groupId>
169         <artifactId>maven-checkstyle-plugin</artifactId>
170         <version>${checkstyle.version}</version>
171         <configuration>
172           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
173         </configuration>
174       </plugin>
175       <plugin>
176         <artifactId>maven-resources-plugin</artifactId>
177         <version>2.6</version>
178         <executions>
179           <execution>
180             <id>copy-resources</id>
181             <goals>
182               <goal>copy-resources</goal>
183             </goals>
184             <!-- here the phase you need -->
185             <phase>process-resources</phase>
186             <configuration>
187               <outputDirectory>${basedir}/target/assembly</outputDirectory>
188               <overwrite>true</overwrite>
189               <resources>
190                 <resource>
191                   <directory>${basedir}/src/main/resources</directory>
192                 </resource>
193               </resources>
194             </configuration>
195           </execution>
196         </executions>
197       </plugin>
198     </plugins>
199   </build>
200   <scm>
201     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
202     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
203     <tag>HEAD</tag>
204     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
205   </scm>
206 </project>