Removed 'code-generator' and 'model' projects.
[controller.git] / opendaylight / sal / yang-prototype / 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     <groupId>org.opendaylight.controller</groupId>
6     <artifactId>yang-prototype</artifactId>
7     <version>0.5-SNAPSHOT</version>
8     <packaging>pom</packaging>
9     <name>${project.artifactId}</name>
10     <description>
11         yang-prototype
12     </description>
13
14     <modules>
15         <module>concepts-lang</module>
16     </modules>
17
18     <properties>
19         <yangtools.version>0.5.5-SNAPSHOT</yangtools.version>
20         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
21         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
22         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
23         <siteplugin>3.2</siteplugin>
24         <defaultStylesheet>${project.basedir}/src/site/resources/stylesheet.css</defaultStylesheet>
25         <projectinfo>2.6</projectinfo>
26         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
27         <compiler.version>2.3.2</compiler.version>
28         <surefire.version>2.13</surefire.version>
29         <exam.version>3.0.0</exam.version>
30         <url.version>1.5.0</url.version>
31         <enunciate.version>1.26.2</enunciate.version>
32         <sonar.branch>${user.name}-private-view</sonar.branch>
33         <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
34         <logback.version>1.0.9</logback.version>
35         <slf4j.version>1.7.2</slf4j.version>
36     </properties>
37
38     <pluginRepositories>
39         <pluginRepository>
40             <id>central2</id>
41             <name>central2</name>
42             <url>${nexusproxy}/repositories/central2/</url>
43         </pluginRepository>
44         <pluginRepository>
45             <id>opendaylight.snapshot</id>
46             <name>opendaylight.snapshot</name>
47             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
48         </pluginRepository>
49     </pluginRepositories>
50
51
52     <repositories>
53         <!-- EBR release -->
54         <!-- http://repository.springsource.com/maven/bundles/release -->
55         <repository>
56             <id>ebr-bundles-release</id>
57             <name>ebr-bundles-release</name>
58             <url>${nexusproxy}/repositories/ebr-bundles-release/</url>
59         </repository>
60         <!-- EBR external -->
61         <!-- http://repository.springsource.com/maven/bundles/external -->
62         <repository>
63             <id>ebr-bundles-external</id>
64             <name>ebr-bundles-external</name>
65             <url>${nexusproxy}/repositories/ebr-bundles-external/</url>
66         </repository>
67         <!-- Maven repo2 mirror -->
68         <!-- http://repo2.maven.org/maven2 -->
69         <repository>
70             <id>central2</id>
71             <name>central2</name>
72             <url>${nexusproxy}/repositories/central2/</url>
73         </repository>
74         <!-- Maven repo1 mirror -->
75         <!-- http://repo1.maven.org/maven2 -->
76         <repository>
77             <id>central</id>
78             <name>central</name>
79             <url>${nexusproxy}/repositories/central/</url>
80         </repository>
81         <!-- Pax mirror -->
82         <!-- https://oss.sonatype.org/content/repositories/ops4j-releases -->
83         <repository>
84             <id>ops4j-releases</id>
85             <name>ops4j-releases</name>
86             <url>${nexusproxy}/repositories/ops4j-releases/</url>
87         </repository>
88         <!-- Third Packages hosted in local maven because not available in 
89             other places -->
90         <repository>
91             <id>thirdparty</id>
92             <name>thirdparty</name>
93             <url>${nexusproxy}/repositories/thirdparty/</url>
94         </repository>
95         <!-- Jboss mirror -->
96         <!-- https://repository.jboss.org/nexus/content/repositories/releases -->
97         <repository>
98             <id>jboss.releases</id>
99             <name>jboss.releases</name>
100             <url>${nexusproxy}/repositories/jboss.releases/</url>
101         </repository>
102         <!-- OpenDayLight Released artifact -->
103         <repository>
104             <id>opendaylight-release</id>
105             <name>opendaylight-release</name>
106             <url>${nexusproxy}/repositories/opendaylight.release/</url>
107         </repository>
108         <!-- OpenDayLight Snapshot artifact -->
109         <repository>
110             <id>opendaylight-snapshot</id>
111             <name>opendaylight-snapshot</name>
112             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
113         </repository>
114     </repositories>
115
116     <distributionManagement>
117         <!-- OpenDayLight Released artifact -->
118         <repository>
119             <id>opendaylight-release</id>
120             <url>${nexusproxy}/repositories/opendaylight.release/</url>
121         </repository>
122         <!-- OpenDayLight Snapshot artifact -->
123         <snapshotRepository>
124             <id>opendaylight-snapshot</id>
125             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
126         </snapshotRepository>
127         <site>
128             <id>${project.artifactId}-site</id>
129             <url>./</url>
130         </site>
131     </distributionManagement>
132
133     <dependencyManagement>
134         <dependencies>
135             <dependency>
136                 <groupId>junit</groupId>
137                 <artifactId>junit</artifactId>
138                 <version>4.10</version>
139                 <scope>test</scope>
140                 <optional>true</optional>
141             </dependency>
142             <dependency>
143                 <groupId>org.slf4j</groupId>
144                 <artifactId>slf4j-api</artifactId>
145                 <version>1.7.2</version>
146             </dependency>
147         </dependencies>
148     </dependencyManagement>
149
150     <build>
151         <plugins>
152             <plugin>
153                 <groupId>org.apache.maven.plugins</groupId>
154                 <artifactId>maven-compiler-plugin</artifactId>
155                 <version>${compiler.version}</version>
156                 <inherited>true</inherited>
157                 <configuration>
158                     <source>1.7</source>
159                     <target>1.7</target>
160                 </configuration>
161             </plugin>
162             <plugin>
163                 <artifactId>maven-source-plugin</artifactId>
164                 <executions>
165                     <execution>
166                         <id>attach-sources</id>
167                         <phase>deploy</phase>
168                         <goals>
169                             <goal>jar-no-fork</goal>
170                         </goals>
171                     </execution>
172                 </executions>
173             </plugin>
174             <plugin>
175                 <!-- explicitly define maven-deploy-plugin after other to 
176                     force exec order -->
177                 <artifactId>maven-deploy-plugin</artifactId>
178                 <executions>
179                     <execution>
180                         <id>deploy</id>
181                         <phase>deploy</phase>
182                         <goals>
183                             <goal>deploy</goal>
184                         </goals>
185                     </execution>
186                 </executions>
187             </plugin>
188
189             <plugin>
190                 <groupId>org.apache.maven.plugins</groupId>
191                 <artifactId>maven-javadoc-plugin</artifactId>
192                 <configuration>
193                     <stylesheetfile>${defaultStylesheet}</stylesheetfile>
194                     <excludePackageNames>
195                         *.opendaylight.controller.antlrv4.code.gen
196                     </excludePackageNames>
197                 </configuration>
198                 <executions>
199                     <execution>
200                         <id>aggregate</id>
201                         <goals>
202                             <goal>aggregate</goal>
203                         </goals>
204                         <phase>site</phase>
205                     </execution>
206                     <execution>
207                         <id>attach-javadocs</id>
208                         <phase>deploy</phase>
209                         <goals>
210                             <goal>jar</goal>
211                         </goals>
212                     </execution>
213                 </executions>
214             </plugin>
215
216             <plugin>
217                 <groupId>org.apache.maven.plugins</groupId>
218                 <artifactId>maven-site-plugin</artifactId>
219                 <inherited>false</inherited>
220                 <dependencies>
221                     <dependency>
222                         <groupId>org.apache.maven.doxia</groupId>
223                         <artifactId>doxia-module-markdown</artifactId>
224                         <version>1.3</version>
225                     </dependency>
226                 </dependencies>
227                 <configuration>
228                     <siteDirectory>${project.basedir}/src/site</siteDirectory>
229                     <inputEncoding>UTF-8</inputEncoding>
230                     <outputEncoding>UTF-8</outputEncoding>
231                 </configuration>
232             </plugin>
233         </plugins>
234
235         <pluginManagement>
236             <plugins>
237                 <plugin>
238                     <groupId>org.apache.maven.plugins</groupId>
239                     <artifactId>maven-source-plugin</artifactId>
240                     <version>2.2.1</version>
241                 </plugin>
242                 <plugin>
243                     <groupId>org.apache.maven.plugins</groupId>
244                     <artifactId>maven-deploy-plugin</artifactId>
245                     <version>2.7</version>
246                 </plugin>
247                 <plugin>
248                     <groupId>org.apache.maven.plugins</groupId>
249                     <artifactId>maven-surefire-plugin</artifactId>
250                     <version>2.15</version>
251                 </plugin>
252                 <plugin>
253                     <groupId>org.apache.maven.plugins</groupId>
254                     <artifactId>maven-site-plugin</artifactId>
255                     <dependencies>
256                         <dependency>
257                             <groupId>org.apache.maven.doxia</groupId>
258                             <artifactId>doxia-module-markdown</artifactId>
259                             <version>1.3</version>
260                         </dependency>
261                     </dependencies>
262                     <configuration>
263                         <siteDirectory>${project.parent.basedir}/src/site</siteDirectory>
264                         <inputEncoding>UTF-8</inputEncoding>
265                         <outputEncoding>UTF-8</outputEncoding>
266                     </configuration>
267                 </plugin>
268                 <plugin>
269                     <groupId>org.apache.maven.plugins</groupId>
270                     <artifactId>maven-javadoc-plugin</artifactId>
271                     <version>2.9.1</version>
272                     <configuration>
273                         <stylesheetfile>${defaultStylesheet}</stylesheetfile>
274                     </configuration>
275                     <executions>
276                         <execution>
277                             <id>aggregate</id>
278                             <goals>
279                                 <goal>aggregate</goal>
280                             </goals>
281                             <phase>site</phase>
282                         </execution>
283                         <execution>
284                             <id>attach-javadocs</id>
285                             <phase>deploy</phase>
286                             <goals>
287                                 <goal>jar</goal>
288                             </goals>
289                         </execution>
290                     </executions>
291                 </plugin>
292             </plugins>
293         </pluginManagement>
294
295     </build>
296
297     <reporting>
298         <plugins>
299             <plugin>
300                 <groupId>org.apache.maven.plugins</groupId>
301                 <artifactId>maven-javadoc-plugin</artifactId>
302                 <version>2.9.1</version>
303                 <reportSets>
304                     <reportSet>
305                         <reports>
306                             <report>javadoc</report>
307                         </reports>
308                     </reportSet>
309                 </reportSets>
310             </plugin>
311             <plugin>
312                 <groupId>org.codehaus.mojo</groupId>
313                 <artifactId>findbugs-maven-plugin</artifactId>
314                 <version>2.4.0</version>
315                 <configuration>
316                     <effort>Max</effort>
317                     <threshold>Low</threshold>
318                     <goal>site</goal>
319                 </configuration>
320             </plugin>
321             <plugin>
322                 <groupId>org.codehaus.mojo</groupId>
323                 <artifactId>jdepend-maven-plugin</artifactId>
324                 <version>2.0-beta-2</version>
325             </plugin>
326         </plugins>
327     </reporting>
328
329     <profiles>
330         <profile>
331             <id>viewbuild</id>
332             <activation>
333                 <activeByDefault>true</activeByDefault>
334             </activation>
335             <properties>
336                 <build.suffix>${project.version}</build.suffix>
337             </properties>
338         </profile>
339         <profile>
340             <id>jenkins</id>
341             <activation>
342                 <property>
343                     <name>BUILDSUFFIX</name>
344                 </property>
345             </activation>
346             <properties>
347                 <build.suffix>${BUILDSUFFIX}</build.suffix>
348             </properties>
349         </profile>
350     </profiles>
351
352 </project>