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