Merge "Remove auto-generated code from repo"
[alto.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3   <modelVersion>4.0.0</modelVersion>
4   <prerequisites>
5     <maven>3.0</maven>
6   </prerequisites>
7
8   <parent>
9     <groupId>org.opendaylight.odlparent</groupId>
10     <artifactId>odlparent</artifactId>
11     <version>1.6.0-SNAPSHOT</version>
12     <relativePath/>
13   </parent>
14
15   <groupId>org.opendaylight.alto</groupId>
16   <artifactId>alto-parent</artifactId>
17   <version>0.2.0-SNAPSHOT</version>
18   <name>alto</name> <!-- Used by Sonar to set project name -->
19   <packaging>pom</packaging>
20
21   <scm>
22     <connection>scm:git:ssh://git.opendaylight.org:29418/alto.git</connection>
23     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/alto.git</developerConnection>
24     <url>https://wiki.opendaylight.org/view/ALTO:Main</url>
25     <tag>HEAD</tag>
26   </scm>
27
28   <modules>
29     <module>alto-model</module>
30     <module>alto-config</module> <!-- required by alto-manager -->
31     <module>alto-provider</module>
32     <module>alto-hosttracker</module>
33     <module>features</module>
34     <module>alto-commons</module>
35     <module>alto-manager</module>
36     <module>alto-services/api</module>
37     <module>alto-services/provider</module>
38     <module>alto-extensions</module>
39     <module>alto-northbound</module>
40     <!-- <module>alto-karaf</module> -->
41   </modules>
42
43   <properties>
44     <odl.version>1.6.0-SNAPSHOT</odl.version>
45     <karaf.shell.version>2.2.11</karaf.shell.version>
46
47
48     <!-- required by alto command line -->
49     <httpclient.version>4.4.1</httpclient.version>
50
51     <ietf.model.version>2010.09.24.8-SNAPSHOT</ietf.model.version>
52     <ietf.yang.types.version>2013.07.15.8-SNAPSHOT</ietf.yang.types.version>
53     <restconf.version>1.3.0-SNAPSHOT</restconf.version>
54
55     <!-- used by yangtools, but the name is strange.
56          TODO: need more investigation -->
57     <config.version>0.4.0-SNAPSHOT</config.version>
58
59     <sal.version>0.10.0-SNAPSHOT</sal.version>
60     <war.version>${karaf.version}</war.version>
61     <mdsal.version>1.3.0-SNAPSHOT</mdsal.version>
62     <mdsal.model.version>0.8.0-SNAPSHOT</mdsal.model.version>
63     <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
64     <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
65
66     <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
67
68     <controller.checkstyle.version> <!-- checkstyle artifact of controller -->
69       0.2.0-SNAPSHOT
70     </controller.checkstyle.version>
71     <controller.commons.northbound.version> <!-- required by alto-northbound -->
72       0.6.0-SNAPSHOT
73     </controller.commons.northbound.version>
74     <l2switch.version>0.3.0-SNAPSHOT</l2switch.version>
75     <ietf.topology.version>2013.10.21.8-SNAPSHOT</ietf.topology.version>
76     <commons.catalina.version>7.0.53.v201406061610</commons.catalina.version>
77     <commons.coyote.version>7.0.53.v201406070630</commons.coyote.version>
78     <commons.juli.version>7.0.53.v201406060720</commons.juli.version>
79     <commons.tomcat.api.version>7.0.53.v201406060720</commons.tomcat.api.version>
80     <commons.tomcat.util.version>7.0.53.v201406070630</commons.tomcat.util.version>
81     <servlet.version>3.0.1</servlet.version>
82   </properties>
83
84   <dependencyManagement>
85     <dependencies>
86       <dependency>
87         <groupId>org.opendaylight.mdsal</groupId>
88         <artifactId>mdsal-artifacts</artifactId>
89         <version>2.0.0-SNAPSHOT</version>
90         <type>pom</type>
91         <scope>import</scope>
92       </dependency>
93       <dependency>
94         <groupId>org.opendaylight.mdsal.model</groupId>
95         <artifactId>mdsal-model-artifacts</artifactId>
96         <version>${mdsal.model.version}</version>
97         <type>pom</type>
98         <scope>import</scope>
99       </dependency>
100       <dependency>
101         <groupId>org.apache.httpcomponents</groupId>
102         <artifactId>httpclient-osgi</artifactId>
103         <version>${httpclient.version}</version>
104       </dependency>
105       <dependency>
106         <groupId>org.apache.httpcomponents</groupId>
107         <artifactId>httpcore-osgi</artifactId>
108         <version>${httpclient.version}</version>
109       </dependency>
110       <dependency>
111         <groupId>org.opendaylight.controller</groupId>
112         <artifactId>sal-binding-api</artifactId>
113         <version>${mdsal.version}</version>
114       </dependency>
115       <dependency>
116         <groupId>org.opendaylight.controller</groupId>
117         <artifactId>sal-binding-config</artifactId>
118         <version>${mdsal.version}</version>
119       </dependency>
120       <dependency>
121         <groupId>org.opendaylight.controller</groupId>
122         <artifactId>sal-common-util</artifactId>
123         <version>${mdsal.version}</version>
124       </dependency>
125       <dependency>
126         <groupId>com.googlecode.concurrent-trees</groupId>
127         <artifactId>concurrent-trees</artifactId>
128         <version>2.4.0</version>
129       </dependency>
130     </dependencies>
131   </dependencyManagement>
132
133   <build>
134     <pluginManagement>
135       <plugins>
136         <plugin> <!-- used by most projects -->
137           <groupId>org.opendaylight.yangtools</groupId>
138           <artifactId>yang-maven-plugin</artifactId>
139           <version>${yangtools.version}</version>
140         </plugin>
141
142         <plugin> <!-- global checkstyle -->
143           <groupId>org.apache.maven.plugins</groupId>
144           <artifactId>maven-checkstyle-plugin</artifactId>
145           <version>${checkstyle.version}</version>
146
147           <executions>
148             <execution>
149               <phase>process-sources</phase>
150               <goals>
151                 <goal>check</goal>
152               </goals>
153             </execution>
154           </executions>
155
156           <configuration>
157             <!-- TODO: remove before releasing -->
158             <failsOnError>true</failsOnError>
159             <configLocation>controller/checkstyle.xml</configLocation>
160             <consoleOutput>true</consoleOutput>
161             <includeTestSourceDirectory>true</includeTestSourceDirectory>
162             <sourceDirectory>${project.basedir}</sourceDirectory>
163             <excludes>**\/target\/,**\/bin\/,**\/third-party\/,**\/yang\/gen\/,**\/yang-gen-sal\/</excludes>
164           </configuration>
165
166           <dependencies>
167             <dependency>
168               <groupId>org.opendaylight.controller</groupId>
169               <artifactId>checkstyle</artifactId>
170               <version>${controller.checkstyle.version}</version>
171             </dependency>
172           </dependencies>
173         </plugin>
174
175         <plugin>
176           <groupId>org.jacoco</groupId>
177           <artifactId>jacoco-maven-plugin</artifactId>
178           <executions>
179             <execution>
180               <id>prepare-ut-agent</id>
181               <phase>process-test-classes</phase>
182               <goals>
183                 <goal>prepare-agent</goal>
184               </goals>
185               <configuration>
186                 <destFile>${sonar.jacoco.reportPath}</destFile>
187               </configuration>
188             </execution>
189             <execution>
190               <id>prepare-it-agent</id>
191               <phase>pre-integration-test</phase>
192               <goals>
193                 <goal>prepare-agent</goal>
194               </goals>
195               <configuration>
196                 <destFile>${sonar.jacoco.itReportPath}</destFile>
197               </configuration>
198             </execution>
199           </executions>
200         </plugin>
201       </plugins>
202     </pluginManagement>
203
204     <plugins>
205       <plugin>
206         <groupId>org.jacoco</groupId>
207         <artifactId>jacoco-maven-plugin</artifactId>
208       </plugin>
209     </plugins>
210   </build>
211 </project>