Merge "Bug-5644: Fix checkstyle invocation for l2switch builds - fixed parent pom...
[l2switch.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"
3          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4   <modelVersion>4.0.0</modelVersion>
5   <parent>
6     <groupId>org.opendaylight.odlparent</groupId>
7     <artifactId>odlparent</artifactId>
8     <version>1.7.0-SNAPSHOT</version>
9     <relativePath/>
10   </parent>
11   <groupId>org.opendaylight.l2switch</groupId>
12   <artifactId>l2switch-parent</artifactId>
13   <version>0.4.0-SNAPSHOT</version>
14   <packaging>pom</packaging>
15
16   <properties>
17     <codeGeneratorPath>src/main/yang-gen-code</codeGeneratorPath>
18     <configCodeGeneratorPath>src/main/yang-gen-config</configCodeGeneratorPath>
19     <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
20     <branding.version>1.3.0-SNAPSHOT</branding.version>
21     <karaf.resources.version>1.7.0-SNAPSHOT</karaf.resources.version>
22     <mdsal.version>2.1.0-SNAPSHOT</mdsal.version>
23     <mdsal.model.version>0.9.0-SNAPSHOT</mdsal.model.version>
24     <controller.mdsal.version>1.4.0-SNAPSHOT</controller.mdsal.version>
25     <yangtools.version>1.0.0-SNAPSHOT</yangtools.version>
26     <jung2.version>2.0.1</jung2.version>
27     <config.version>0.5.0-SNAPSHOT</config.version>
28     <openflow.plugin.version>0.3.0-SNAPSHOT</openflow.plugin.version>
29     <dlux.version>0.4.0-SNAPSHOT</dlux.version>
30     <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
31     <config.packethandler.configfile>50-packethandler.xml</config.packethandler.configfile>
32     <config.loopremover.configfile>52-loopremover.xml</config.loopremover.configfile>
33     <config.arphandler.configfile>54-arphandler.xml</config.arphandler.configfile>
34     <config.addresstracker.configfile>56-addresstracker.xml</config.addresstracker.configfile>
35     <config.hosttracker.configfile>57-hosttracker.xml</config.hosttracker.configfile>
36     <config.l2switchmain.configfile>58-l2switchmain.xml</config.l2switchmain.configfile>
37   </properties>
38
39   <dependencyManagement>
40     <dependencies>
41       <dependency>
42         <groupId>org.opendaylight.yangtools</groupId>
43         <artifactId>yangtools-artifacts</artifactId>
44         <version>${yangtools.version}</version>
45         <scope>import</scope>
46         <type>pom</type>
47       </dependency>
48       <dependency>
49         <groupId>org.opendaylight.mdsal</groupId>
50         <artifactId>mdsal-artifacts</artifactId>
51         <version>${mdsal.version}</version>
52         <scope>import</scope>
53         <type>pom</type>
54       </dependency>
55       <dependency>
56         <groupId>org.opendaylight.mdsal.model</groupId>
57         <artifactId>mdsal-model-artifacts</artifactId>
58         <version>${mdsal.model.version}</version>
59         <scope>import</scope>
60         <type>pom</type>
61       </dependency>
62       <dependency>
63         <groupId>org.opendaylight.controller</groupId>
64         <artifactId>config-artifacts</artifactId>
65         <version>${config.version}</version>
66         <scope>import</scope>
67         <type>pom</type>
68       </dependency>
69       <dependency>
70         <groupId>org.opendaylight.controller</groupId>
71         <artifactId>mdsal-artifacts</artifactId>
72         <version>${controller.mdsal.version}</version>
73         <scope>import</scope>
74         <type>pom</type>
75       </dependency>
76       <dependency>
77         <groupId>org.opendaylight.openflowplugin</groupId>
78         <artifactId>openflowplugin-artifacts</artifactId>
79         <version>${openflow.plugin.version}</version>
80         <scope>import</scope>
81         <type>pom</type>
82       </dependency>
83       <dependency>
84         <groupId>org.opendaylight.l2switch</groupId>
85         <artifactId>l2switch-artifacts</artifactId>
86         <version>${project.version}</version>
87         <scope>import</scope>
88         <type>pom</type>
89       </dependency>
90
91       <dependency>
92         <groupId>org.opendaylight.controller.thirdparty</groupId>
93         <artifactId>net.sf.jung2</artifactId>
94         <version>${jung2.version}</version>
95       </dependency>
96     </dependencies>
97   </dependencyManagement>
98
99   <distributionManagement>
100     <!-- OpenDayLight Released artifact -->
101     <repository>
102       <id>opendaylight-release</id>
103       <url>${nexusproxy}/repositories/opendaylight.release/</url>
104     </repository>
105     <!-- OpenDayLight Snapshot artifact -->
106     <snapshotRepository>
107       <id>opendaylight-snapshot</id>
108       <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
109     </snapshotRepository>
110     <site>
111       <id>${project.artifactId}-site</id>
112       <url>./</url>
113     </site>
114   </distributionManagement>
115
116   <build>
117       <pluginManagement>
118           <plugins>
119               <plugin>
120                   <groupId>org.apache.maven.plugins</groupId>
121                   <artifactId>maven-compiler-plugin</artifactId>
122                   <version>${maven.compile.plugin.version}</version>
123                   <configuration>
124                       <source>${java.version.source}</source>
125                       <target>${java.version.target}</target>
126                   </configuration>
127               </plugin>
128
129               <plugin>
130                   <groupId>org.apache.maven.plugins</groupId>
131                   <artifactId>maven-checkstyle-plugin</artifactId>
132                   <configuration>
133                       <failOnViolation>true</failOnViolation>
134                       <configLocation>checkstyle-logging.xml</configLocation>
135                       <consoleOutput>true</consoleOutput>
136                       <includeTestSourceDirectory>true</includeTestSourceDirectory>
137                       <sourceDirectory>${project.basedir}</sourceDirectory>
138                       <includes>**\/*.java,**\/*.yang,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat</includes>
139                       <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/xtend-gen\/,**\/${codeGeneratorPath}\/,**\/${configCodeGeneratorPath}\/,</excludes>
140                   </configuration>
141                   <dependencies>
142                       <dependency>
143                           <groupId>org.opendaylight.yangtools</groupId>
144                           <artifactId>checkstyle-logging</artifactId>
145                           <version>${yangtools.version}</version>
146                       </dependency>
147                   </dependencies>
148                   <executions>
149                       <execution>
150                           <id>check</id>
151                           <goals>
152                               <goal>check</goal>
153                           </goals>
154                           <phase>process-sources</phase>
155                       </execution>
156                   </executions>
157               </plugin>
158
159               <!--  tells eclipse to import these folders into the package explorer as "source" folders
160                     which allows eclipse to resolve the classes correctly during an eclipse build -->
161               <plugin>
162                   <groupId>org.codehaus.mojo</groupId>
163                   <artifactId>build-helper-maven-plugin</artifactId>
164                   <version>1.8</version>
165                   <executions>
166                       <execution>
167                           <id>add-source</id>
168                           <goals>
169                               <goal>add-source</goal>
170                           </goals>
171                           <phase>generate-sources</phase>
172                           <configuration>
173                               <sources>
174                                   <source>src/main/yang</source>
175                                   <source>${codeGeneratorPath}</source>
176                                   <source>${configCodeGeneratorPath}</source>
177                               </sources>
178                           </configuration>
179                       </execution>
180                   </executions>
181               </plugin>
182               <!--  cleans up auto generated code  -->
183               <plugin>
184                   <artifactId>maven-clean-plugin</artifactId>
185                   <configuration>
186                       <filesets>
187                           <fileset>
188                               <directory>${codeGeneratorPath}</directory>
189                               <directory>${configCodeGeneratorPath}</directory>
190                               <includes>
191                                   <include>**</include>
192                               </includes>
193                           </fileset>
194                       </filesets>
195                   </configuration>
196               </plugin>
197
198               <!-- Ignore/Execute plugin execution -->
199               <plugin>
200                   <groupId>org.eclipse.m2e</groupId>
201                   <artifactId>lifecycle-mapping</artifactId>
202                   <version>1.0.0</version>
203                   <configuration>
204                       <lifecycleMappingMetadata>
205                           <pluginExecutions>
206                               <pluginExecution>
207                                   <pluginExecutionFilter>
208                                       <groupId>org.codehaus.mojo</groupId>
209                                       <artifactId>properties-maven-plugin</artifactId>
210                                       <versionRange>[0.0,)</versionRange>
211                                       <goals>
212                                           <goal>set-system-properties</goal>
213                                       </goals>
214                                   </pluginExecutionFilter>
215                                   <action>
216                                       <ignore />
217                                   </action>
218                               </pluginExecution>
219                               <pluginExecution>
220                                   <pluginExecutionFilter>
221                                       <groupId>org.jacoco</groupId>
222                                       <artifactId>jacoco-maven-plugin</artifactId>
223                                       <versionRange>[0.0,)</versionRange>
224                                       <goals>
225                                           <goal>prepare-agent</goal>
226                                           <goal>pre-test</goal>
227                                           <goal>post-test</goal>
228                                       </goals>
229                                   </pluginExecutionFilter>
230                                   <action>
231                                       <ignore />
232                                   </action>
233                               </pluginExecution>
234                               <pluginExecution>
235                                   <pluginExecutionFilter>
236                                       <groupId>org.ops4j.pax.exam</groupId>
237                                       <artifactId>maven-paxexam-plugin</artifactId>
238                                       <versionRange>[1.2.4,)</versionRange>
239                                       <goals>
240                                           <goal>generate-depends-file</goal>
241                                       </goals>
242                                   </pluginExecutionFilter>
243                                   <action>
244                                       <execute>
245                                           <runOnIncremental>false</runOnIncremental>
246                                       </execute>
247                                   </action>
248                               </pluginExecution>
249                               <pluginExecution>
250                                   <pluginExecutionFilter>
251                                       <groupId>org.apache.maven.plugins</groupId>
252                                       <artifactId>maven-checkstyle-plugin</artifactId>
253                                       <versionRange>[2.0,)</versionRange>
254                                       <goals>
255                                           <goal>check</goal>
256                                       </goals>
257                                   </pluginExecutionFilter>
258                                   <action>
259                                       <execute />
260                                   </action>
261                               </pluginExecution>
262                               <pluginExecution>
263                                   <pluginExecutionFilter>
264                                       <groupId>org.opendaylight.yangtools</groupId>
265                                       <artifactId>yang-maven-plugin</artifactId>
266                                       <versionRange>[0.5,)</versionRange>
267                                       <goals>
268                                           <goal>generate-sources</goal>
269                                       </goals>
270                                   </pluginExecutionFilter>
271                                   <action>
272                                       <execute />
273                                   </action>
274                               </pluginExecution>
275                               <pluginExecution>
276                                   <pluginExecutionFilter>
277                                       <groupId>org.codehaus.groovy.maven</groupId>
278                                       <artifactId>gmaven-plugin</artifactId>
279                                       <versionRange>1.0</versionRange>
280                                       <goals>
281                                           <goal>execute</goal>
282                                       </goals>
283                                   </pluginExecutionFilter>
284                                   <action>
285                                       <ignore />
286                                   </action>
287                               </pluginExecution>
288                               <pluginExecution>
289                                   <pluginExecutionFilter>
290                                       <groupId>org.apache.maven.plugins</groupId>
291                                       <artifactId>maven-enforcer-plugin</artifactId>
292                                       <versionRange>${enforcer.version}</versionRange>
293                                       <goals>
294                                           <goal>enforce</goal>
295                                       </goals>
296                                   </pluginExecutionFilter>
297                                   <action>
298                                       <ignore />
299                                   </action>
300                               </pluginExecution>
301                           </pluginExecutions>
302                       </lifecycleMappingMetadata>
303                   </configuration>
304               </plugin>
305           </plugins>
306       </pluginManagement>
307       <plugins>
308           <plugin>
309             <groupId>org.codehaus.mojo</groupId>
310             <artifactId>build-helper-maven-plugin</artifactId>
311           </plugin>
312           <plugin>
313               <groupId>org.apache.maven.plugins</groupId>
314               <artifactId>maven-checkstyle-plugin</artifactId>
315           </plugin>
316       </plugins>
317   </build>
318
319
320 </project>