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