Reuse cardinality constants
[yangtools.git] / 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-lite</artifactId>
16       <version>1.7.1-SNAPSHOT</version>
17       <relativePath/>
18     </parent>
19
20     <modelVersion>4.0.0</modelVersion>
21     <groupId>org.opendaylight.yangtools</groupId>
22     <artifactId>yangtools-aggregator</artifactId>
23     <version>1.0.1-SNAPSHOT</version>
24     <name>yangtools</name> <!-- Used by Sonar to set project name -->
25     <packaging>pom</packaging>
26
27     <scm>
28         <connection>scm:git:ssh://git.opendaylight.org:29418/yangtools.git</connection>
29         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/yangtools.git</developerConnection>
30         <url>https://wiki.opendaylight.org/view/YANG_Tools:Main</url>
31         <tag>HEAD</tag>
32     </scm>
33
34     <modules>
35         <module>common</module>
36         <module>yang</module>
37         <module>websocket</module>
38         <module>yang-validation-tool</module>
39         <module>third-party</module>
40     </modules>
41
42     <profiles>
43       <profile>
44         <id>benchmarks</id>
45         <activation>
46           <activeByDefault>false</activeByDefault>
47         </activation>
48         <modules>
49           <module>benchmarks</module>
50         </modules>
51       </profile>
52
53       <profile>
54         <!--
55             This profile is to ensure we only build javadocs reports
56             when we plan to deploy Maven site for our project.
57         -->
58         <id>maven-site</id>
59         <activation>
60           <file>
61             <exists>${user.dir}/deploy-site.xml</exists>
62           </file>
63         </activation>
64
65         <build>
66           <plugins>
67             <plugin>
68               <groupId>org.apache.maven.plugins</groupId>
69               <artifactId>maven-javadoc-plugin</artifactId>
70               <inherited>false</inherited>
71               <executions>
72                 <execution>
73                   <id>aggregate</id>
74                   <goals>
75                     <goal>aggregate</goal>
76                   </goals>
77                   <phase>package</phase>
78                   <configuration>
79                     <!-- Xerces-J has non-compliant javadocs -->
80                     <additionalparam>-Xdoclint:none</additionalparam>
81                   </configuration>
82               </execution>
83               </executions>
84             </plugin>
85           </plugins>
86         </build>
87       </profile>
88     </profiles>
89
90     <build>
91         <pluginManagement>
92             <plugins>
93                 <plugin>
94                     <groupId>org.apache.maven.plugins</groupId>
95                     <artifactId>maven-checkstyle-plugin</artifactId>
96                     <dependencies>
97                         <dependency>
98                             <groupId>org.opendaylight.yangtools</groupId>
99                             <artifactId>checkstyle-logging</artifactId>
100                             <version>${project.version}</version>
101                         </dependency>
102                     </dependencies>
103                 </plugin>
104             </plugins>
105         </pluginManagement>
106     </build>
107
108   <!--
109       Maven Site Configuration
110
111       The following configuration is necessary for maven-site-plugin to
112       correctly identify the correct deployment path for OpenDaylight Maven
113       sites.
114   -->
115   <url>${odl.site.url}/${project.groupId}/${stream}/</url>
116
117   <distributionManagement>
118     <site>
119       <id>opendaylight-site</id>
120       <url>${nexus.site.url}/</url>
121     </site>
122   </distributionManagement>
123 </project>