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