013ab5118a45a1cbc5eef800b3f40824ea706e69
[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.3-SNAPSHOT</version>
16     <relativePath />
17   </parent>
18
19   <groupId>org.opendaylight.nemo</groupId>
20   <artifactId>nemo-impl</artifactId>
21   <version>1.2.3-SNAPSHOT</version>
22   <packaging>bundle</packaging>
23   <!-- <name> formatting is used by autorelease to parse and notify projects on
24        build failure. Please do not modify this unless you have a good reason. -->
25   <name>ODL :: nemo :: ${project.artifactId}</name>
26
27   <properties>
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-2013-07-15</artifactId>
36     </dependency>
37     <dependency>
38       <groupId>org.opendaylight.mdsal.model</groupId>
39       <artifactId>ietf-yang-types-20130715</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-core</artifactId>
78       <scope>test</scope>
79     </dependency>
80         <dependency>
81       <groupId>org.powermock</groupId>
82       <artifactId>powermock-core</artifactId>
83       <scope>test</scope>
84     </dependency>
85     <dependency>
86       <groupId>org.powermock</groupId>
87       <artifactId>powermock-module-junit4</artifactId>
88       <scope>test</scope>
89     </dependency>
90     <dependency>
91       <groupId>org.powermock</groupId>
92       <artifactId>powermock-api-mockito</artifactId>
93       <scope>test</scope>
94     </dependency>
95     <dependency>
96       <groupId>org.slf4j</groupId>
97       <artifactId>slf4j-simple</artifactId>
98       <scope>test</scope>
99     </dependency>
100   </dependencies>
101
102   <build>
103     <plugins>
104       <plugin>
105         <groupId>org.opendaylight.yangtools</groupId>
106         <artifactId>yang-maven-plugin</artifactId>
107         <executions>
108           <execution>
109             <goals>
110               <goal>generate-sources</goal>
111             </goals>
112             <configuration>
113               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
114               <codeGenerators>
115                 <generator>
116                   <codeGeneratorClass>
117                     org.opendaylight.mdsal.binding.maven.api.gen.plugin.CodeGeneratorImpl
118                   </codeGeneratorClass>
119                   <outputBaseDir>
120                     ${salGeneratorPath}
121                   </outputBaseDir>
122                 </generator>
123               </codeGenerators>
124               <inspectDependencies>true</inspectDependencies>
125             </configuration>
126           </execution>
127         </executions>
128         <dependencies>
129           <dependency>
130             <groupId>org.opendaylight.mdsal</groupId>
131             <artifactId>maven-sal-api-gen-plugin</artifactId>
132             <version>0.10.3-SNAPSHOT</version>
133             <type>jar</type>
134           </dependency>
135         </dependencies>
136       </plugin>
137       <plugin>
138         <groupId>org.apache.felix</groupId>
139         <artifactId>maven-bundle-plugin</artifactId>
140         <extensions>true</extensions>
141         <configuration>
142           <instructions>
143             <Bundle-ClassPath>.,{maven-dependencies}</Bundle-ClassPath>
144             <Import-Package>*;resolution:=optional</Import-Package>
145             <Embed-Dependency>
146               collections-generic,jung-api,jung-graph-impl,jung-algorithms
147             </Embed-Dependency>
148             <Embed-Transitive>true</Embed-Transitive>
149             <Embed-Directory>lib</Embed-Directory>
150             <Embed-StripGroup>true</Embed-StripGroup>
151             <_failok>true</_failok>
152             <_nouses>true</_nouses>
153           </instructions>
154           <manifestLocation>${project.build.outputDirectory}/META-INF</manifestLocation>
155         </configuration>
156       </plugin>
157       <plugin>
158         <groupId>org.codehaus.mojo</groupId>
159         <artifactId>build-helper-maven-plugin</artifactId>
160         <executions>
161           <execution>
162             <id>attach-artifacts</id>
163             <goals>
164               <goal>attach-artifact</goal>
165             </goals>
166             <phase>package</phase>
167             <configuration>
168               <artifacts>
169                 <artifact>
170                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/config.xml</file>
171                   <type>xml</type>
172                   <classifier>config</classifier>
173                 </artifact>
174               </artifacts>
175             </configuration>
176           </execution>
177         </executions>
178       </plugin>
179       <plugin>
180         <groupId>org.jacoco</groupId>
181         <artifactId>jacoco-maven-plugin</artifactId>
182         <executions>
183           <execution>
184             <id>pre-unit-test</id>
185             <goals>
186               <goal>prepare-agent</goal>
187             </goals>
188             <configuration>
189               <destFile>${sonar.jacoco.reportPath}</destFile>
190             </configuration>
191           </execution>
192           <execution>
193             <id>post-unit-test</id>
194             <goals>
195               <goal>report</goal>
196             </goals>
197             <configuration>
198               <dataFile>${sonar.jacoco.reportPath}</dataFile>
199             </configuration>
200           </execution>
201         </executions>
202       </plugin>
203     </plugins>
204   </build>
205
206   <scm>
207     <connection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</connection>
208     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</developerConnection>
209     <url>https://wiki.opendaylight.org/view/NEMO:Main</url>
210     <tag>HEAD</tag>
211   </scm>
212 </project>