7f991a7f3413e478afa8257e70436327744b542d
[nemo.git] / nemo-impl / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 Copyright (c) 2015 Huawei, Inc and others. All rights reserved.
4 This program and the accompanying materials are made available under the
5 terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 and is available at http://www.eclipse.org/legal/epl-v10.html
7 -->
8 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
10   <modelVersion>4.0.0</modelVersion>
11
12   <parent>
13     <groupId>org.opendaylight.controller</groupId>
14     <artifactId>config-parent</artifactId>
15     <version>0.4.1-Beryllium-SR1</version>
16     <relativePath />
17   </parent>
18
19   <groupId>org.opendaylight.nemo</groupId>
20   <artifactId>nemo-impl</artifactId>
21   <version>1.0.1-Beryllium-SR1</version>
22   <packaging>bundle</packaging>
23   <name>${project.artifactId}</name>
24
25   <properties>
26     <powermock.version>1.5.2</powermock.version>
27     <jacoco.version>0.7.2.201409121644</jacoco.version>
28     <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
29     <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
30   </properties>
31
32   <dependencies>
33     <dependency>
34       <groupId>org.opendaylight.mdsal.model</groupId>
35       <artifactId>ietf-inet-types</artifactId>
36     </dependency>
37     <dependency>
38       <groupId>org.opendaylight.mdsal.model</groupId>
39       <artifactId>ietf-yang-types</artifactId>
40     </dependency>
41     <dependency>
42       <groupId>${project.groupId}</groupId>
43       <artifactId>nemo-api</artifactId>
44       <version>${project.version}</version>
45     </dependency>
46     <dependency>
47       <groupId>net.sourceforge.collections</groupId>
48       <artifactId>collections-generic</artifactId>
49       <version>4.01</version>
50     </dependency>
51     <dependency>
52       <groupId>net.sf.jung</groupId>
53       <artifactId>jung-api</artifactId>
54       <version>2.0.1</version>
55     </dependency>
56     <dependency>
57       <groupId>net.sf.jung</groupId>
58       <artifactId>jung-graph-impl</artifactId>
59       <version>2.0.1</version>
60     </dependency>
61     <dependency>
62       <groupId>net.sf.jung</groupId>
63       <artifactId>jung-algorithms</artifactId>
64       <version>2.0.1</version>
65     </dependency>
66     <dependency>
67       <groupId>com.google.guava</groupId>
68       <artifactId>guava</artifactId>
69     </dependency>
70     <dependency>
71       <groupId>junit</groupId>
72       <artifactId>junit</artifactId>
73       <scope>test</scope>
74     </dependency>
75     <dependency>
76       <groupId>org.mockito</groupId>
77       <artifactId>mockito-all</artifactId>
78       <scope>test</scope>
79     </dependency>
80         <dependency>
81       <groupId>org.powermock</groupId>
82       <artifactId>powermock-core</artifactId>
83       <version>${powermock.version}</version>
84       <scope>test</scope>
85     </dependency>
86     <dependency>
87       <groupId>org.powermock</groupId>
88       <artifactId>powermock-module-junit4</artifactId>
89       <version>${powermock.version}</version>
90       <scope>test</scope>
91     </dependency>
92     <dependency>
93       <groupId>org.powermock</groupId>
94       <artifactId>powermock-api-mockito</artifactId>
95       <version>${powermock.version}</version>
96       <scope>test</scope>
97     </dependency>
98     <dependency>
99       <groupId>org.slf4j</groupId>
100       <artifactId>slf4j-simple</artifactId>
101       <scope>test</scope>
102     </dependency>
103   </dependencies>
104
105   <build>
106     <pluginManagement>
107       <plugins>
108         <plugin>
109           <groupId>org.jacoco</groupId>
110           <artifactId>jacoco-maven-plugin</artifactId>
111           <version>${jacoco.version}</version>
112         </plugin>
113       </plugins>
114     </pluginManagement>
115     <plugins>
116       <plugin>
117         <groupId>org.opendaylight.yangtools</groupId>
118         <artifactId>yang-maven-plugin</artifactId>
119         <executions>
120           <execution>
121             <goals>
122               <goal>generate-sources</goal>
123             </goals>
124             <configuration>
125               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
126               <codeGenerators>
127                 <generator>
128                   <codeGeneratorClass>
129                     org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
130                   </codeGeneratorClass>
131                   <outputBaseDir>
132                     ${salGeneratorPath}
133                   </outputBaseDir>
134                 </generator>
135               </codeGenerators>
136               <inspectDependencies>true</inspectDependencies>
137             </configuration>
138           </execution>
139         </executions>
140         <dependencies>
141           <dependency>
142             <groupId>org.opendaylight.mdsal</groupId>
143             <artifactId>maven-sal-api-gen-plugin</artifactId>
144             <version>${yangtools.version}</version>
145             <type>jar</type>
146           </dependency>
147         </dependencies>
148       </plugin>
149       <plugin>
150         <groupId>org.apache.felix</groupId>
151         <artifactId>maven-bundle-plugin</artifactId>
152         <extensions>true</extensions>
153         <configuration>
154           <instructions>
155             <Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
156             <Import-Package>*;resolution:=optional</Import-Package>
157             <Embed-Dependency>
158               collections-generic,jung-api,jung-graph-impl,jung-algorithms
159             </Embed-Dependency>
160             <Embed-Transitive>true</Embed-Transitive>
161             <Embed-Directory>lib</Embed-Directory>
162             <Embed-StripGroup>true</Embed-StripGroup>
163             <_failok>true</_failok>
164             <_nouses>true</_nouses>
165           </instructions>
166           <manifestLocation>${project.build.outputDirectory}/META-INF</manifestLocation>
167         </configuration>
168       </plugin>
169       <plugin>
170         <groupId>org.codehaus.mojo</groupId>
171         <artifactId>build-helper-maven-plugin</artifactId>
172         <executions>
173           <execution>
174             <id>attach-artifacts</id>
175             <goals>
176               <goal>attach-artifact</goal>
177             </goals>
178             <phase>package</phase>
179             <configuration>
180               <artifacts>
181                 <artifact>
182                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/config.xml</file>
183                   <type>xml</type>
184                   <classifier>config</classifier>
185                 </artifact>
186               </artifacts>
187             </configuration>
188           </execution>
189         </executions>
190       </plugin>
191       <plugin>
192         <groupId>org.jacoco</groupId>
193         <artifactId>jacoco-maven-plugin</artifactId>
194         <executions>
195           <execution>
196             <id>pre-unit-test</id>
197             <goals>
198               <goal>prepare-agent</goal>
199             </goals>
200             <configuration>
201               <destFile>${sonar.jacoco.reportPath}</destFile>
202             </configuration>
203           </execution>
204           <execution>
205             <id>post-unit-test</id>
206             <goals>
207               <goal>report</goal>
208             </goals>
209             <configuration>
210               <dataFile>${sonar.jacoco.reportPath}</dataFile>
211             </configuration>
212           </execution>
213         </executions>
214       </plugin>
215     </plugins>
216   </build>
217
218   <scm>
219     <connection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</connection>
220     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</developerConnection>
221     <url>https://wiki.opendaylight.org/view/NEMO:Main</url>
222     <tag>HEAD</tag>
223   </scm>
224 </project>