Remove repository declaration
[yangtools.git] / common / parent / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
11          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
12
13     <parent>
14         <groupId>org.opendaylight.odlparent</groupId>
15         <artifactId>odlparent</artifactId>
16         <version>1.5.0-SNAPSHOT</version>
17         <relativePath></relativePath>
18     </parent>
19
20     <modelVersion>4.0.0</modelVersion>
21     <artifactId>yangtools-parent</artifactId>
22     <groupId>org.opendaylight.yangtools</groupId>
23     <version>0.7.0-SNAPSHOT</version>
24     <packaging>pom</packaging>
25
26     <properties>
27         <yangtools.version>0.7.0-SNAPSHOT</yangtools.version>
28
29         <!-- FIXME: these will be upstreamed -->
30         <maven.depends.version>1.2</maven.depends.version>
31         <maven.javadoc.version>2.9.1</maven.javadoc.version>
32         <sonar-jacoco-listeners.version>2.4</sonar-jacoco-listeners.version>
33         <sonar.core.codeCoveragePlugin>jacoco</sonar.core.codeCoveragePlugin>
34         <sonar.jacoco.reportPath>target/code-coverage/jacoco.exec</sonar.jacoco.reportPath>
35         <sonar.jacoco.itReportPath>target/code-coverage/jacoco-it.exec</sonar.jacoco.itReportPath>
36     </properties>
37
38     <dependencyManagement>
39         <dependencies>
40             <!-- Testing Dependencies -->
41             <dependency>
42                 <groupId>org.apache.maven.shared</groupId>
43                 <artifactId>maven-verifier</artifactId>
44                 <version>1.5</version>
45                 <scope>test</scope>
46             </dependency>
47             <dependency>
48                 <groupId>equinoxSDK381</groupId>
49                 <artifactId>org.eclipse.osgi</artifactId>
50                 <version>3.8.1.v20120830-144521</version>
51                 <scope>test</scope>
52             </dependency>
53             <dependency>
54                 <groupId>org.codehaus.groovy</groupId>
55                 <artifactId>groovy</artifactId>
56                 <version>2.1.6</version>
57                 <scope>test</scope>
58             </dependency>
59             <dependency>
60                 <groupId>org.codehaus.groovy</groupId>
61                 <artifactId>groovy-xml</artifactId>
62                 <version>2.1.6</version>
63                 <scope>test</scope>
64             </dependency>
65             <dependency>
66                 <groupId>xmlunit</groupId>
67                 <artifactId>xmlunit</artifactId>
68                 <version>1.5</version>
69                 <scope>test</scope>
70             </dependency>
71             <dependency>
72                 <groupId>org.apache.maven</groupId>
73                 <artifactId>maven-core</artifactId>
74                 <version>3.1.1</version>
75             </dependency>
76             <dependency>
77                 <groupId>org.apache.maven</groupId>
78                 <artifactId>maven-plugin-api</artifactId>
79                 <version>3.1.1</version>
80             </dependency>
81             <dependency>
82                 <groupId>org.javassist</groupId>
83                 <artifactId>javassist</artifactId>
84                 <version>${javassist.version}</version>
85             </dependency>
86             <dependency>
87                 <groupId>xml-apis</groupId>
88                 <artifactId>xml-apis</artifactId>
89                 <version>2.0.2</version>
90             </dependency>
91             <dependency>
92                 <groupId>org.eclipse.xtend</groupId>
93                 <artifactId>org.eclipse.xtend.lib</artifactId>
94                 <version>2.7.3</version>
95             </dependency>
96             <dependency>
97                 <groupId>org.osgi</groupId>
98                 <artifactId>org.osgi.core</artifactId>
99                 <version>5.0.0</version>
100                 <scope>provided</scope>
101             </dependency>
102             <dependency>
103                 <groupId>javax.ws.rs</groupId>
104                 <artifactId>javax.ws.rs-api</artifactId>
105                 <version>2.0</version>
106             </dependency>
107
108             <dependency>
109                 <groupId>org.glassfish.jersey.ext</groupId>
110                 <artifactId>jersey-proxy-client</artifactId>
111                 <version>2.0</version>
112             </dependency>
113             <dependency>
114                 <groupId>org.glassfish.jersey.core</groupId>
115                 <artifactId>jersey-client</artifactId>
116                 <version>2.0</version>
117             </dependency>
118
119             <dependency>
120                 <groupId>org.opendaylight.yangtools</groupId>
121                 <artifactId>yangtools-artifacts</artifactId>
122                 <version>${yangtools.version}</version>
123                 <scope>import</scope>
124                 <type>pom</type>
125             </dependency>
126         </dependencies>
127     </dependencyManagement>
128
129     <dependencies>
130         <!-- Sonar -->
131         <dependency>
132             <groupId>org.codehaus.sonar-plugins.java</groupId>
133             <artifactId>sonar-jacoco-listeners</artifactId>
134             <version>${sonar-jacoco-listeners.version}</version>
135             <scope>test</scope>
136         </dependency>
137         <dependency>
138             <groupId>org.slf4j</groupId>
139             <artifactId>slf4j-simple</artifactId>
140             <scope>test</scope>
141         </dependency>
142     </dependencies>
143
144     <build>
145         <pluginManagement>
146             <plugins>
147                 <plugin>
148                     <groupId>org.apache.maven.plugins</groupId>
149                     <artifactId>maven-jar-plugin</artifactId>
150                     <version>${maven.jar.version}</version>
151                     <configuration>
152                         <archive>
153                             <!--
154                                  Bundle OSGi Manifest created by maven-bundle-plugin
155                                  into a jar file
156                                  -->
157                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
158                         </archive>
159                     </configuration>
160                 </plugin>
161                 <plugin>
162                     <groupId>org.apache.felix</groupId>
163                     <artifactId>maven-bundle-plugin</artifactId>
164                     <version>${maven.bundle.version}</version>
165                     <extensions>true</extensions>
166                     <executions>
167                         <execution>
168                             <id>bundle-manifest</id>
169                             <phase>process-classes</phase>
170                             <goals>
171                                 <goal>manifest</goal>
172                             </goals>
173                         </execution>
174                     </executions>
175                 </plugin>
176                 <plugin>
177                     <groupId>org.apache.maven.plugins</groupId>
178                     <artifactId>maven-failsafe-plugin</artifactId>
179                     <configuration>
180                         <!-- Specific to generate mapping between tests and covered code -->
181                         <argLine>${jacoco.agent.it.arg}</argLine>
182                         <properties>
183                             <property>
184                                 <name>listener</name>
185                                 <value>org.sonar.java.jacoco.JUnitListener</value>
186                             </property>
187                         </properties>
188                         <!-- Let's put failsafe reports with surefire to have access to tests failures/success reports in sonar -->
189                         <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
190                     </configuration>
191                 </plugin>
192                 <plugin>
193                     <groupId>org.apache.maven.plugins</groupId>
194                     <artifactId>maven-surefire-plugin</artifactId>
195                     <version>${maven.surefire.version}</version>
196                     <configuration>
197                         <!-- Specific to generate mapping between tests and covered code -->
198                         <argLine>${jacoco.agent.ut.arg}</argLine>
199                         <properties>
200                             <property>
201                                 <name>listener</name>
202                                 <value>org.sonar.java.jacoco.JUnitListener</value>
203                             </property>
204                         </properties>
205                     </configuration>
206                 </plugin>
207
208                 <plugin>
209                     <groupId>org.eclipse.m2e</groupId>
210                     <artifactId>lifecycle-mapping</artifactId>
211                     <version>1.0.0</version>
212                     <configuration>
213                         <lifecycleMappingMetadata>
214                             <pluginExecutions>
215                                 <pluginExecution>
216                                     <pluginExecutionFilter>
217                                         <groupId>org.apache.felix</groupId>
218                                         <artifactId>maven-bundle-plugin</artifactId>
219                                         <versionRange>[1.0,)</versionRange>
220                                         <goals>
221                                             <goal>manifest</goal>
222                                         </goals>
223                                     </pluginExecutionFilter>
224                                     <action>
225                                         <execute />
226                                     </action>
227                                 </pluginExecution>
228                                 <pluginExecution>
229                                     <pluginExecutionFilter>
230                                         <groupId>org.apache.maven.plugins</groupId>
231                                         <artifactId>maven-antrun-plugin</artifactId>
232                                         <versionRange>[1.0,)</versionRange>
233                                         <goals>
234                                             <goal>run</goal>
235                                         </goals>
236                                     </pluginExecutionFilter>
237                                     <action>
238                                         <execute/>
239                                     </action>
240                                 </pluginExecution>
241                                 <pluginExecution>
242                                     <pluginExecutionFilter>
243                                         <groupId>org.opendaylight.yangtools</groupId>
244                                         <artifactId>yang-maven-plugin</artifactId>
245                                         <versionRange>[0.5,)</versionRange>
246                                         <goals>
247                                             <goal>generate-sources</goal>
248                                         </goals>
249                                      </pluginExecutionFilter>
250                                      <action>
251                                          <ignore />
252                                      </action>
253                                  </pluginExecution>
254                                  <pluginExecution>
255                                     <pluginExecutionFilter>
256                                         <groupId>org.codehaus.mojo</groupId>
257                                         <artifactId>properties-maven-plugin</artifactId>
258                                         <versionRange>1.0-alpha-2</versionRange>
259                                         <goals>
260                                             <goal>write-project-properties</goal>
261                                         </goals>
262                                      </pluginExecutionFilter>
263                                      <action>
264                                          <ignore />
265                                      </action>
266                                  </pluginExecution>
267                                  <pluginExecution>
268                                     <pluginExecutionFilter>
269                                         <groupId>org.ops4j.pax.exam</groupId>
270                                         <artifactId>maven-paxexam-plugin</artifactId>
271                                         <versionRange>1.2.4</versionRange>
272                                         <goals>
273                                             <goal>generate-depends-file</goal>
274                                         </goals>
275                                      </pluginExecutionFilter>
276                                      <action>
277                                          <ignore />
278                                      </action>
279                                  </pluginExecution>
280                                  <pluginExecution>
281                                     <pluginExecutionFilter>
282                                         <groupId>org.jacoco</groupId>
283                                         <artifactId>jacoco-maven-plugin</artifactId>
284                                         <versionRange>[0.6,)</versionRange>
285                                         <goals>
286                                             <goal>prepare-agent</goal>
287                                         </goals>
288                                      </pluginExecutionFilter>
289                                      <action>
290                                          <ignore/>
291                                      </action>
292                                  </pluginExecution>
293                                  <pluginExecution>
294                                     <pluginExecutionFilter>
295                                         <groupId>org.apache.maven.plugins</groupId>
296                                         <artifactId>maven-checkstyle-plugin</artifactId>
297                                         <versionRange>[2.12,)</versionRange>
298                                         <goals>
299                                             <goal>check</goal>
300                                         </goals>
301                                      </pluginExecutionFilter>
302                                      <action>
303                                          <execute/>
304                                      </action>
305                                  </pluginExecution>
306                             </pluginExecutions>
307                         </lifecycleMappingMetadata>
308                     </configuration>
309                 </plugin>
310                 <plugin>
311                     <groupId>org.opendaylight.yangtools</groupId>
312                     <artifactId>yang-maven-plugin</artifactId>
313                     <version>0.7.0-SNAPSHOT</version>
314                     <executions>
315                         <execution>
316                             <goals>
317                                 <goal>generate-sources</goal>
318                             </goals>
319                             <configuration>
320                                 <yangFilesRootDir>src/main/yang</yangFilesRootDir>
321                                 <codeGenerators>
322                                     <generator>
323                                         <codeGeneratorClass>
324                                             org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl
325                                         </codeGeneratorClass>
326                                         <outputBaseDir>
327                                             target/generated-sources/sal
328                                         </outputBaseDir>
329                                     </generator>
330                                     <generator>
331                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.unified.doc.generator.maven.DocumentationGeneratorImpl</codeGeneratorClass>
332                                         <outputBaseDir>target/site/restconf</outputBaseDir>
333                                     </generator>
334                                     <generator>
335                                         <codeGeneratorClass>org.opendaylight.yangtools.yang.wadl.generator.maven.WadlGenerator</codeGeneratorClass>
336                                         <outputBaseDir>target/site/restconf</outputBaseDir>
337                                     </generator>
338                                 </codeGenerators>
339                                 <inspectDependencies>true</inspectDependencies>
340                             </configuration>
341                         </execution>
342                     </executions>
343                     <dependencies>
344                         <dependency>
345                             <groupId>org.opendaylight.yangtools</groupId>
346                             <artifactId>maven-sal-api-gen-plugin</artifactId>
347                             <version>0.7.0-SNAPSHOT</version>
348                             <type>jar</type>
349                         </dependency>
350                     </dependencies>
351                 </plugin>
352                 <plugin>
353                     <groupId>org.ops4j.pax.exam</groupId>
354                     <artifactId>maven-paxexam-plugin</artifactId>
355                     <version>1.2.4</version>
356                     <executions>
357                         <execution>
358                             <id>generate-config</id>
359                             <goals>
360                                 <goal>generate-depends-file</goal>
361                             </goals>
362                         </execution>
363                     </executions>
364                 </plugin>
365                 <plugin>
366                     <groupId>org.apache.maven.plugins</groupId>
367                     <artifactId>maven-javadoc-plugin</artifactId>
368                     <version>${maven.javadoc.version}</version>
369                     <configuration>
370                         <stylesheetfile>stylesheet.css</stylesheetfile>
371                     </configuration>
372                     <executions>
373                         <execution>
374                             <id>attach-javadocs</id>
375                             <goals>
376                                 <goal>jar</goal>
377                             </goals>
378                         </execution>
379                         <execution>
380                             <goals>
381                                 <goal>aggregate</goal>
382                             </goals>
383                             <phase>site</phase>
384                         </execution>
385                     </executions>
386                 </plugin>
387                 <plugin>
388                     <groupId>org.codehaus.mojo</groupId>
389                     <artifactId>build-helper-maven-plugin</artifactId>
390                     <version>1.8</version>
391                     <executions>
392                         <execution>
393                             <phase>generate-sources</phase>
394                             <goals>
395                                 <goal>add-source</goal>
396                             </goals>
397                             <configuration>
398                                 <sources>
399                                     <source>target/generated-sources/parser</source>
400                                     <source>target/generated-sources/sal</source>
401                                     <source>${basedir}/src/main/xtend-gen</source>
402                                 </sources>
403                             </configuration>
404                         </execution>
405                     </executions>
406                 </plugin>
407                 <plugin>
408                     <groupId>org.eclipse.xtend</groupId>
409                     <artifactId>xtend-maven-plugin</artifactId>
410                     <version>2.7.3</version>
411                     <executions>
412                         <execution>
413                             <goals>
414                                 <goal>compile</goal>
415                             </goals>
416                             <configuration>
417                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
418                             </configuration>
419                         </execution>
420                     </executions>
421                 </plugin>
422                 <plugin>
423                     <groupId>org.apache.servicemix.tooling</groupId>
424                     <artifactId>depends-maven-plugin</artifactId>
425                     <version>${maven.depends.version}</version>
426                     <executions>
427                         <execution>
428                             <id>generate-depends-file</id>
429                             <goals>
430                                 <goal>generate-depends-file</goal>
431                             </goals>
432                         </execution>
433                     </executions>
434                 </plugin>
435             </plugins>
436         </pluginManagement>
437
438         <plugins>
439             <plugin>
440                 <groupId>org.apache.maven.plugins</groupId>
441                 <artifactId>maven-enforcer-plugin</artifactId>
442                 <!--
443                 <executions>
444                     <execution>
445                         <id>enforce-dependencies</id>
446                         <configuration>
447                             <rules>
448                                 <DependencyConvergence />
449                             </rules>
450                         </configuration>
451                         <goals>
452                             <goal>enforce</goal>
453                         </goals>
454                     </execution>
455                 </executions>
456                 -->
457             </plugin>
458
459             <plugin>
460                 <artifactId>maven-clean-plugin</artifactId>
461                 <configuration>
462                     <filesets>
463                         <fileset>
464                             <directory>${basedir}/src/main/xtend-gen</directory>
465                             <includes>
466                                 <include>**</include>
467                             </includes>
468                         </fileset>
469                     </filesets>
470                 </configuration>
471             </plugin>
472             <plugin>
473                 <groupId>org.apache.maven.plugins</groupId>
474                 <artifactId>maven-jar-plugin</artifactId>
475             </plugin>
476             <plugin>
477                 <groupId>org.apache.felix</groupId>
478                 <artifactId>maven-bundle-plugin</artifactId>
479             </plugin>
480             <plugin>
481                 <groupId>org.apache.maven.plugins</groupId>
482                 <artifactId>maven-source-plugin</artifactId>
483                 <executions>
484                     <execution>
485                         <id>attach-sources</id>
486                         <goals>
487                             <goal>jar</goal>
488                         </goals>
489                     </execution>
490                 </executions>
491             </plugin>
492             <plugin>
493                 <groupId>org.apache.maven.plugins</groupId>
494                 <artifactId>maven-javadoc-plugin</artifactId>
495             </plugin>
496             <plugin>
497                 <groupId>org.jacoco</groupId>
498                 <artifactId>jacoco-maven-plugin</artifactId>
499                 <executions>
500                     <execution>
501                         <id>prepare-ut-agent</id>
502                         <phase>process-test-classes</phase>
503                         <goals>
504                             <goal>prepare-agent</goal>
505                         </goals>
506                         <configuration>
507                             <destFile>${sonar.jacoco.reportPath}</destFile>
508                             <propertyName>jacoco.agent.ut.arg</propertyName>
509                         </configuration>
510                     </execution>
511                     <execution>
512                         <id>prepare-it-agent</id>
513                         <phase>pre-integration-test</phase>
514                         <goals>
515                             <goal>prepare-agent</goal>
516                         </goals>
517                         <configuration>
518                             <destFile>${sonar.jacoco.itReportPath}</destFile>
519                             <propertyName>jacoco.agent.it.arg</propertyName>
520                         </configuration>
521                     </execution>
522                 </executions>
523             </plugin>
524         </plugins>
525     </build>
526
527     <reporting>
528         <plugins>
529             <plugin>
530                 <groupId>org.codehaus.mojo</groupId>
531                 <artifactId>findbugs-maven-plugin</artifactId>
532                 <version>${findbugs.maven.plugin.version}</version>
533                 <configuration>
534                     <effort>Max</effort>
535                     <threshold>Low</threshold>
536                     <goal>site</goal>
537                 </configuration>
538             </plugin>
539             <plugin>
540                 <groupId>org.codehaus.mojo</groupId>
541                 <artifactId>jdepend-maven-plugin</artifactId>
542                 <version>${jdepend.maven.plugin.version}</version>
543             </plugin>
544         </plugins>
545     </reporting>
546 </project>