Merge "Add nemo-impl partical test files"
[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     <powermock.version>1.4.10</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-api-mockito</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.slf4j</groupId>
94       <artifactId>slf4j-simple</artifactId>
95       <scope>test</scope>
96     </dependency>
97   </dependencies>
98
99   <build>
100     <pluginManagement>
101       <plugins>
102         <plugin>
103           <groupId>org.jacoco</groupId>
104           <artifactId>jacoco-maven-plugin</artifactId>
105           <version>${jacoco.version}</version>
106         </plugin>
107       </plugins>
108     </pluginManagement>
109     <plugins>
110       <plugin>
111         <groupId>org.opendaylight.yangtools</groupId>
112         <artifactId>yang-maven-plugin</artifactId>
113         <executions>
114           <execution>
115             <goals>
116               <goal>generate-sources</goal>
117             </goals>
118             <configuration>
119               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
120               <codeGenerators>
121                 <generator>
122                   <codeGeneratorClass>
123                     org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
124                   </codeGeneratorClass>
125                   <outputBaseDir>
126                     ${salGeneratorPath}
127                   </outputBaseDir>
128                 </generator>
129               </codeGenerators>
130               <inspectDependencies>true</inspectDependencies>
131             </configuration>
132           </execution>
133         </executions>
134         <dependencies>
135           <dependency>
136             <groupId>org.opendaylight.mdsal</groupId>
137             <artifactId>maven-sal-api-gen-plugin</artifactId>
138             <version>${yangtools.version}</version>
139             <type>jar</type>
140           </dependency>
141         </dependencies>
142       </plugin>
143       <plugin>
144         <groupId>org.apache.felix</groupId>
145         <artifactId>maven-bundle-plugin</artifactId>
146         <extensions>true</extensions>
147         <configuration>
148           <instructions>
149             <Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
150             <Import-Package>*;resolution:=optional</Import-Package>
151             <Embed-Dependency>
152               collections-generic,jung-api,jung-graph-impl,jung-algorithms
153             </Embed-Dependency>
154             <Embed-Transitive>true</Embed-Transitive>
155             <Embed-Directory>lib</Embed-Directory>
156             <Embed-StripGroup>true</Embed-StripGroup>
157             <_failok>true</_failok>
158             <_nouses>true</_nouses>
159           </instructions>
160           <manifestLocation>${project.build.outputDirectory}/META-INF</manifestLocation>
161         </configuration>
162       </plugin>
163       <plugin>
164         <groupId>org.codehaus.mojo</groupId>
165         <artifactId>build-helper-maven-plugin</artifactId>
166         <executions>
167           <execution>
168             <id>attach-artifacts</id>
169             <goals>
170               <goal>attach-artifact</goal>
171             </goals>
172             <phase>package</phase>
173             <configuration>
174               <artifacts>
175                 <artifact>
176                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/config.xml</file>
177                   <type>xml</type>
178                   <classifier>config</classifier>
179                 </artifact>
180               </artifacts>
181             </configuration>
182           </execution>
183         </executions>
184       </plugin>
185       <plugin>
186         <groupId>org.jacoco</groupId>
187         <artifactId>jacoco-maven-plugin</artifactId>
188         <executions>
189           <execution>
190             <id>pre-unit-test</id>
191             <goals>
192               <goal>prepare-agent</goal>
193             </goals>
194             <configuration>
195               <destFile>${sonar.jacoco.reportPath}</destFile>
196             </configuration>
197           </execution>
198           <execution>
199             <id>post-unit-test</id>
200             <goals>
201               <goal>report</goal>
202             </goals>
203             <configuration>
204               <dataFile>${sonar.jacoco.reportPath}</dataFile>
205             </configuration>
206           </execution>
207         </executions>
208       </plugin>
209     </plugins>
210   </build>
211
212   <scm>
213     <connection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</connection>
214     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</developerConnection>
215     <url>https://wiki.opendaylight.org/view/NEMO:Main</url>
216     <tag>HEAD</tag>
217   </scm>
218 </project>