Use odlparent configuration for jacoco
[openflowjava.git] / parent / 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.odlparent</groupId>
6         <artifactId>odlparent</artifactId>
7         <version>1.6.0-SNAPSHOT</version>
8         <relativePath/>
9     </parent>
10
11     <groupId>org.opendaylight.openflowjava</groupId>
12     <artifactId>openflowjava-parent</artifactId>
13     <version>0.7.0-SNAPSHOT</version>
14     <packaging>pom</packaging>
15
16     <licenses>
17         <license>
18             <name>The Eclipse Public License v1.0</name>
19             <url>http://www.eclipse.org/legal/epl-v10.html</url>
20             <distribution>repo</distribution>
21         </license>
22     </licenses>
23
24     <scm>
25         <connection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</connection>
26         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/openflowjava.git</developerConnection>
27         <url>https://wiki.opendaylight.org/view/Openflow_Protocol_Library:Main</url>
28         <tag>HEAD</tag>
29     </scm>
30
31     <properties>
32         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
33         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
34         <jmxGeneratorPath>${project.build.directory}/yang-gen-config</jmxGeneratorPath>
35         <karaf.distro.empty.version>1.6.0-SNAPSHOT</karaf.distro.empty.version>
36         <salGeneratorPath>${project.build.directory}/yang-gen-sal</salGeneratorPath>
37
38         <config.version>0.4.0-SNAPSHOT</config.version>
39         <mdsal.version>1.3.0-SNAPSHOT</mdsal.version>
40         <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
41     </properties>
42
43     <dependencyManagement>
44         <dependencies>
45             <dependency>
46               <groupId>org.opendaylight.openflowjava</groupId>
47               <artifactId>openflowjava-artifacts</artifactId>
48               <version>${project.version}</version>
49               <type>pom</type>
50               <scope>import</scope>
51             </dependency>
52             <dependency>
53               <groupId>org.opendaylight.yangtools</groupId>
54               <artifactId>yangtools-artifacts</artifactId>
55               <version>${yangtools.version}</version>
56               <type>pom</type>
57               <scope>import</scope>
58             </dependency>
59             <dependency>
60               <groupId>org.opendaylight.controller</groupId>
61               <artifactId>config-artifacts</artifactId>
62               <version>${config.version}</version>
63               <type>pom</type>
64               <scope>import</scope>
65             </dependency>
66             <dependency>
67               <groupId>org.opendaylight.controller</groupId>
68               <artifactId>mdsal-artifacts</artifactId>
69               <version>${mdsal.version}</version>
70               <scope>import</scope>
71               <type>pom</type>
72             </dependency>
73         </dependencies>
74     </dependencyManagement>
75
76     <build>
77         <plugins>
78             <plugin>
79                 <groupId>org.apache.maven.plugins</groupId>
80                 <artifactId>maven-compiler-plugin</artifactId>
81                 <inherited>true</inherited>
82                 <configuration>
83                     <source>1.7</source>
84                     <target>1.7</target>
85                 </configuration>
86             </plugin>
87             <plugin>
88                 <artifactId>maven-source-plugin</artifactId>
89                 <executions>
90                     <execution>
91                         <id>attach-sources</id>
92                         <phase>deploy</phase>
93                         <goals>
94                             <goal>jar-no-fork</goal>
95                         </goals>
96                     </execution>
97                 </executions>
98             </plugin>
99             <plugin>
100               <groupId>org.apache.felix</groupId>
101               <artifactId>maven-bundle-plugin</artifactId>
102               <extensions>true</extensions>
103               <configuration>
104                 <instructions>
105                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
106                 </instructions>
107                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
108               </configuration>
109             </plugin>
110             <plugin>
111               <groupId>org.apache.maven.plugins</groupId>
112                   <artifactId>maven-checkstyle-plugin</artifactId>
113               <version>${checkstyle.version}</version>
114               <configuration>
115                 <failOnViolation>false</failOnViolation>
116                 <configLocation>checkstyle-logging.xml</configLocation>
117                 <consoleOutput>true</consoleOutput>
118                 <includeTestSourceDirectory>true</includeTestSourceDirectory>
119                 <sourceDirectory>${project.basedir}</sourceDirectory>
120                 <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
121                 <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
122               </configuration>
123               <dependencies>
124                 <dependency>
125                 <groupId>org.opendaylight.yangtools</groupId>
126                 <artifactId>checkstyle-logging</artifactId>
127                 <version>${yangtools.version}</version>
128                 </dependency>
129               </dependencies>
130               <executions>
131                 <execution>
132                 <goals>
133                   <goal>check</goal>
134                 </goals>
135                 </execution>
136               </executions>
137             </plugin>
138             <plugin>
139                 <groupId>org.codehaus.mojo</groupId>
140                 <artifactId>build-helper-maven-plugin</artifactId>
141             </plugin>
142         </plugins>
143         <pluginManagement>
144             <plugins>
145                 <plugin>
146                     <groupId>org.opendaylight.yangtools</groupId>
147                     <artifactId>yang-maven-plugin</artifactId>
148                     <version>${yangtools.version}</version>
149                 </plugin>
150                 <plugin>
151                     <groupId>org.codehaus.mojo</groupId>
152                     <artifactId>build-helper-maven-plugin</artifactId>
153                     <version>1.8</version>
154                     <executions>
155                         <execution>
156                             <id>add-source</id>
157                             <goals>
158                                 <goal>add-source</goal>
159                             </goals>
160                             <phase>generate-sources</phase>
161                             <configuration>
162                                 <sources>
163                                     <source>src/main/yang</source>
164                                 </sources>
165                             </configuration>
166                         </execution>
167                     </executions>
168                 </plugin>
169                 <!-- Ignore/Execute plugin execution -->
170                 <plugin>
171                   <groupId>org.eclipse.m2e</groupId>
172                   <artifactId>lifecycle-mapping</artifactId>
173                   <version>1.0.0</version>
174                   <configuration>
175                     <lifecycleMappingMetadata>
176                       <pluginExecutions>
177                         <pluginExecution>
178                           <pluginExecutionFilter>
179                             <groupId>org.codehaus.mojo</groupId>
180                             <artifactId>properties-maven-plugin</artifactId>
181                             <versionRange>[0.0,)</versionRange>
182                             <goals>
183                               <goal>set-system-properties</goal>
184                             </goals>
185                           </pluginExecutionFilter>
186                           <action>
187                             <ignore/>
188                           </action>
189                         </pluginExecution>
190                         <pluginExecution>
191                           <pluginExecutionFilter>
192                             <groupId>org.jacoco</groupId>
193                             <artifactId>jacoco-maven-plugin</artifactId>
194                             <versionRange>[0.0,)</versionRange>
195                             <goals>
196                               <goal>prepare-agent</goal>
197                               <goal>pre-test</goal>
198                               <goal>post-test</goal>
199                             </goals>
200                           </pluginExecutionFilter>
201                           <action>
202                             <ignore/>
203                           </action>
204                         </pluginExecution>
205                         <pluginExecution>
206                           <pluginExecutionFilter>
207                             <groupId>org.ops4j.pax.exam</groupId>
208                             <artifactId>maven-paxexam-plugin</artifactId>
209                             <versionRange>[1.2.4,)</versionRange>
210                             <goals>
211                               <goal>generate-depends-file</goal>
212                             </goals>
213                           </pluginExecutionFilter>
214                           <action>
215                             <execute>
216                               <runOnIncremental>false</runOnIncremental>
217                             </execute>
218                           </action>
219                         </pluginExecution>
220                         <pluginExecution>
221                           <pluginExecutionFilter>
222                             <groupId>org.apache.maven.plugins</groupId>
223                             <artifactId>maven-checkstyle-plugin</artifactId>
224                             <versionRange>[2.0,)</versionRange>
225                             <goals>
226                               <goal>check</goal>
227                             </goals>
228                           </pluginExecutionFilter>
229                           <action>
230                             <ignore/>
231                           </action>
232                         </pluginExecution>
233                         <pluginExecution>
234                           <pluginExecutionFilter>
235                             <groupId>org.opendaylight.yangtools</groupId>
236                             <artifactId>yang-maven-plugin</artifactId>
237                             <versionRange>[0.5,)</versionRange>
238                             <goals>
239                               <goal>generate-sources</goal>
240                             </goals>
241                           </pluginExecutionFilter>
242                           <action>
243                             <execute/>
244                           </action>
245                         </pluginExecution>
246                         <pluginExecution>
247                           <pluginExecutionFilter>
248                             <groupId>org.codehaus.groovy.maven</groupId>
249                             <artifactId>gmaven-plugin</artifactId>
250                             <versionRange>1.0</versionRange>
251                             <goals>
252                               <goal>execute</goal>
253                             </goals>
254                           </pluginExecutionFilter>
255                           <action>
256                             <ignore/>
257                           </action>
258                         </pluginExecution>
259                         <pluginExecution>
260                           <pluginExecutionFilter>
261                             <groupId>org.apache.maven.plugins</groupId>
262                             <artifactId>maven-enforcer-plugin</artifactId>
263                             <versionRange>${enforcer.version}</versionRange>
264                             <goals>
265                               <goal>enforce</goal>
266                             </goals>
267                           </pluginExecutionFilter>
268                           <action>
269                             <ignore/>
270                           </action>
271                         </pluginExecution>
272                       </pluginExecutions>
273                     </lifecycleMappingMetadata>
274                   </configuration>
275                 </plugin>
276             </plugins>
277         </pluginManagement>
278     </build>
279     <reporting>
280         <plugins>
281             <plugin>
282                 <groupId>org.codehaus.mojo</groupId>
283                 <artifactId>findbugs-maven-plugin</artifactId>
284                 <version>2.5.2</version>
285                 <configuration>
286                     <effort>Max</effort>
287                     <threshold>Low</threshold>
288                     <goal>site</goal>
289                 </configuration>
290             </plugin>
291             <plugin>
292               <artifactId>maven-jxr-plugin</artifactId>
293               <version>2.3</version>
294               <configuration>
295                 <aggregate>true</aggregate>
296                 <linkJavadoc>true</linkJavadoc>
297               </configuration>
298             </plugin>
299
300             <plugin>
301                 <groupId>org.codehaus.mojo</groupId>
302                 <artifactId>jdepend-maven-plugin</artifactId>
303                 <version>2.0-beta-2</version>
304             </plugin>
305         </plugins>
306     </reporting>
307     <profiles>
308         <profile>
309             <id>viewbuild</id>
310             <activation>
311                 <activeByDefault>true</activeByDefault>
312             </activation>
313             <properties>
314                 <build.suffix>${project.version}</build.suffix>
315             </properties>
316         </profile>
317         <profile>
318             <id>jenkins</id>
319             <activation>
320                 <property>
321                     <name>BUILDSUFFIX</name>
322                 </property>
323             </activation>
324             <properties>
325                 <build.suffix>${BUILDSUFFIX}</build.suffix>
326             </properties>
327         </profile>
328         <profile>
329             <id>repoBuild</id>
330             <build>
331                 <plugins>
332                     <plugin>
333                         <groupId>org.apache.maven.plugins</groupId>
334                         <artifactId>maven-javadoc-plugin</artifactId>
335                         <version>2.8.1</version>
336                         <executions>
337                             <execution>
338                                 <goals>
339                                     <goal>aggregate</goal>
340                                 </goals>
341                                 <phase>site</phase>
342                             </execution>
343                             <execution>
344                                 <id>attach-javadocs</id>
345                                 <goals>
346                                     <goal>jar</goal>
347                                 </goals>
348                             </execution>
349                         </executions>
350                     </plugin>
351                     <plugin>
352                         <groupId>org.apache.maven.plugins</groupId>
353                         <artifactId>maven-source-plugin</artifactId>
354                         <executions>
355                             <execution>
356                                 <id>attach-sources</id>
357                                 <phase>package</phase>
358                                 <goals>
359                                     <goal>jar-no-fork</goal>
360                                 </goals>
361                             </execution>
362                         </executions>
363                     </plugin>
364                 </plugins>
365             </build>
366         </profile>
367     </profiles>
368 </project>