Revert "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-release</id>
155             <url>${nexusproxy}/repositories/opendaylight.release/</url>
156         </repository>
157         <!-- OpenDayLight Snapshot artifact -->
158         <snapshotRepository>
159             <id>opendaylight-snapshot</id>
160             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
161         </snapshotRepository>
162         <site>
163             <id>${project.artifactId}-site</id>
164             <url>./</url>
165         </site>
166     </distributionManagement>
167
168     <build>
169         <pluginManagement>
170             <plugins>
171                 <plugin>
172                     <groupId>org.apache.maven.plugins</groupId>
173                     <artifactId>maven-jar-plugin</artifactId>
174                     <version>${maven.jar.version}</version>
175                     <configuration>
176                         <archive>
177                             <!-- Bundle OSGi Manifest created by maven-bundle-plugin 
178                                 into jar file -->
179                             <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
180                         </archive>
181                     </configuration>
182                 </plugin>
183                 <plugin>
184                     <groupId>org.apache.felix</groupId>
185                     <artifactId>maven-bundle-plugin</artifactId>
186                     <version>${maven.bundle.version}</version>
187                     <extensions>true</extensions>
188                     <executions>
189                         <execution>
190                             <id>bundle-manifest</id>
191                             <phase>process-classes</phase>
192                             <goals>
193                                 <goal>manifest</goal>
194                             </goals>
195                         </execution>
196                     </executions>
197                     <configuration>
198                         <instructions>
199                             <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
200                             <Export-Package>*</Export-Package>
201                         </instructions>
202                     </configuration>
203                 </plugin>
204                 <plugin>
205                     <groupId>org.eclipse.xtend</groupId>
206                     <artifactId>xtend-maven-plugin</artifactId>
207                     <version>${xtend.version}</version>
208                     <executions>
209                         <execution>
210                             <goals>
211                                 <goal>compile</goal>
212                             </goals>
213                             <configuration>
214                                 <outputDirectory>${basedir}/src/main/xtend-gen</outputDirectory>
215                             </configuration>
216                         </execution>
217                     </executions>
218                 </plugin>
219                 <plugin>
220                     <artifactId>maven-clean-plugin</artifactId>
221                     <version>2.5</version>
222                     <configuration>
223                         <filesets>
224                             <fileset>
225                                 <directory>${basedir}/src/main/xtend-gen</directory>
226                                 <includes>
227                                     <include>**</include>
228                                 </includes>
229                             </fileset>
230                         </filesets>
231                     </configuration>
232                 </plugin>
233                 <plugin>
234                     <groupId>org.eclipse.m2e</groupId>
235                     <artifactId>lifecycle-mapping</artifactId>
236                     <version>1.0.0</version>
237                     <configuration>
238                         <lifecycleMappingMetadata>
239                             <pluginExecutions>
240                                 <pluginExecution>
241                                     <pluginExecutionFilter>
242                                         <groupId>org.apache.felix</groupId>
243                                         <artifactId>maven-bundle-plugin</artifactId>
244                                         <versionRange>[1.0,)</versionRange>
245                                         <goals>
246                                             <goal>manifest</goal>
247                                         </goals>
248                                     </pluginExecutionFilter>
249                                     <action>
250                                         <execute />
251                                     </action>
252                                 </pluginExecution>
253                             </pluginExecutions>
254                         </lifecycleMappingMetadata>
255                     </configuration>
256                 </plugin>
257                 <plugin>
258                     <groupId>org.apache.maven.plugins</groupId>
259                     <artifactId>maven-javadoc-plugin</artifactId>
260                     <version>${maven.javadoc.version}</version>
261                     <configuration>
262                         <stylesheetfile>stylesheet.css</stylesheetfile>
263                     </configuration>
264                     <executions>
265                         <execution>
266                             <id>attach-javadocs</id>
267                             <goals>
268                                 <goal>jar</goal>
269                             </goals>
270                         </execution>
271                         <execution>
272                             <goals>
273                                 <goal>aggregate</goal>
274                             </goals>
275                             <phase>site</phase>
276                         </execution>
277                     </executions>
278                 </plugin>
279                 <plugin>
280                     <groupId>org.apache.maven.plugins</groupId>
281                     <artifactId>maven-release-plugin</artifactId>
282                     <version>${maven.release.version}</version>
283                 </plugin>
284             </plugins>
285         </pluginManagement>
286         <plugins>
287             <plugin>
288                 <groupId>org.apache.maven.plugins</groupId>
289                 <artifactId>maven-jar-plugin</artifactId>
290             </plugin>
291             <plugin>
292                 <groupId>org.apache.felix</groupId>
293                 <artifactId>maven-bundle-plugin</artifactId>
294             </plugin>
295             <plugin>
296                 <groupId>org.apache.maven.plugins</groupId>
297                 <artifactId>maven-source-plugin</artifactId>
298                 <version>${maven.source.version}</version>
299                 <executions>
300                     <execution>
301                         <id>attach-sources</id>
302                         <goals>
303                             <goal>jar</goal>
304                         </goals>
305                     </execution>
306                 </executions>
307             </plugin>
308             <plugin>
309                 <groupId>org.apache.maven.plugins</groupId>
310                 <artifactId>maven-javadoc-plugin</artifactId>
311             </plugin>
312         </plugins>
313     </build>
314
315     <reporting>
316         <plugins>
317             <plugin>
318                 <groupId>org.codehaus.mojo</groupId>
319                 <artifactId>findbugs-maven-plugin</artifactId>
320                 <version>2.5.3</version>
321                 <configuration>
322                     <effort>Max</effort>
323                     <threshold>Low</threshold>
324                     <goal>site</goal>
325                 </configuration>
326             </plugin>
327             <plugin>
328                 <groupId>org.codehaus.mojo</groupId>
329                 <artifactId>jdepend-maven-plugin</artifactId>
330                 <version>2.0-beta-2</version>
331             </plugin>
332         </plugins>
333     </reporting>
334 </project>