Merge "BUG-2679 Workaround for wrong nagasena encode/decode with reused transmogrifier"
[controller.git] / karaf / opendaylight-karaf-empty / 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.5.0-SNAPSHOT</version>
8     <relativePath>../../opendaylight/commons/opendaylight</relativePath>
9   </parent>
10   <artifactId>opendaylight-karaf-empty</artifactId>
11   <packaging>pom</packaging>
12
13   <dependencies>
14     <dependency>
15       <!-- scope is compile so all features (there is only one) are installed
16             into startup.properties and the feature repo itself is not installed -->
17       <groupId>org.apache.karaf.features</groupId>
18       <artifactId>framework</artifactId>
19       <version>${karaf.version}</version>
20       <type>kar</type>
21     </dependency>
22     <!-- scope is runtime so the feature repo is listed in the features
23       service config file, and features may be installed using the
24       karaf-maven-plugin configuration -->
25     <dependency>
26       <groupId>org.apache.karaf.features</groupId>
27       <artifactId>standard</artifactId>
28       <version>${karaf.version}</version>
29       <classifier>features</classifier>
30       <type>xml</type>
31       <scope>runtime</scope>
32     </dependency>
33
34     <!-- ODL Branding -->
35     <dependency>
36       <groupId>org.opendaylight.controller</groupId>
37       <artifactId>karaf.branding</artifactId>
38       <scope>compile</scope>
39     </dependency>
40
41     <!-- Resources needed -->
42     <dependency>
43       <groupId>org.opendaylight.controller</groupId>
44       <artifactId>opendaylight-karaf-resources</artifactId>
45       <version>${project.version}</version>
46     </dependency>
47   </dependencies>
48
49   <build>
50     <pluginManagement>
51       <plugins>
52         <plugin>
53           <groupId>org.eclipse.m2e</groupId>
54           <artifactId>lifecycle-mapping</artifactId>
55           <version>1.0.0</version>
56           <configuration>
57             <lifecycleMappingMetadata>
58               <pluginExecutions>
59                 <pluginExecution>
60                   <pluginExecutionFilter>
61                     <groupId>org.apache.felix</groupId>
62                     <artifactId>maven-bundle-plugin</artifactId>
63                     <versionRange>[0,)</versionRange>
64                     <goals>
65                       <goal>cleanVersions</goal>
66                     </goals>
67                   </pluginExecutionFilter>
68                   <action>
69                     <ignore></ignore>
70                   </action>
71                 </pluginExecution>
72                 <pluginExecution>
73                   <pluginExecutionFilter>
74                     <groupId>org.apache.maven.plugins</groupId>
75                     <artifactId>maven-dependency-plugin</artifactId>
76                     <versionRange>[0,)</versionRange>
77                     <goals>
78                       <goal>copy</goal>
79                       <goal>unpack</goal>
80                     </goals>
81                   </pluginExecutionFilter>
82                   <action>
83                     <ignore></ignore>
84                   </action>
85                 </pluginExecution>
86                 <pluginExecution>
87                   <pluginExecutionFilter>
88                     <groupId>org.apache.karaf.tooling</groupId>
89                     <artifactId>karaf-maven-plugin</artifactId>
90                     <versionRange>[0,)</versionRange>
91                     <goals>
92                       <goal>commands-generate-help</goal>
93                     </goals>
94                   </pluginExecutionFilter>
95                   <action>
96                     <ignore></ignore>
97                   </action>
98                 </pluginExecution>
99                 <pluginExecution>
100                   <pluginExecutionFilter>
101                     <groupId>org.fusesource.scalate</groupId>
102                     <artifactId>maven-scalate-plugin</artifactId>
103                     <versionRange>[0,)</versionRange>
104                     <goals>
105                       <goal>sitegen</goal>
106                     </goals>
107                   </pluginExecutionFilter>
108                   <action>
109                     <ignore></ignore>
110                   </action>
111                 </pluginExecution>
112                 <pluginExecution>
113                   <pluginExecutionFilter>
114                     <groupId>org.apache.servicemix.tooling</groupId>
115                     <artifactId>depends-maven-plugin</artifactId>
116                     <versionRange>[0,)</versionRange>
117                     <goals>
118                       <goal>generate-depends-file</goal>
119                     </goals>
120                   </pluginExecutionFilter>
121                   <action>
122                     <ignore></ignore>
123                   </action>
124                 </pluginExecution>
125               </pluginExecutions>
126             </lifecycleMappingMetadata>
127           </configuration>
128         </plugin>
129       </plugins>
130     </pluginManagement>
131     <plugins>
132       <plugin>
133         <groupId>org.apache.karaf.tooling</groupId>
134         <artifactId>karaf-maven-plugin</artifactId>
135         <version>${karaf.version}</version>
136         <extensions>true</extensions>
137         <executions>
138           <execution>
139             <id>process-resources</id>
140             <goals>
141               <goal>install-kars</goal>
142             </goals>
143             <phase>process-resources</phase>
144           </execution>
145           <execution>
146             <id>package</id>
147             <goals>
148               <goal>instance-create-archive</goal>
149             </goals>
150           </execution>
151         </executions>
152       </plugin>
153       <plugin>
154         <groupId>org.apache.maven.plugins</groupId>
155         <artifactId>maven-checkstyle-plugin</artifactId>
156         <configuration>
157           <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/configuration\/initial\/</excludes>
158         </configuration>
159       </plugin>
160       <plugin>
161         <groupId>org.apache.maven.plugins</groupId>
162         <artifactId>maven-dependency-plugin</artifactId>
163         <version>2.6</version>
164         <executions>
165           <execution>
166             <id>copy</id>
167             <goals>
168               <goal>copy</goal>
169             </goals>
170             <!-- here the phase you need -->
171             <phase>generate-resources</phase>
172             <configuration>
173               <artifactItems>
174                 <artifactItem>
175                   <groupId>org.opendaylight.controller</groupId>
176                   <artifactId>karaf.branding</artifactId>
177                   <version>${karaf.branding.version}</version>
178                   <outputDirectory>target/assembly/lib</outputDirectory>
179                   <destFileName>karaf.branding-${branding.version}.jar</destFileName>
180                 </artifactItem>
181               </artifactItems>
182             </configuration>
183           </execution>
184           <execution>
185             <id>unpack-karaf-resources</id>
186             <goals>
187               <goal>unpack-dependencies</goal>
188             </goals>
189             <phase>prepare-package</phase>
190             <configuration>
191              <outputDirectory>${project.build.directory}/assembly</outputDirectory>
192              <groupId>org.opendaylight.controller</groupId>
193              <includeArtifactIds>opendaylight-karaf-resources</includeArtifactIds>
194              <excludes>META-INF\/**</excludes>
195              <excludeTransitive>true</excludeTransitive>
196              <ignorePermissions>false</ignorePermissions>
197             </configuration>
198           </execution>
199         </executions>
200       </plugin>
201       <plugin>
202         <groupId>org.apache.maven.plugins</groupId>
203         <artifactId>maven-antrun-plugin</artifactId>
204         <executions>
205             <execution>
206                 <phase>prepare-package</phase>
207                 <goals>
208                     <goal>run</goal>
209                 </goals>
210                 <configuration>
211                   <tasks>
212                     <chmod perm="755">
213                         <fileset dir="${project.build.directory}/assembly/bin">
214                           <include name="karaf"/>
215                           <include name="instance"/>
216                         </fileset>
217                     </chmod>
218                   </tasks>
219                 </configuration>
220             </execution>
221         </executions>
222       </plugin>
223     </plugins>
224   </build>
225   <scm>
226     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
227     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
228     <tag>HEAD</tag>
229     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
230   </scm>
231 </project>