b388a7376a10db1173085f45de397af8749a5510
[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                 <groupId>org.apache.maven.plugins</groupId>
155                 <artifactId>maven-javadoc-plugin</artifactId>
156                 <version>2.8.1</version>
157                 <configuration>
158                     <stylesheetfile>stylesheet.css</stylesheetfile>
159                 </configuration>
160                 <executions>
161                     <execution>
162                         <goals>
163                             <goal>aggregate</goal>
164                         </goals>
165                         <phase>site</phase>
166                     </execution> 
167                     <execution> 
168                         <id>attach-javadocs</id>
169                         <goals>
170                             <goal>jar</goal>
171                         </goals> 
172                     </execution> 
173                 </executions> 
174             </plugin>
175             <plugin>
176                 <artifactId>maven-source-plugin</artifactId>
177                 <executions>
178                     <execution>
179                         <id>attach-sources</id>
180                         <phase>deploy</phase>
181                         <goals>
182                             <goal>jar-no-fork</goal>
183                         </goals> 
184                     </execution>
185                 </executions>
186             </plugin>
187             <plugin> 
188                 <!-- explicitly define maven-deploy-plugin after other to force exec order -->
189                 <artifactId>maven-deploy-plugin</artifactId> 
190                 <executions> 
191                     <execution> 
192                         <id>deploy</id>
193                         <phase>deploy</phase>
194                         <goals>
195                             <goal>deploy</goal>
196                         </goals> 
197                     </execution> 
198                 </executions> 
199             </plugin> 
200             <plugin>
201               <groupId>org.apache.felix</groupId>
202               <artifactId>maven-bundle-plugin</artifactId>
203               <version>${maven.bundle.version}</version>
204               <extensions>true</extensions>
205               <configuration>
206                 <instructions>
207                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
208                 </instructions>
209                 <manifestLocation>${project.build.directory}/META-INF</manifestLocation>
210               </configuration>
211             </plugin>
212         </plugins>
213         <pluginManagement>
214             <plugins>
215                 <plugin>
216                     <groupId>org.apache.maven.plugins</groupId>
217                     <artifactId>maven-source-plugin</artifactId>
218                     <version>2.2.1</version>
219                 </plugin>
220                 <plugin>
221                     <groupId>org.apache.maven.plugins</groupId>
222                     <artifactId>maven-deploy-plugin</artifactId>
223                     <version>2.7</version>
224                 </plugin>
225                 <plugin>
226                     <groupId>org.apache.maven.plugins</groupId>
227                     <artifactId>maven-jar-plugin</artifactId>
228                     <version>2.4</version>
229                 </plugin>
230             </plugins>
231         </pluginManagement>
232     </build>
233     <reporting>
234         <plugins>
235             <plugin>
236                 <groupId>org.codehaus.mojo</groupId>
237                 <artifactId>findbugs-maven-plugin</artifactId>
238                 <version>2.5.2</version>
239                 <configuration>
240                     <effort>Max</effort>
241                     <threshold>Low</threshold>
242                     <goal>site</goal>
243                 </configuration>
244             </plugin>
245             <plugin>
246               <artifactId>maven-jxr-plugin</artifactId>
247               <version>2.3</version>
248               <configuration>
249                 <aggregate>true</aggregate>
250                 <linkJavadoc>true</linkJavadoc>
251               </configuration>
252             </plugin>
253
254             <plugin>
255                 <groupId>org.codehaus.mojo</groupId>
256                 <artifactId>jdepend-maven-plugin</artifactId>
257                 <version>2.0-beta-2</version>
258             </plugin>
259         </plugins>
260     </reporting>
261     <profiles>
262         <profile>
263             <id>viewbuild</id>
264             <activation>
265                 <activeByDefault>true</activeByDefault>
266             </activation>
267             <properties>
268                 <build.suffix>${project.version}</build.suffix>
269             </properties>
270         </profile>
271         <profile>
272             <id>jenkins</id>
273             <activation>
274                 <property>
275                     <name>BUILDSUFFIX</name>
276                 </property>
277             </activation>
278             <properties>
279                 <build.suffix>${BUILDSUFFIX}</build.suffix>
280             </properties>
281         </profile>
282         <profile>
283             <id>repoBuild</id>
284             <activation>
285                 <property><name>repoBuild</name></property>
286             </activation>
287             <build>
288                 <plugins>
289                     <plugin>
290                         <groupId>org.apache.maven.plugins</groupId>
291                         <artifactId>maven-javadoc-plugin</artifactId>
292                         <executions>
293                             <execution>
294                                 <id>attach-javadocs</id>
295                                 <goals>
296                                     <goal>jar</goal>
297                                 </goals>
298                             </execution>
299                         </executions>
300                     </plugin>
301                     <plugin>
302                         <groupId>org.apache.maven.plugins</groupId>
303                         <artifactId>maven-source-plugin</artifactId>
304                         <executions>
305                             <execution>
306                                 <id>attach-sources</id>
307                                 <goals>
308                                     <goal>jar</goal>
309                                 </goals>
310                             </execution>
311                         </executions>
312                     </plugin>
313                 </plugins>
314             </build>
315         </profile>
316     </profiles>
317 </project>