Changed output directory for generated classes
[openflowjava.git] / 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     <groupId>org.opendaylight.openflowjava</groupId>
5     <artifactId>openflow-protocol-parent</artifactId>
6     <version>0.5-SNAPSHOT</version>
7     <packaging>pom</packaging>
8     <modules>
9         <module>openflow-protocol-api</module>
10         <module>openflow-protocol-spi</module>
11         <module>util</module>
12         <module>openflow-protocol-impl</module>
13         <module>openflow-protocol-it</module>
14         <module>feature</module>
15         <module>simple-client</module>
16     </modules>
17     <scm>
18         <connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
19         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
20         <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
21       <tag>HEAD</tag>
22     </scm>
23
24     <properties>
25         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
26         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
27         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
28         <siteplugin>3.2</siteplugin>
29         <projectinfo>2.6</projectinfo>
30         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
31         <compiler.version>2.3.2</compiler.version>
32         <surefire.version>2.13</surefire.version>
33         <exam.version>3.0.0</exam.version>
34         <url.version>1.5.0</url.version>
35         <enunciate.version>1.26.2</enunciate.version>
36         <jmxGeneratorPath>${project.build.directory}/yang-gen-config</jmxGeneratorPath>
37         <salGeneratorPath>${project.build.directory}/yang-gen-sal</salGeneratorPath>
38         <sonar.branch>${user.name}-private-view</sonar.branch>
39         <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
40         <logback.version>1.0.9</logback.version>
41         <slf4j.version>1.7.2</slf4j.version>
42         <yang.prototype.version>1.1-SNAPSHOT</yang.prototype.version>
43         <ietf.model.version>2010.09.24.4-SNAPSHOT</ietf.model.version>
44         <yang.ext.version>2013.09.07.4-SNAPSHOT</yang.ext.version>
45         <maven.bundle.version>2.4.0</maven.bundle.version>
46         <guava.version>14.0.1</guava.version> 
47         <netty.version>4.0.19.Final</netty.version>
48         <releaseplugin.version>2.3.2</releaseplugin.version>
49         <yangtools.version>0.6.2-SNAPSHOT</yangtools.version>
50         <yangtools.generator.version>0.6.2-SNAPSHOT</yangtools.generator.version>
51         <config.version>0.2.5-SNAPSHOT</config.version>
52     </properties>
53
54     <pluginRepositories>
55         <!-- Opendaylight public group -->
56         <pluginRepository>
57             <id>odlPublic</id>
58             <name>odlPublic</name>
59             <url>${nexusproxy}/groups/public/</url>
60             <snapshots>
61               <enabled>false</enabled>
62             </snapshots>
63         </pluginRepository>
64         <!-- OpenDayLight Snapshot artifact -->
65         <pluginRepository>
66             <id>opendaylight-snapshot</id>
67             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
68             <releases>
69               <enabled>false</enabled>
70             </releases>
71         </pluginRepository>
72     </pluginRepositories>
73
74
75     <repositories>
76         <!-- Opendaylight public group -->
77         <repository>
78             <id>odlPublic</id>
79             <name>odlPublic</name>
80             <url>${nexusproxy}/groups/public/</url>
81             <snapshots>
82               <enabled>false</enabled>
83             </snapshots>
84         </repository>
85         <!-- OpenDayLight Snapshot artifact -->
86         <repository>
87             <id>opendaylight-snapshot</id>
88             <name>opendaylight-snapshot</name>
89             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
90             <releases>
91               <enabled>false</enabled>
92             </releases>
93         </repository>
94     </repositories>
95     <distributionManagement>
96         <!-- OpenDayLight Released artifact -->
97         <repository>
98             <id>opendaylight-release</id>
99             <url>${nexusproxy}/repositories/opendaylight.release/</url>
100         </repository>
101         <!-- OpenDayLight Snapshot artifact -->
102         <snapshotRepository>
103             <id>opendaylight-snapshot</id>
104             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
105         </snapshotRepository>
106         <!-- Site deployment -->
107         <!-- site>
108             <id>website</id>
109             <url>${sitedeploy}</url>
110         </site -->
111     </distributionManagement>
112
113
114     <dependencyManagement>
115         <dependencies>
116             <dependency>
117                 <groupId>org.slf4j</groupId>
118                 <artifactId>slf4j-api</artifactId>
119                 <version>${slf4j.version}</version>
120             </dependency>
121             <dependency>
122                 <groupId>io.netty</groupId>
123                 <artifactId>netty-buffer</artifactId>
124                 <version>${netty.version}</version>
125             </dependency>
126             <dependency>
127                 <groupId>io.netty</groupId>
128                 <artifactId>netty-handler</artifactId>
129                 <version>${netty.version}</version>
130             </dependency>
131             <dependency>
132                 <groupId>com.google.guava</groupId>
133                 <artifactId>guava</artifactId>
134                 <version>${guava.version}</version>
135             </dependency>
136             <dependency>
137                 <groupId>org.opendaylight.yangtools.model</groupId>
138                 <artifactId>ietf-inet-types</artifactId>
139                 <version>${ietf.model.version}</version>
140             </dependency>
141             <dependency>
142                 <groupId>org.opendaylight.yangtools.model</groupId>
143                 <artifactId>ietf-yang-types</artifactId>
144                 <version>${ietf.model.version}</version>
145             </dependency>
146             <dependency>
147                 <groupId>org.opendaylight.yangtools.model</groupId>
148                 <artifactId>yang-ext</artifactId>
149                 <version>${yang.ext.version}</version>
150             </dependency>
151             <dependency>
152                 <groupId>org.osgi</groupId>
153                 <artifactId>org.osgi.core</artifactId>
154                 <version>5.0.0</version>
155             </dependency>
156             <dependency>
157                 <groupId>org.opendaylight.controller</groupId>
158                 <artifactId>config-api</artifactId>
159                 <version>0.2.5-SNAPSHOT</version>
160             </dependency>
161             <dependency>
162                 <groupId>junit</groupId>
163                 <artifactId>junit</artifactId>
164                 <version>4.10</version>
165                 <scope>test</scope>
166                 <optional>true</optional>
167             </dependency>
168             <dependency>
169                 <groupId>org.mockito</groupId>
170                 <artifactId>mockito-all</artifactId>
171                 <version>1.9.5</version>
172                 <scope>test</scope>
173             </dependency>
174         </dependencies>
175     </dependencyManagement>
176     <build>
177         <plugins>
178             <plugin>
179                 <groupId>org.apache.maven.plugins</groupId>
180                 <artifactId>maven-compiler-plugin</artifactId>
181                 <version>${compiler.version}</version>
182                 <inherited>true</inherited>
183                 <configuration>
184                     <source>1.7</source>
185                     <target>1.7</target>
186                 </configuration>
187             </plugin>
188             <plugin>
189                 <artifactId>maven-source-plugin</artifactId>
190                 <executions>
191                     <execution>
192                         <id>attach-sources</id>
193                         <phase>deploy</phase>
194                         <goals>
195                             <goal>jar-no-fork</goal>
196                         </goals> 
197                     </execution>
198                 </executions>
199             </plugin>
200             <plugin>
201               <groupId>org.apache.felix</groupId>
202               <artifactId>maven-bundle-plugin</artifactId>
203               <extensions>true</extensions>
204               <configuration>
205                 <instructions>
206                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
207                 </instructions>
208                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
209               </configuration>
210             </plugin>
211             <plugin>
212               <groupId>org.apache.maven.plugins</groupId>
213               <artifactId>maven-checkstyle-plugin</artifactId>
214               <version>2.12</version>
215               <configuration>
216                 <failOnViolation>false</failOnViolation>
217                 <configLocation>checkstyle-logging.xml</configLocation>
218                 <consoleOutput>true</consoleOutput>
219                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
220                 <sourceDirectory>${project.basedir}</sourceDirectory>
221                 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
222                 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
223               </configuration>
224               <dependencies>
225                 <dependency>
226                 <groupId>org.opendaylight.yangtools</groupId>
227                 <artifactId>checkstyle-logging</artifactId>
228                 <version>${yangtools.version}</version>
229                 </dependency>
230               </dependencies>
231               <executions>
232                 <execution>
233                 <goals>
234                   <goal>check</goal>
235                 </goals>
236                 </execution>
237               </executions>
238             </plugin>
239             <plugin>
240                 <groupId>org.codehaus.mojo</groupId>
241                 <artifactId>build-helper-maven-plugin</artifactId>
242             </plugin>
243         </plugins>
244         <pluginManagement>
245             <plugins>
246                 <plugin>
247                     <groupId>org.apache.maven.plugins</groupId>
248                     <artifactId>maven-source-plugin</artifactId>
249                     <version>2.2.1</version>
250                 </plugin>
251                 <plugin>
252                     <groupId>org.apache.maven.plugins</groupId>
253                     <artifactId>maven-deploy-plugin</artifactId>
254                     <version>2.7</version>
255                 </plugin>
256                 <plugin>
257                     <groupId>org.apache.maven.plugins</groupId>
258                     <artifactId>maven-jar-plugin</artifactId>
259                     <version>2.4</version>
260                 </plugin>
261                 <plugin>
262                     <groupId>org.apache.maven.plugins</groupId>
263                     <artifactId>maven-release-plugin</artifactId>
264                     <version>${releaseplugin.version}</version>
265                 </plugin>
266                 <plugin>
267                     <groupId>org.opendaylight.yangtools</groupId>
268                     <artifactId>yang-maven-plugin</artifactId>
269                     <version>${yangtools.version}</version>
270                 </plugin>
271                 <plugin>
272                     <groupId>org.apache.felix</groupId>
273                     <artifactId>maven-bundle-plugin</artifactId>
274                     <version>${maven.bundle.version}</version>
275                 </plugin>
276                 <plugin>
277                     <groupId>org.codehaus.mojo</groupId>
278                     <artifactId>build-helper-maven-plugin</artifactId>
279                     <version>1.8</version>
280                     <executions>
281                         <execution>
282                             <id>add-source</id>
283                             <goals>
284                                 <goal>add-source</goal>
285                             </goals>
286                             <phase>generate-sources</phase>
287                             <configuration>
288                                 <sources>
289                                     <source>src/main/yang</source>
290                                 </sources>
291                             </configuration>
292                         </execution>
293                     </executions>
294                 </plugin>
295                 <!-- Ignore/Execute plugin execution -->
296                 <plugin>
297                   <groupId>org.eclipse.m2e</groupId>
298                   <artifactId>lifecycle-mapping</artifactId>
299                   <version>1.0.0</version>
300                   <configuration>
301                     <lifecycleMappingMetadata>
302                       <pluginExecutions>
303                         <pluginExecution>
304                           <pluginExecutionFilter>
305                             <groupId>org.codehaus.mojo</groupId>
306                             <artifactId>properties-maven-plugin</artifactId>
307                             <versionRange>[0.0,)</versionRange>
308                             <goals>
309                               <goal>set-system-properties</goal>
310                             </goals>
311                           </pluginExecutionFilter>
312                           <action>
313                             <ignore></ignore>
314                           </action>
315                         </pluginExecution>
316                         <pluginExecution>
317                           <pluginExecutionFilter>
318                             <groupId>org.codehaus.enunciate</groupId>
319                             <artifactId>maven-enunciate-plugin</artifactId>
320                             <versionRange>[0.0,)</versionRange>
321                             <goals>
322                               <goal>docs</goal>
323                             </goals>
324                           </pluginExecutionFilter>
325                           <action>
326                             <ignore></ignore>
327                           </action>
328                         </pluginExecution>
329                         <pluginExecution>
330                           <pluginExecutionFilter>
331                             <groupId>org.jacoco</groupId>
332                             <artifactId>jacoco-maven-plugin</artifactId>
333                             <versionRange>[0.0,)</versionRange>
334                             <goals>
335                               <goal>prepare-agent</goal>
336                               <goal>pre-test</goal>
337                               <goal>post-test</goal>
338                             </goals>
339                           </pluginExecutionFilter>
340                           <action>
341                             <ignore></ignore>
342                           </action>
343                         </pluginExecution>
344                         <pluginExecution>
345                           <pluginExecutionFilter>
346                             <groupId>org.ops4j.pax.exam</groupId>
347                             <artifactId>maven-paxexam-plugin</artifactId>
348                             <versionRange>[1.2.4,)</versionRange>
349                             <goals>
350                               <goal>generate-depends-file</goal>
351                             </goals>
352                           </pluginExecutionFilter>
353                           <action>
354                             <execute>
355                               <runOnIncremental>false</runOnIncremental>
356                             </execute>
357                           </action>
358                         </pluginExecution>
359                         <pluginExecution>
360                           <pluginExecutionFilter>
361                             <groupId>org.apache.maven.plugins</groupId>
362                             <artifactId>maven-checkstyle-plugin</artifactId>
363                             <versionRange>[2.0,)</versionRange>
364                             <goals>
365                               <goal>check</goal>
366                             </goals>
367                           </pluginExecutionFilter>
368                           <action>
369                             <ignore></ignore>
370                           </action>
371                         </pluginExecution>
372                         <pluginExecution>
373                           <pluginExecutionFilter>
374                             <groupId>org.opendaylight.yangtools</groupId>
375                             <artifactId>yang-maven-plugin</artifactId>
376                             <versionRange>[0.5,)</versionRange>
377                             <goals>
378                               <goal>generate-sources</goal>
379                             </goals>
380                           </pluginExecutionFilter>
381                           <action>
382                             <execute></execute>
383                           </action>
384                         </pluginExecution>
385                         <pluginExecution>
386                           <pluginExecutionFilter>
387                             <groupId>org.codehaus.groovy.maven</groupId>
388                             <artifactId>gmaven-plugin</artifactId>
389                             <versionRange>1.0</versionRange>
390                             <goals>
391                               <goal>execute</goal>
392                             </goals>
393                           </pluginExecutionFilter>
394                           <action>
395                             <ignore></ignore>
396                           </action>
397                         </pluginExecution>
398                         <pluginExecution>
399                           <pluginExecutionFilter>
400                             <groupId>org.apache.maven.plugins</groupId>
401                             <artifactId>maven-enforcer-plugin</artifactId>
402                             <versionRange>${enforcer.version}</versionRange>
403                             <goals>
404                               <goal>enforce</goal>
405                             </goals>
406                           </pluginExecutionFilter>
407                           <action>
408                             <ignore></ignore>
409                           </action>
410                         </pluginExecution>
411                       </pluginExecutions>
412                     </lifecycleMappingMetadata>
413                   </configuration>
414                 </plugin>
415             </plugins>
416         </pluginManagement>
417     </build>
418     <reporting>
419         <plugins>
420             <plugin>
421                 <groupId>org.codehaus.mojo</groupId>
422                 <artifactId>findbugs-maven-plugin</artifactId>
423                 <version>2.5.2</version>
424                 <configuration>
425                     <effort>Max</effort>
426                     <threshold>Low</threshold>
427                     <goal>site</goal>
428                 </configuration>
429             </plugin>
430             <plugin>
431               <artifactId>maven-jxr-plugin</artifactId>
432               <version>2.3</version>
433               <configuration>
434                 <aggregate>true</aggregate>
435                 <linkJavadoc>true</linkJavadoc>
436               </configuration>
437             </plugin>
438
439             <plugin>
440                 <groupId>org.codehaus.mojo</groupId>
441                 <artifactId>jdepend-maven-plugin</artifactId>
442                 <version>2.0-beta-2</version>
443             </plugin>
444         </plugins>
445     </reporting>
446     <profiles>
447         <profile>
448             <id>viewbuild</id>
449             <activation>
450                 <activeByDefault>true</activeByDefault>
451             </activation>
452             <properties>
453                 <build.suffix>${project.version}</build.suffix>
454             </properties>
455         </profile>
456         <profile>
457             <id>jenkins</id>
458             <activation>
459                 <property>
460                     <name>BUILDSUFFIX</name>
461                 </property>
462             </activation>
463             <properties>
464                 <build.suffix>${BUILDSUFFIX}</build.suffix>
465             </properties>
466         </profile>
467         <profile>
468             <id>repoBuild</id>
469             <build>
470                 <plugins>
471                     <plugin>
472                         <groupId>org.apache.maven.plugins</groupId>
473                         <artifactId>maven-javadoc-plugin</artifactId>
474                         <version>2.8.1</version>
475                         <executions>
476                             <execution>
477                                 <goals>
478                                     <goal>aggregate</goal>
479                                 </goals>
480                                 <phase>site</phase>
481                             </execution>
482                             <execution>
483                                 <id>attach-javadocs</id>
484                                 <goals>
485                                     <goal>jar</goal>
486                                 </goals>
487                             </execution>
488                         </executions>
489                     </plugin>
490                     <plugin>
491                         <groupId>org.apache.maven.plugins</groupId>
492                         <artifactId>maven-source-plugin</artifactId>
493                         <executions>
494                             <execution>
495                                 <id>attach-sources</id>
496                                 <phase>package</phase>
497                                 <goals>
498                                     <goal>jar-no-fork</goal>
499                                 </goals>
500                             </execution>
501                         </executions>
502                     </plugin>
503                 </plugins>
504             </build>
505         </profile>
506     </profiles>
507 </project>