Make distributionManagement reference groups
[yangtools.git] / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3
4     <modelVersion>4.0.0</modelVersion>
5     <artifactId>yangtools</artifactId>
6     <groupId>org.opendaylight.yangtools</groupId>
7     <version>0.6.0-SNAPSHOT</version>
8     <packaging>pom</packaging>
9     <prerequisites>
10         <maven>3.0.4</maven>
11     </prerequisites>
12
13     <properties>
14         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
15         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
16
17         <!-- Java Versions -->
18         <maven.compiler.source>1.7</maven.compiler.source>
19         <maven.compiler.target>1.7</maven.compiler.target>
20
21         <!-- Build Plugin Versions -->
22         <maven.bundle.version>2.4.0</maven.bundle.version>
23         <maven.jar.version>2.4</maven.jar.version>
24         <maven.javadoc.version>2.9.1</maven.javadoc.version>
25         <maven.release.version>2.4.2</maven.release.version>
26         <maven.source.version>2.2.1</maven.source.version>
27         <maven.surefire.version>2.16</maven.surefire.version>
28
29         <!-- Supporting Libraries -->
30         <commons.lang.version>3.1</commons.lang.version>
31         <junit.version>4.10</junit.version>
32         <slf4j.version>1.7.2</slf4j.version>
33         <guava.version>14.0.1</guava.version>
34         <xtend.version>2.4.3</xtend.version>
35         <groovy.version>2.1.6</groovy.version>
36         <mockito.version>1.9.5</mockito.version>
37     </properties>
38
39     <scm>
40         <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
41         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
42         <url>https://wiki.opendaylight.org/view/YANG_Tools:Main</url>
43     </scm>
44
45     <modules>
46         <module>concepts</module>
47         <module>yang</module>
48         <module>code-generator</module>
49         <module>model</module>
50         <module>restconf</module>
51         <module>mockito-configuration</module>
52         <!-- module>third-party</module -->
53     </modules>
54
55     <pluginRepositories>
56         <pluginRepository>
57             <id>opendaylight-mirror</id>
58             <name>opendaylight-mirror</name>
59             <url>${nexusproxy}/groups/public/</url>
60             <snapshots>
61                 <enabled>false</enabled>
62             </snapshots>
63             <releases>
64                 <enabled>true</enabled>
65                 <updatePolicy>never</updatePolicy>
66             </releases>
67         </pluginRepository>
68     </pluginRepositories>
69
70     <repositories>
71         <repository>
72             <id>opendaylight-mirror</id>
73             <name>opendaylight-mirror</name>
74             <url>${nexusproxy}/groups/public/</url>
75             <snapshots>
76                 <enabled>false</enabled>
77             </snapshots>
78             <releases>
79                 <enabled>true</enabled>
80                 <updatePolicy>never</updatePolicy>
81             </releases>
82         </repository>
83     </repositories>
84
85
86     <dependencyManagement>
87         <dependencies>
88             <!-- Testing Dependencies -->
89             <dependency>
90                 <groupId>junit</groupId>
91                 <artifactId>junit</artifactId>
92                 <version>${junit.version}</version>
93                 <scope>test</scope>
94             </dependency>
95             <dependency>
96                 <groupId>org.mockito</groupId>
97                 <artifactId>mockito-all</artifactId>
98                 <version>${mockito.version}</version>
99                 <scope>test</scope>
100             </dependency>
101             <dependency>
102                 <groupId>org.mockito</groupId>
103                 <artifactId>mockito-core</artifactId>
104                 <version>${mockito.version}</version>
105                 <scope>test</scope>
106             </dependency>
107
108             <!-- Supporting Libraries -->
109             <dependency>
110                 <groupId>org.slf4j</groupId>
111                 <artifactId>slf4j-api</artifactId>
112                 <version>${slf4j.version}</version>
113             </dependency>
114             <dependency>
115                 <groupId>com.google.guava</groupId>
116                 <artifactId>guava</artifactId>
117                 <version>${guava.version}</version>
118             </dependency>
119             <dependency>
120                 <groupId>org.eclipse.xtend</groupId>
121                 <artifactId>org.eclipse.xtend.lib</artifactId>
122                 <version>${xtend.version}</version>
123             </dependency>
124             <dependency>
125                 <groupId>org.apache.commons</groupId>
126                 <artifactId>commons-lang3</artifactId>
127                 <version>${commons.lang.version}</version>
128             </dependency>
129
130             <!-- Plugin integration -->
131             <dependency>
132                 <groupId>org.sonatype.plexus</groupId>
133                 <artifactId>plexus-build-api</artifactId>
134                 <version>0.0.7</version>
135             </dependency>
136             <dependency>
137                 <groupId>org.codehaus.plexus</groupId>
138                 <artifactId>plexus-slf4j-logging</artifactId>
139                 <version>1.1</version>
140             </dependency>
141
142             <!-- Our artifacts -->
143             <dependency>
144                     <groupId>${project.groupId}</groupId>
145                     <artifactId>concepts</artifactId>
146                     <version>${project.version}</version>
147             </dependency>
148         </dependencies>
149     </dependencyManagement>
150
151     <distributionManagement>
152         <!-- OpenDayLight Released artifact -->
153         <repository>
154             <id>opendaylight-mirror</id>
155             <name>opendaylight-mirror</name>
156             <url>${nexusproxy}/groups/public/</url>
157         </repository>
158         <site>
159             <id>${project.artifactId}-site</id>
160             <url>./</url>
161         </site>
162     </distributionManagement>
163
164     <build>
165         <pluginManagement>
166             <plugins>
167                 <plugin>
168                     <groupId>org.apache.maven.plugins</groupId>
169                     <artifactId>maven-jar-plugin</artifactId>
170                     <version>${maven.jar.version}</version>
171                     <configuration>
172                         <archive>
173                             <!-- Bundle OSGi Manifest created by maven-bundle-plugin 
174                                 into jar file -->
175                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
176                         </archive>
177                     </configuration>
178                 </plugin>
179                 <plugin>
180                     <groupId>org.apache.felix</groupId>
181                     <artifactId>maven-bundle-plugin</artifactId>
182                     <version>${maven.bundle.version}</version>
183                     <extensions>true</extensions>
184                     <executions>
185                         <execution>
186                             <id>bundle-manifest</id>
187                             <phase>process-classes</phase>
188                             <goals>
189                                 <goal>manifest</goal>
190                             </goals>
191                         </execution>
192                     </executions>
193                     <configuration>
194                         <instructions>
195                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
196                             <Export-Package>*</Export-Package>
197                         </instructions>
198                     </configuration>
199                 </plugin>
200                 <plugin>
201                     <groupId>org.eclipse.xtend</groupId>
202                     <artifactId>xtend-maven-plugin</artifactId>
203                     <version>${xtend.version}</version>
204                     <executions>
205                         <execution>
206                             <goals>
207                                 <goal>compile</goal>
208                             </goals>
209                             <configuration>
210                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
211                             </configuration>
212                         </execution>
213                     </executions>
214                 </plugin>
215                 <plugin>
216                     <artifactId>maven-clean-plugin</artifactId>
217                     <version>2.5</version>
218                     <configuration>
219                         <filesets>
220                             <fileset>
221                                 <directory>${basedir}/src/main/xtend-gen</directory>
222                                 <includes>
223                                     <include>**</include>
224                                 </includes>
225                             </fileset>
226                         </filesets>
227                     </configuration>
228                 </plugin>
229                 <plugin>
230                     <groupId>org.eclipse.m2e</groupId>
231                     <artifactId>lifecycle-mapping</artifactId>
232                     <version>1.0.0</version>
233                     <configuration>
234                         <lifecycleMappingMetadata>
235                             <pluginExecutions>
236                                 <pluginExecution>
237                                     <pluginExecutionFilter>
238                                         <groupId>org.apache.felix</groupId>
239                                         <artifactId>maven-bundle-plugin</artifactId>
240                                         <versionRange>[1.0,)</versionRange>
241                                         <goals>
242                                             <goal>manifest</goal>
243                                         </goals>
244                                     </pluginExecutionFilter>
245                                     <action>
246                                         <execute />
247                                     </action>
248                                 </pluginExecution>
249                             </pluginExecutions>
250                         </lifecycleMappingMetadata>
251                     </configuration>
252                 </plugin>
253                 <plugin>
254                     <groupId>org.apache.maven.plugins</groupId>
255                     <artifactId>maven-javadoc-plugin</artifactId>
256                     <version>${maven.javadoc.version}</version>
257                     <configuration>
258                         <stylesheetfile>stylesheet.css</stylesheetfile>
259                     </configuration>
260                     <executions>
261                         <execution>
262                             <id>attach-javadocs</id>
263                             <goals>
264                                 <goal>jar</goal>
265                             </goals>
266                         </execution>
267                         <execution>
268                             <goals>
269                                 <goal>aggregate</goal>
270                             </goals>
271                             <phase>site</phase>
272                         </execution>
273                     </executions>
274                 </plugin>
275                 <plugin>
276                     <groupId>org.apache.maven.plugins</groupId>
277                     <artifactId>maven-release-plugin</artifactId>
278                     <version>${maven.release.version}</version>
279                 </plugin>
280             </plugins>
281         </pluginManagement>
282         <plugins>
283             <plugin>
284                 <groupId>org.apache.maven.plugins</groupId>
285                 <artifactId>maven-jar-plugin</artifactId>
286             </plugin>
287             <plugin>
288                 <groupId>org.apache.felix</groupId>
289                 <artifactId>maven-bundle-plugin</artifactId>
290             </plugin>
291             <plugin>
292                 <groupId>org.apache.maven.plugins</groupId>
293                 <artifactId>maven-source-plugin</artifactId>
294                 <version>${maven.source.version}</version>
295                 <executions>
296                     <execution>
297                         <id>attach-sources</id>
298                         <goals>
299                             <goal>jar</goal>
300                         </goals>
301                     </execution>
302                 </executions>
303             </plugin>
304             <plugin>
305                 <groupId>org.apache.maven.plugins</groupId>
306                 <artifactId>maven-javadoc-plugin</artifactId>
307             </plugin>
308         </plugins>
309     </build>
310
311     <reporting>
312         <plugins>
313             <plugin>
314                 <groupId>org.codehaus.mojo</groupId>
315                 <artifactId>findbugs-maven-plugin</artifactId>
316                 <version>2.5.3</version>
317                 <configuration>
318                     <effort>Max</effort>
319                     <threshold>Low</threshold>
320                     <goal>site</goal>
321                 </configuration>
322             </plugin>
323             <plugin>
324                 <groupId>org.codehaus.mojo</groupId>
325                 <artifactId>jdepend-maven-plugin</artifactId>
326                 <version>2.0-beta-2</version>
327             </plugin>
328         </plugins>
329     </reporting>
330 </project>