Merge "Removing OpenContrail renderer from the build."
[groupbasedpolicy.git] / renderers / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <parent>
5     <groupId>org.opendaylight.groupbasedpolicy</groupId>
6     <artifactId>groupbasedpolicy.project</artifactId>
7     <version>0.2.0-SNAPSHOT</version>
8     <relativePath>../</relativePath>
9   </parent>
10
11   <artifactId>groupbasedpolicy-renderers</artifactId>
12   <version>0.2.0-SNAPSHOT</version>
13   <packaging>pom</packaging>
14
15   <modules>
16     <module>opflex</module>
17     <module>ofoverlay</module>
18   </modules>
19
20   <dependencies>
21     <dependency>
22       <groupId>org.opendaylight.groupbasedpolicy</groupId>
23       <artifactId>groupbasedpolicy</artifactId>
24       <version>${project.version}</version>
25     </dependency>
26     <dependency>
27       <groupId>ch.qos.logback</groupId>
28       <artifactId>logback-classic</artifactId>
29     </dependency>
30     <dependency>
31       <groupId>ch.qos.logback</groupId>
32       <artifactId>logback-core</artifactId>
33     </dependency>
34     <dependency>
35       <groupId>com.fasterxml.jackson.core</groupId>
36       <artifactId>jackson-core</artifactId>
37     </dependency>
38     <dependency>
39       <groupId>com.fasterxml.jackson.core</groupId>
40       <artifactId>jackson-databind</artifactId>
41     </dependency>
42     <dependency>
43       <groupId>com.fasterxml.jackson.core</groupId>
44       <artifactId>jackson-annotations</artifactId>
45     </dependency>
46     <dependency>
47       <groupId>com.google.guava</groupId>
48       <artifactId>guava</artifactId>
49     </dependency>
50     <dependency>
51       <groupId>io.netty</groupId>
52       <artifactId>netty-all</artifactId>
53       <version>4.0.10.Final</version>
54     </dependency>
55     <dependency>
56       <groupId>org.opendaylight.controller</groupId>
57       <artifactId>config-api</artifactId>
58     </dependency>
59     <dependency>
60       <groupId>org.opendaylight.controller</groupId>
61       <artifactId>sal-binding-api</artifactId>
62     </dependency>
63     <dependency>
64       <groupId>org.opendaylight.controller</groupId>
65       <artifactId>sal-binding-config</artifactId>
66     </dependency>
67     <dependency>
68       <groupId>org.opendaylight.controller</groupId>
69       <artifactId>sal-common-util</artifactId>
70     </dependency>
71     <dependency>
72       <groupId>org.opendaylight.controller.model</groupId>
73       <artifactId>model-inventory</artifactId>
74     </dependency>
75     <dependency>
76       <groupId>org.opendaylight.yangtools</groupId>
77       <artifactId>yang-binding</artifactId>
78     </dependency>
79     <dependency>
80       <groupId>org.opendaylight.yangtools</groupId>
81       <artifactId>yang-common</artifactId>
82     </dependency>
83     <dependency>
84       <groupId>org.osgi</groupId>
85       <artifactId>org.osgi.core</artifactId>
86     </dependency>
87     <dependency>
88       <groupId>commons-lang</groupId>
89       <artifactId>commons-lang</artifactId>
90       <version>2.6</version>
91     </dependency>
92     <dependency>
93       <groupId>org.apache.commons</groupId>
94       <artifactId>commons-exec</artifactId>
95       <version>1.1</version>
96     </dependency>
97     <dependency>
98       <groupId>junit</groupId>
99       <artifactId>junit</artifactId>
100       <scope>test</scope>
101     </dependency>
102     <dependency>
103       <groupId>org.mockito</groupId>
104       <artifactId>mockito-all</artifactId>
105       <version>1.9.5</version>
106       <scope>test</scope>
107     </dependency>
108   </dependencies>
109
110   <!-- project build -->
111   <build>
112     <plugins>
113       <plugin>
114         <groupId>org.apache.felix</groupId>
115         <artifactId>maven-bundle-plugin</artifactId>
116         <extensions>true</extensions>
117         <configuration>
118           <instructions>
119             <Import-Package>
120              org.apache.http.*;version="4.3.2",
121              *;resolution:=optional
122             </Import-Package>
123             <Embed-Dependency>httpclient,httpcore,commons-lang,commons-exec;type=!pom;inline=false</Embed-Dependency>
124             <Export-Package>
125             </Export-Package>
126           </instructions>
127           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
128         </configuration>
129       </plugin>
130       <plugin>
131         <groupId>org.codehaus.mojo</groupId>
132         <artifactId>build-helper-maven-plugin</artifactId>
133         <executions>
134           <execution>
135             <goals>
136               <goal>add-source</goal>
137             </goals>
138             <phase>generate-sources</phase>
139             <configuration>
140               <sources>
141                 <source>target/generated-sources/sal</source>
142                 <source>target/generated-sources/config</source>
143                 <source>target/generated-resources/</source>
144               </sources>
145             </configuration>
146           </execution>
147         </executions>
148       </plugin>
149       <plugin>
150         <groupId>org.opendaylight.yangtools</groupId>
151         <artifactId>yang-maven-plugin</artifactId>
152         <dependencies>
153           <dependency>
154             <groupId>org.opendaylight.controller</groupId>
155             <artifactId>yang-jmx-generator-plugin</artifactId>
156             <version>0.3.0-SNAPSHOT</version>
157           </dependency>
158           <dependency>
159             <groupId>org.opendaylight.yangtools</groupId>
160             <artifactId>maven-sal-api-gen-plugin</artifactId>
161             <version>${yangtools.version}</version>
162             <type>jar</type>
163           </dependency>
164         </dependencies>
165         <executions>
166           <execution>
167             <goals>
168               <goal>generate-sources</goal>
169             </goals>
170             <configuration>
171               <codeGenerators>
172                 <generator>
173                   <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
174                   <outputBaseDir>${project.build.directory}/generated-sources/config</outputBaseDir>
175                   <additionalConfiguration>
176                     <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
177                   </additionalConfiguration>
178                 </generator>
179                 <generator>
180                   <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
181                   <outputBaseDir>${project.build.directory}/generated-sources/sal</outputBaseDir>
182                 </generator>
183                 <generator>
184                   <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
185                   <outputBaseDir>${project.build.directory}/site/models</outputBaseDir>
186                 </generator>
187               </codeGenerators>
188               <inspectDependencies>true</inspectDependencies>
189             </configuration>
190           </execution>
191         </executions>
192       </plugin>
193       <plugin>
194         <groupId>org.apache.maven.plugins</groupId>
195         <artifactId>maven-surefire-plugin</artifactId>
196         <configuration>
197           <redirectTestOutputToFile>true</redirectTestOutputToFile>
198         </configuration>
199       </plugin>
200       <plugin>
201         <groupId>org.jacoco</groupId>
202         <artifactId>jacoco-maven-plugin</artifactId>
203         <executions>
204           <execution>
205             <id>pre-unit-test</id>
206             <goals>
207               <goal>prepare-agent</goal>
208             </goals>
209           </execution>
210           <execution>
211             <id>post-unit-test</id>
212             <phase>test</phase>
213             <goals>
214               <goal>report</goal>
215             </goals>
216             <configuration>
217               <dataFile>${sonar.jacoco.reportPath}</dataFile>
218               <includes>
219                 <include>org/opendaylight/groupbasedpolicy/**/*.class</include>
220               </includes>
221             </configuration>
222           </execution>
223         </executions>
224       </plugin>
225     </plugins>
226   </build>
227 </project>
228