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