Bug 5396: Regex processing of yang models is broken.
[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.yangtools</groupId>
15       <artifactId>yangtools-parent</artifactId>
16       <version>0.8.2-SNAPSHOT</version>
17       <relativePath>common/parent</relativePath>
18     </parent>
19
20     <modelVersion>4.0.0</modelVersion>
21     <artifactId>yangtools-aggregator</artifactId>
22     <name>yangtools</name> <!-- Used by Sonar to set project name -->
23     <packaging>pom</packaging>
24
25     <scm>
26         <connection>scm:git:ssh://git.opendaylight.org:29418/yangtools.git</connection>
27         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/yangtools.git</developerConnection>
28         <url>https://wiki.opendaylight.org/view/YANG_Tools:Main</url>
29         <tag>HEAD</tag>
30     </scm>
31
32     <modules>
33         <module>common</module>
34         <module>yang</module>
35         <module>websocket</module>
36         <module>yang-validation-tool</module>
37     </modules>
38
39     <profiles>
40       <profile>
41         <id>benchmarks</id>
42         <activation>
43           <activeByDefault>false</activeByDefault>
44         </activation>
45         <modules>
46           <module>benchmarks</module>
47         </modules>
48       </profile>
49
50       <!-- Turn off doclint on aggregated API javadoc build -->
51       <profile>
52         <id>jdk8</id>
53         <activation>
54           <jdk>[1.8,)</jdk>
55         </activation>
56         <properties>
57           <javadoc.args>-Xdoclint:none</javadoc.args>
58         </properties>
59       </profile>
60
61       <profile>
62         <!--
63             This profile is to ensure we only build javadocs reports
64             when we plan to deploy Maven site for our project.
65         -->
66         <id>maven-site</id>
67         <activation>
68           <file>
69             <exists>${user.dir}/deploy-site.xml</exists>
70           </file>
71         </activation>
72
73         <build>
74           <plugins>
75             <plugin>
76               <groupId>org.apache.maven.plugins</groupId>
77               <artifactId>maven-javadoc-plugin</artifactId>
78               <inherited>false</inherited>
79               <executions>
80                 <execution>
81                   <id>aggregate</id>
82                   <goals>
83                     <goal>aggregate</goal>
84                   </goals>
85                   <phase>package</phase>
86                   <configuration>
87                     <!-- ignore javadoc warnings caused by JDK8 -->
88                     <additionalparam>${javadoc.args}</additionalparam>
89                   </configuration>
90               </execution>
91               </executions>
92             </plugin>
93           </plugins>
94         </build>
95       </profile>
96     </profiles>
97
98     <build>
99         <pluginManagement>
100             <plugins>
101                 <plugin>
102                  <groupId>org.apache.maven.plugins</groupId>
103                  <artifactId>maven-checkstyle-plugin</artifactId>
104                  <configuration>
105                    <failOnViolation>false</failOnViolation>
106                    <configLocation>checkstyle-logging.xml</configLocation>
107                    <consoleOutput>true</consoleOutput>
108                    <includeTestSourceDirectory>true</includeTestSourceDirectory>
109                    <sourceDirectory>${project.basedir}</sourceDirectory>
110                    <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
111                    <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/,**\/src/main/xtend-gen\/</excludes>
112                  </configuration>
113                  <dependencies>
114                    <dependency>
115                      <groupId>org.opendaylight.yangtools</groupId>
116                      <artifactId>checkstyle-logging</artifactId>
117                      <version>${project.version}</version>
118                    </dependency>
119                  </dependencies>
120                  <executions>
121                    <execution>
122                      <goals>
123                        <goal>check</goal>
124                      </goals>
125                    </execution>
126                  </executions>
127                </plugin>
128             </plugins>
129         </pluginManagement>
130     </build>
131
132   <!--
133       Maven Site Configuration
134
135       The following configuration is necessary for maven-site-plugin to
136       correctly identify the correct deployment path for OpenDaylight Maven
137       sites.
138   -->
139   <url>${odl.site.url}/${project.groupId}/${stream}/</url>
140
141   <distributionManagement>
142     <site>
143       <id>opendaylight-site</id>
144       <url>${nexus.site.url}/</url>
145     </site>
146   </distributionManagement>
147 </project>