961d81cd461cb47664330b6b4d4fffeb161d572b
[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.3-SNAPSHOT</version>
16     <relativePath />
17   </parent>
18
19   <groupId>org.opendaylight.nemo</groupId>
20   <artifactId>cli-renderer</artifactId>
21   <version>1.0.3-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>${project.groupId}</groupId>
33       <artifactId>nemo-api</artifactId>
34       <version>${project.version}</version>
35     </dependency>
36     <dependency>
37       <groupId>${project.groupId}</groupId>
38       <artifactId>nemo-impl</artifactId>
39       <version>${project.version}</version>
40     </dependency>
41     <dependency>
42       <groupId>org.jboss.netty</groupId>
43       <artifactId>netty</artifactId>
44       <version>3.2.6.Final</version>
45     </dependency>
46     <dependency>
47       <groupId>com.fasterxml.jackson.core</groupId>
48       <artifactId>jackson-core</artifactId>
49     </dependency>
50     <dependency>
51       <groupId>com.fasterxml.jackson.core</groupId>
52       <artifactId>jackson-databind</artifactId>
53     </dependency>
54     <dependency>
55       <groupId>com.fasterxml.jackson.core</groupId>
56       <artifactId>jackson-annotations</artifactId>
57     </dependency>
58     <dependency>
59       <groupId>org.codehaus.jettison</groupId>
60       <artifactId>jettison</artifactId>
61     </dependency>
62     <dependency>
63       <groupId>junit</groupId>
64       <artifactId>junit</artifactId>
65       <scope>test</scope>
66     </dependency>
67     <dependency>
68       <groupId>org.mockito</groupId>
69       <artifactId>mockito-all</artifactId>
70       <scope>test</scope>
71     </dependency>
72     <dependency>
73       <groupId>org.slf4j</groupId>
74       <artifactId>slf4j-simple</artifactId>
75       <scope>test</scope>
76     </dependency>
77   </dependencies>
78
79   <build>
80     <plugins>
81       <plugin>
82         <groupId>org.apache.felix</groupId>
83         <artifactId>maven-bundle-plugin</artifactId>
84         <configuration>
85           <instructions>
86             <Export-Package>
87               org.codehaus.jackson,
88               org.codehaus.jackson.*,
89               org.joda.time.*
90             </Export-Package>
91             <Import-Package>*</Import-Package>
92           </instructions>
93         </configuration>
94       </plugin>
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.codehaus.mojo</groupId>
130         <artifactId>build-helper-maven-plugin</artifactId>
131         <executions>
132           <execution>
133             <id>attach-artifacts</id>
134             <goals>
135               <goal>attach-artifact</goal>
136             </goals>
137             <phase>package</phase>
138             <configuration>
139               <artifacts>
140                 <artifact>
141                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/config.xml</file>
142                   <type>xml</type>
143                   <classifier>config</classifier>
144                 </artifact>
145                 <artifact>
146                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/node-resource.json</file>
147                   <type>json</type>
148                   <classifier>node-resource</classifier>
149                 </artifact>
150                 <artifact>
151                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/host-resource.json</file>
152                   <type>json</type>
153                   <classifier>host-resource</classifier>
154                 </artifact>
155                 <artifact>
156                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/link-resource.json</file>
157                   <type>json</type>
158                   <classifier>link-resource</classifier>
159                 </artifact>
160                 <artifact>
161                   <file>${project.build.directory}/classes/etc/opendaylight/karaf/external-resource.json</file>
162                   <type>json</type>
163                   <classifier>external-resource</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         <configuration>
174           <includes>
175             <include>org.opendaylight.nemo.*</include>
176           </includes>
177         </configuration>
178         <executions>
179           <execution>
180             <id>pre-unit-test</id>
181             <goals>
182               <goal>prepare-agent</goal>
183             </goals>
184             <configuration>
185               <destFile>${sonar.jacoco.reportPath}</destFile>
186             </configuration>
187           </execution>
188           <execution>
189             <id>post-unit-test</id>
190             <goals>
191               <goal>report</goal>
192             </goals>
193             <configuration>
194               <dataFile>${sonar.jacoco.reportPath}</dataFile>
195             </configuration>
196           </execution>
197         </executions>
198       </plugin>
199     </plugins>
200   </build>
201
202   <scm>
203     <connection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</connection>
204     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/nemo.git</developerConnection>
205     <url>https://wiki.opendaylight.org/view/NEMO:Main</url>
206     <tag>HEAD</tag>
207   </scm>
208 </project>