d9524610f6393eda547924205be0c1629f1145d5
[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.0-SNAPSHOT</version>
16     <relativePath />
17   </parent>
18
19   <groupId>org.opendaylight.nemo</groupId>
20   <artifactId>nemo-impl</artifactId>
21   <version>1.0.0-SNAPSHOT</version>
22   <packaging>bundle</packaging>
23   <name>${project.artifactId}</name>
24
25   <properties>
26     <jacoco.version>0.7.2.201409121644</jacoco.version>
27     <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
28     <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
29          <powermock.version>1.4.10</powermock.version>
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     </dependency>
74     <dependency>
75       <groupId>org.slf4j</groupId>
76       <artifactId>slf4j-simple</artifactId>
77       <scope>test</scope>
78     </dependency>
79     <dependency>
80       <groupId>org.codehaus.jettison</groupId>
81       <artifactId>jettison</artifactId>
82     </dependency>
83         <dependency>
84       <groupId>org.mockito</groupId>
85       <artifactId>mockito-all</artifactId>
86       <scope>test</scope>
87     </dependency>
88     <dependency>
89       <groupId>junit</groupId>
90       <artifactId>junit</artifactId>
91     </dependency>
92
93     <dependency>
94       <groupId>org.powermock</groupId>
95       <artifactId>powermock-module-junit4</artifactId>
96       <version>${powermock.version}</version>
97       <scope>test</scope>
98     </dependency>
99     <dependency>
100       <groupId>org.powermock</groupId>
101       <artifactId>powermock-api-mockito</artifactId>
102       <version>${powermock.version}</version>
103       <scope>test</scope>
104     </dependency>
105     <dependency>
106       <groupId>org.powermock</groupId>
107       <artifactId>powermock-api-mockito</artifactId>
108       <version>${powermock.version}</version>
109       <scope>test</scope>
110     </dependency>
111     <dependency>
112       <groupId>org.slf4j</groupId>
113       <artifactId>slf4j-simple</artifactId>
114       <scope>test</scope>
115     </dependency>
116   </dependencies>
117
118   <build>
119     <pluginManagement>
120       <plugins>
121         <plugin>
122           <groupId>org.jacoco</groupId>
123           <artifactId>jacoco-maven-plugin</artifactId>
124           <version>${jacoco.version}</version>
125         </plugin>
126       </plugins>
127     </pluginManagement>
128     <plugins>
129       <plugin>
130         <groupId>org.opendaylight.yangtools</groupId>
131         <artifactId>yang-maven-plugin</artifactId>
132         <executions>
133           <execution>
134             <goals>
135               <goal>generate-sources</goal>
136             </goals>
137             <configuration>
138               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
139               <codeGenerators>
140                 <generator>
141                   <codeGeneratorClass>
142                     org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
143                   </codeGeneratorClass>
144                   <outputBaseDir>
145                     ${salGeneratorPath}
146                   </outputBaseDir>
147                 </generator>
148               </codeGenerators>
149               <inspectDependencies>true</inspectDependencies>
150             </configuration>
151           </execution>
152         </executions>
153         <dependencies>
154           <dependency>
155             <groupId>org.opendaylight.mdsal</groupId>
156             <artifactId>maven-sal-api-gen-plugin</artifactId>
157             <version>${yangtools.version}</version>
158             <type>jar</type>
159           </dependency>
160         </dependencies>
161       </plugin>
162       <plugin>
163         <groupId>org.apache.felix</groupId>
164         <artifactId>maven-bundle-plugin</artifactId>
165         <extensions>true</extensions>
166         <configuration>
167           <instructions>
168             <Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
169             <Import-Package>*;resolution:=optional</Import-Package>
170             <Embed-Dependency>
171               collections-generic,jung-api,jung-graph-impl,jung-algorithms
172             </Embed-Dependency>
173             <Embed-Transitive>true</Embed-Transitive>
174             <Embed-Directory>lib</Embed-Directory>
175             <Embed-StripGroup>true</Embed-StripGroup>
176             <_failok>true</_failok>
177             <_nouses>true</_nouses>
178           </instructions>
179           <manifestLocation>${project.build.outputDirectory}/META-INF</manifestLocation>
180         </configuration>
181       </plugin>
182       <plugin>
183         <groupId>org.codehaus.mojo</groupId>
184         <artifactId>build-helper-maven-plugin</artifactId>
185         <executions>
186           <execution>
187             <id>attach-artifacts</id>
188             <goals>
189               <goal>attach-artifact</goal>
190             </goals>
191             <phase>package</phase>
192             <configuration>
193               <artifacts>
194                 <artifact>
195                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/config.xml</file>
196                   <type>xml</type>
197                   <classifier>config</classifier>
198                 </artifact>
199               </artifacts>
200             </configuration>
201           </execution>
202         </executions>
203       </plugin>
204       <plugin>
205         <groupId>org.jacoco</groupId>
206         <artifactId>jacoco-maven-plugin</artifactId>
207         <executions>
208           <execution>
209             <id>pre-unit-test</id>
210             <goals>
211               <goal>prepare-agent</goal>
212             </goals>
213             <configuration>
214               <destFile>${sonar.jacoco.reportPath}</destFile>
215             </configuration>
216           </execution>
217           <execution>
218             <id>post-unit-test</id>
219             <goals>
220               <goal>report</goal>
221             </goals>
222             <configuration>
223               <dataFile>${sonar.jacoco.reportPath}</dataFile>
224             </configuration>
225           </execution>
226         </executions>
227       </plugin>
228     </plugins>
229   </build>
230
231   <scm>
232     <connection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</connection>
233     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</developerConnection>
234     <url>https://wiki.opendaylight.org/view/NEMO:Main</url>
235     <tag>HEAD</tag>
236   </scm>
237 </project>