d62cdb2fb8a23e899da97fa0d810675d05fb24a7
[nemo.git] / nemo-renderers / cli-renderer / 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>cli-renderer</artifactId>
21   <version>1.0.2-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>${project.groupId}</groupId>
34       <artifactId>nemo-api</artifactId>
35       <version>${project.version}</version>
36     </dependency>
37     <dependency>
38       <groupId>${project.groupId}</groupId>
39       <artifactId>nemo-impl</artifactId>
40       <version>${project.version}</version>
41     </dependency>
42     <dependency>
43       <groupId>org.jboss.netty</groupId>
44       <artifactId>netty</artifactId>
45       <version>3.2.6.Final</version>
46     </dependency>
47     <dependency>
48       <groupId>com.fasterxml.jackson.core</groupId>
49       <artifactId>jackson-core</artifactId>
50     </dependency>
51     <dependency>
52       <groupId>com.fasterxml.jackson.core</groupId>
53       <artifactId>jackson-databind</artifactId>
54     </dependency>
55     <dependency>
56       <groupId>com.fasterxml.jackson.core</groupId>
57       <artifactId>jackson-annotations</artifactId>
58     </dependency>
59     <dependency>
60       <groupId>org.codehaus.jettison</groupId>
61       <artifactId>jettison</artifactId>
62     </dependency>
63     <dependency>
64       <groupId>junit</groupId>
65       <artifactId>junit</artifactId>
66       <scope>test</scope>
67     </dependency>
68     <dependency>
69       <groupId>org.mockito</groupId>
70       <artifactId>mockito-all</artifactId>
71       <scope>test</scope>
72     </dependency>
73     <dependency>
74       <groupId>org.slf4j</groupId>
75       <artifactId>slf4j-simple</artifactId>
76       <scope>test</scope>
77     </dependency>
78   </dependencies>
79
80   <build>
81     <pluginManagement>
82       <plugins>
83         <plugin>
84           <groupId>org.jacoco</groupId>
85           <artifactId>jacoco-maven-plugin</artifactId>
86           <version>${jacoco.version}</version>
87         </plugin>
88       </plugins>
89     </pluginManagement>
90     <plugins>
91       <plugin>
92         <groupId>org.apache.felix</groupId>
93         <artifactId>maven-bundle-plugin</artifactId>
94         <configuration>
95           <instructions>
96             <Export-Package>
97               org.codehaus.jackson,
98               org.codehaus.jackson.*,
99               org.joda.time.*
100             </Export-Package>
101             <Import-Package>*</Import-Package>
102           </instructions>
103         </configuration>
104       </plugin>
105       <plugin>
106         <groupId>org.opendaylight.yangtools</groupId>
107         <artifactId>yang-maven-plugin</artifactId>
108         <executions>
109           <execution>
110             <goals>
111               <goal>generate-sources</goal>
112             </goals>
113             <configuration>
114               <yangFilesRootDir>src/main/yang</yangFilesRootDir>
115               <codeGenerators>
116                 <generator>
117                   <codeGeneratorClass>
118                     org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
119                   </codeGeneratorClass>
120                   <outputBaseDir>
121                     ${salGeneratorPath}
122                   </outputBaseDir>
123                 </generator>
124               </codeGenerators>
125               <inspectDependencies>true</inspectDependencies>
126             </configuration>
127           </execution>
128         </executions>
129         <dependencies>
130           <dependency>
131             <groupId>org.opendaylight.mdsal</groupId>
132             <artifactId>maven-sal-api-gen-plugin</artifactId>
133             <version>${yangtools.version}</version>
134             <type>jar</type>
135           </dependency>
136         </dependencies>
137       </plugin>
138       <plugin>
139         <groupId>org.codehaus.mojo</groupId>
140         <artifactId>build-helper-maven-plugin</artifactId>
141         <executions>
142           <execution>
143             <id>attach-artifacts</id>
144             <goals>
145               <goal>attach-artifact</goal>
146             </goals>
147             <phase>package</phase>
148             <configuration>
149               <artifacts>
150                 <artifact>
151                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/config.xml</file>
152                   <type>xml</type>
153                   <classifier>config</classifier>
154                 </artifact>
155                 <artifact>
156                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/node-resource.json</file>
157                   <type>json</type>
158                   <classifier>node-resource</classifier>
159                 </artifact>
160                 <artifact>
161                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/host-resource.json</file>
162                   <type>json</type>
163                   <classifier>host-resource</classifier>
164                 </artifact>
165                 <artifact>
166                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/link-resource.json</file>
167                   <type>json</type>
168                   <classifier>link-resource</classifier>
169                 </artifact>
170                 <artifact>
171                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/external-resource.json</file>
172                   <type>json</type>
173                   <classifier>external-resource</classifier>
174                 </artifact>
175               </artifacts>
176             </configuration>
177           </execution>
178         </executions>
179       </plugin>
180       <plugin>
181         <groupId>org.jacoco</groupId>
182         <artifactId>jacoco-maven-plugin</artifactId>
183         <configuration>
184           <includes>
185             <include>org.opendaylight.nemo.*</include>
186           </includes>
187         </configuration>
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>