Use jacoco version from odlparent
[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.2-SNAPSHOT</version>
16     <relativePath />
17   </parent>
18
19   <groupId>org.opendaylight.nemo</groupId>
20   <artifactId>nemo-impl</artifactId>
21   <version>1.0.2-SNAPSHOT</version>
22   <packaging>bundle</packaging>
23   <name>${project.artifactId}</name>
24
25   <properties>
26     <powermock.version>1.5.2</powermock.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   </properties>
30
31   <dependencies>
32     <dependency>
33       <groupId>org.opendaylight.mdsal.model</groupId>
34       <artifactId>ietf-inet-types</artifactId>
35     </dependency>
36     <dependency>
37       <groupId>org.opendaylight.mdsal.model</groupId>
38       <artifactId>ietf-yang-types</artifactId>
39     </dependency>
40     <dependency>
41       <groupId>${project.groupId}</groupId>
42       <artifactId>nemo-api</artifactId>
43       <version>${project.version}</version>
44     </dependency>
45     <dependency>
46       <groupId>net.sourceforge.collections</groupId>
47       <artifactId>collections-generic</artifactId>
48       <version>4.01</version>
49     </dependency>
50     <dependency>
51       <groupId>net.sf.jung</groupId>
52       <artifactId>jung-api</artifactId>
53       <version>2.0.1</version>
54     </dependency>
55     <dependency>
56       <groupId>net.sf.jung</groupId>
57       <artifactId>jung-graph-impl</artifactId>
58       <version>2.0.1</version>
59     </dependency>
60     <dependency>
61       <groupId>net.sf.jung</groupId>
62       <artifactId>jung-algorithms</artifactId>
63       <version>2.0.1</version>
64     </dependency>
65     <dependency>
66       <groupId>com.google.guava</groupId>
67       <artifactId>guava</artifactId>
68     </dependency>
69     <dependency>
70       <groupId>junit</groupId>
71       <artifactId>junit</artifactId>
72       <scope>test</scope>
73     </dependency>
74     <dependency>
75       <groupId>org.mockito</groupId>
76       <artifactId>mockito-all</artifactId>
77       <scope>test</scope>
78     </dependency>
79         <dependency>
80       <groupId>org.powermock</groupId>
81       <artifactId>powermock-core</artifactId>
82       <version>${powermock.version}</version>
83       <scope>test</scope>
84     </dependency>
85     <dependency>
86       <groupId>org.powermock</groupId>
87       <artifactId>powermock-module-junit4</artifactId>
88       <version>${powermock.version}</version>
89       <scope>test</scope>
90     </dependency>
91     <dependency>
92       <groupId>org.powermock</groupId>
93       <artifactId>powermock-api-mockito</artifactId>
94       <version>${powermock.version}</version>
95       <scope>test</scope>
96     </dependency>
97     <dependency>
98       <groupId>org.slf4j</groupId>
99       <artifactId>slf4j-simple</artifactId>
100       <scope>test</scope>
101     </dependency>
102   </dependencies>
103
104   <build>
105     <plugins>
106       <plugin>
107         <groupId>org.opendaylight.yangtools</groupId>
108         <artifactId>yang-maven-plugin</artifactId>
109         <executions>
110           <execution>
111             <goals>
112               <goal>generate-sources</goal>
113             </goals>
114             <configuration>
115               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
116               <codeGenerators>
117                 <generator>
118                   <codeGeneratorClass>
119                     org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
120                   </codeGeneratorClass>
121                   <outputBaseDir>
122                     ${salGeneratorPath}
123                   </outputBaseDir>
124                 </generator>
125               </codeGenerators>
126               <inspectDependencies>true</inspectDependencies>
127             </configuration>
128           </execution>
129         </executions>
130         <dependencies>
131           <dependency>
132             <groupId>org.opendaylight.mdsal</groupId>
133             <artifactId>maven-sal-api-gen-plugin</artifactId>
134             <version>${yangtools.version}</version>
135             <type>jar</type>
136           </dependency>
137         </dependencies>
138       </plugin>
139       <plugin>
140         <groupId>org.apache.felix</groupId>
141         <artifactId>maven-bundle-plugin</artifactId>
142         <extensions>true</extensions>
143         <configuration>
144           <instructions>
145             <Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
146             <Import-Package>*;resolution:=optional</Import-Package>
147             <Embed-Dependency>
148               collections-generic,jung-api,jung-graph-impl,jung-algorithms
149             </Embed-Dependency>
150             <Embed-Transitive>true</Embed-Transitive>
151             <Embed-Directory>lib</Embed-Directory>
152             <Embed-StripGroup>true</Embed-StripGroup>
153             <_failok>true</_failok>
154             <_nouses>true</_nouses>
155           </instructions>
156           <manifestLocation>${project.build.outputDirectory}/META-INF</manifestLocation>
157         </configuration>
158       </plugin>
159       <plugin>
160         <groupId>org.codehaus.mojo</groupId>
161         <artifactId>build-helper-maven-plugin</artifactId>
162         <executions>
163           <execution>
164             <id>attach-artifacts</id>
165             <goals>
166               <goal>attach-artifact</goal>
167             </goals>
168             <phase>package</phase>
169             <configuration>
170               <artifacts>
171                 <artifact>
172                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/config.xml</file>
173                   <type>xml</type>
174                   <classifier>config</classifier>
175                 </artifact>
176               </artifacts>
177             </configuration>
178           </execution>
179         </executions>
180       </plugin>
181       <plugin>
182         <groupId>org.jacoco</groupId>
183         <artifactId>jacoco-maven-plugin</artifactId>
184         <executions>
185           <execution>
186             <id>pre-unit-test</id>
187             <goals>
188               <goal>prepare-agent</goal>
189             </goals>
190             <configuration>
191               <destFile>${sonar.jacoco.reportPath}</destFile>
192             </configuration>
193           </execution>
194           <execution>
195             <id>post-unit-test</id>
196             <goals>
197               <goal>report</goal>
198             </goals>
199             <configuration>
200               <dataFile>${sonar.jacoco.reportPath}</dataFile>
201             </configuration>
202           </execution>
203         </executions>
204       </plugin>
205     </plugins>
206   </build>
207
208   <scm>
209     <connection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</connection>
210     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</developerConnection>
211     <url>https://wiki.opendaylight.org/view/NEMO:Main</url>
212     <tag>HEAD</tag>
213   </scm>
214 </project>