99fed57c1f8258673e7f9b16e2da77f3f75dfaf1
[openflowjava.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     <modelVersion>4.0.0</modelVersion>
4     <groupId>org.opendaylight.openflowjava</groupId>
5     <artifactId>openflow-protocol-parent</artifactId>
6     <version>0.1-SNAPSHOT</version>
7     <packaging>pom</packaging>
8     <modules>
9         <module>openflow-protocol-api</module>
10         <module>openflow-protocol-spi</module>
11         <module>openflow-protocol-impl</module>
12         <module>openflow-protocol-it</module>
13         <module>simple-client</module>
14         <module>third-party/openflow-codec</module>
15         <module>third-party/openflowj_netty</module>
16     </modules>
17
18     <properties>
19         <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
20         <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
21         <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
22         <siteplugin>3.2</siteplugin>
23         <projectinfo>2.6</projectinfo>
24         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
25         <compiler.version>2.3.2</compiler.version>
26         <surefire.version>2.13</surefire.version>
27         <exam.version>3.0.0</exam.version>
28         <url.version>1.5.0</url.version>
29         <enunciate.version>1.26.2</enunciate.version>
30         <sonar.branch>${user.name}-private-view</sonar.branch>
31         <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
32         <logback.version>1.0.9</logback.version>
33         <slf4j.version>1.7.5</slf4j.version>
34         <yang.prototype.version>1.0-SNAPSHOT</yang.prototype.version>
35         <maven.bundle.version>2.4.0</maven.bundle.version>
36         <guava.version>14.0.1</guava.version> 
37         <netty.version>4.0.10.Final</netty.version>
38     </properties>
39
40     <pluginRepositories>
41         <pluginRepository>
42             <id>odlPublic</id>
43             <name>odlPublic</name>
44             <url>${nexusproxy}/groups/public/</url>
45             <snapshots>
46               <enabled>false</enabled>
47             </snapshots>
48         </pluginRepository>
49        <pluginRepository>
50             <id>opendaylight-release</id>
51             <url>${nexusproxy}/repositories/opendaylight.release/</url>
52             <snapshots>
53               <enabled>false</enabled>
54             </snapshots>
55         </pluginRepository>
56         <!-- OpenDayLight Snapshot artifact -->
57         <pluginRepository>
58             <id>opendaylight-snapshot</id>
59             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
60             <releases>
61               <enabled>false</enabled>
62             </releases>
63         </pluginRepository>
64     </pluginRepositories>
65
66
67     <repositories>
68         <!-- Opendaylight public group -->
69         <repository>
70             <id>odlPublic</id>
71             <name>odlPublic</name>
72             <url>${nexusproxy}/groups/public/</url>
73             <snapshots>
74               <enabled>false</enabled>
75             </snapshots>
76         </repository>
77         <!-- OpenDayLight Released artifact -->
78         <repository>
79             <id>opendaylight-release</id>
80             <name>opendaylight-release</name>
81             <url>${nexusproxy}/repositories/opendaylight.release/</url>
82             <snapshots>
83               <enabled>false</enabled>
84             </snapshots>
85         </repository>
86         <!-- OpenDayLight Snapshot artifact -->
87         <repository>
88             <id>opendaylight-snapshot</id>
89             <name>opendaylight-snapshot</name>
90             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
91             <releases>
92               <enabled>false</enabled>
93             </releases>
94         </repository>
95     </repositories>
96     <distributionManagement>
97         <!-- OpenDayLight Released artifact -->
98         <repository>
99             <id>opendaylight-release</id>
100             <url>${nexusproxy}/repositories/opendaylight.release/</url>
101         </repository>
102         <!-- OpenDayLight Snapshot artifact -->
103         <snapshotRepository>
104             <id>opendaylight-snapshot</id>
105             <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
106         </snapshotRepository>
107         <!-- Site deployment -->
108         <!-- site>
109             <id>website</id>
110             <url>${sitedeploy}</url>
111         </site -->
112     </distributionManagement>
113
114
115     <dependencyManagement>
116         <dependencies>
117             <dependency>
118                 <groupId>junit</groupId>
119                 <artifactId>junit</artifactId>
120                 <version>4.10</version>
121                 <scope>test</scope>
122                 <optional>true</optional>
123             </dependency>
124             <dependency>
125                 <groupId>org.slf4j</groupId>
126                 <artifactId>slf4j-api</artifactId>
127                 <version>${slf4j.version}</version>
128             </dependency>
129             <dependency>
130                 <groupId>io.netty</groupId>
131                 <artifactId>netty-handler</artifactId>
132                 <version>${netty.version}</version>
133             </dependency>
134             <dependency>
135             <groupId>com.google.guava</groupId>
136             <artifactId>guava</artifactId>
137             <version>${guava.version}</version>
138         </dependency>
139         </dependencies>
140     </dependencyManagement>
141     <build>
142         <plugins>
143             <plugin>
144                 <groupId>org.apache.maven.plugins</groupId>
145                 <artifactId>maven-compiler-plugin</artifactId>
146                 <version>${compiler.version}</version>
147                 <inherited>true</inherited>
148                 <configuration>
149                     <source>1.7</source>
150                     <target>1.7</target>
151                 </configuration>
152             </plugin>
153             <plugin>
154                 <artifactId>maven-source-plugin</artifactId>
155                 <executions>
156                     <execution>
157                         <id>attach-sources</id>
158                         <phase>deploy</phase>
159                         <goals>
160                             <goal>jar-no-fork</goal>
161                         </goals> 
162                     </execution>
163                 </executions>
164             </plugin>
165             <plugin> 
166                 <!-- explicitly define maven-deploy-plugin after other to force exec order -->
167                 <artifactId>maven-deploy-plugin</artifactId> 
168                 <executions> 
169                     <execution> 
170                         <id>deploy</id>
171                         <phase>deploy</phase>
172                         <goals>
173                             <goal>deploy</goal>
174                         </goals> 
175                     </execution> 
176                 </executions> 
177             </plugin> 
178             <plugin>
179               <groupId>org.apache.felix</groupId>
180               <artifactId>maven-bundle-plugin</artifactId>
181               <version>${maven.bundle.version}</version>
182               <extensions>true</extensions>
183               <configuration>
184                 <instructions>
185                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
186                 </instructions>
187                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
188               </configuration>
189             </plugin>
190         </plugins>
191         <pluginManagement>
192             <plugins>
193                 <plugin>
194                     <groupId>org.apache.maven.plugins</groupId>
195                     <artifactId>maven-source-plugin</artifactId>
196                     <version>2.2.1</version>
197                 </plugin>
198                 <plugin>
199                     <groupId>org.apache.maven.plugins</groupId>
200                     <artifactId>maven-deploy-plugin</artifactId>
201                     <version>2.7</version>
202                 </plugin>
203                 <plugin>
204                     <groupId>org.apache.maven.plugins</groupId>
205                     <artifactId>maven-jar-plugin</artifactId>
206                     <version>2.4</version>
207                 </plugin>
208             </plugins>
209         </pluginManagement>
210     </build>
211     <reporting>
212         <plugins>
213             <plugin>
214                 <groupId>org.codehaus.mojo</groupId>
215                 <artifactId>findbugs-maven-plugin</artifactId>
216                 <version>2.5.2</version>
217                 <configuration>
218                     <effort>Max</effort>
219                     <threshold>Low</threshold>
220                     <goal>site</goal>
221                 </configuration>
222             </plugin>
223             <plugin>
224               <artifactId>maven-jxr-plugin</artifactId>
225               <version>2.3</version>
226               <configuration>
227                 <aggregate>true</aggregate>
228                 <linkJavadoc>true</linkJavadoc>
229               </configuration>
230             </plugin>
231
232             <plugin>
233                 <groupId>org.codehaus.mojo</groupId>
234                 <artifactId>jdepend-maven-plugin</artifactId>
235                 <version>2.0-beta-2</version>
236             </plugin>
237         </plugins>
238     </reporting>
239     <profiles>
240         <profile>
241             <id>viewbuild</id>
242             <activation>
243                 <activeByDefault>true</activeByDefault>
244             </activation>
245             <properties>
246                 <build.suffix>${project.version}</build.suffix>
247             </properties>
248         </profile>
249         <profile>
250             <id>jenkins</id>
251             <activation>
252                 <property>
253                     <name>BUILDSUFFIX</name>
254                 </property>
255             </activation>
256             <properties>
257                 <build.suffix>${BUILDSUFFIX}</build.suffix>
258             </properties>
259         </profile>
260         <profile>
261             <id>repoBuild</id>
262             <build>
263                 <plugins>
264                     <plugin>
265                         <groupId>org.apache.maven.plugins</groupId>
266                         <artifactId>maven-javadoc-plugin</artifactId>
267                         <version>2.8.1</version>
268                         <executions>
269                             <execution>
270                                 <goals>
271                                     <goal>aggregate</goal>
272                                 </goals>
273                                 <phase>site</phase>
274                             </execution>
275                             <execution>
276                                 <id>attach-javadocs</id>
277                                 <goals>
278                                     <goal>jar</goal>
279                                 </goals>
280                             </execution>
281                         </executions>
282                     </plugin>
283                     <plugin>
284                         <groupId>org.apache.maven.plugins</groupId>
285                         <artifactId>maven-source-plugin</artifactId>
286                         <executions>
287                             <execution>
288                                 <id>attach-sources</id>
289                                 <phase>package</phase>
290                                 <goals>
291                                     <goal>jar-no-fork</goal>
292                                 </goals>
293                             </execution>
294                         </executions>
295                     </plugin>
296                 </plugins>
297             </build>
298         </profile>
299     </profiles>
300 </project>