98366c5f88ee477d2c11f1cfd8d56e85377a6eee
[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.openflow</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>third-party/openflow-codec</module>
13         <module>third-party/openflowj_netty</module>
14         </modules>
15
16         <name>Openflow Protocol Library</name>
17
18         <developers>
19                 <developer>
20                         <name>Adam BrĨek</name>
21                         <email>adam.brcek@pantheon.sk</email>
22                 </developer>
23         </developers>
24
25
26         <properties>
27                 <sonar.host.url>https://sonar.opendaylight.org/</sonar.host.url>
28                 <nexusproxy>http://nexus.opendaylight.org/content</nexusproxy>
29                 <sitedeploy>dav:http://nexus.opendaylight.org/content/sites/site</sitedeploy>
30                 <siteplugin>3.2</siteplugin>
31                 <projectinfo>2.6</projectinfo>
32                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
33                 <compiler.version>2.3.2</compiler.version>
34                 <surefire.version>2.13</surefire.version>
35                 <exam.version>3.0.0</exam.version>
36                 <url.version>1.5.0</url.version>
37                 <enunciate.version>1.26.2</enunciate.version>
38                 <sonar.branch>${user.name}-private-view</sonar.branch>
39                 <sonar.skippedModules>org.openflow.openflowj,net.sf.jung2</sonar.skippedModules>
40                 <logback.version>1.0.9</logback.version>
41                 <slf4j.version>1.7.2</slf4j.version>
42         </properties>
43
44         <pluginRepositories>
45                 <pluginRepository>
46                         <id>central2</id>
47                         <name>central2</name>
48                         <url>${nexusproxy}/repositories/central2/</url>
49                 </pluginRepository>
50                 
51                 <!-- OpenDayLight Released artifact -->
52                 <pluginRepository>
53                         <id>opendaylight-release</id>
54                         <name>opendaylight-release</name>
55                         <url>${nexusproxy}/repositories/opendaylight.release/</url>
56                 </pluginRepository>
57                 <!-- OpenDayLight Snapshot artifact -->
58                 <pluginRepository>
59                         <id>opendaylight-snapshot</id>
60                         <name>opendaylight-snapshot</name>
61                         <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
62                 </pluginRepository>
63         </pluginRepositories>
64
65
66         <repositories>
67                 <!-- EBR release -->
68                 <!-- http://repository.springsource.com/maven/bundles/release -->
69                 <repository>
70                         <id>ebr-bundles-release</id>
71                         <name>ebr-bundles-release</name>
72                         <url>${nexusproxy}/repositories/ebr-bundles-release/</url>
73                 </repository>
74                 <!-- EBR external -->
75                 <!-- http://repository.springsource.com/maven/bundles/external -->
76                 <repository>
77                         <id>ebr-bundles-external</id>
78                         <name>ebr-bundles-external</name>
79                         <url>${nexusproxy}/repositories/ebr-bundles-external/</url>
80                 </repository>
81                 <!-- Maven repo2 mirror -->
82                 <!-- http://repo2.maven.org/maven2 -->
83                 <repository>
84                         <id>central2</id>
85                         <name>central2</name>
86                         <url>${nexusproxy}/repositories/central2/</url>
87                 </repository>
88                 <!-- Maven repo1 mirror -->
89                 <!-- http://repo1.maven.org/maven2 -->
90                 <repository>
91                         <id>central</id>
92                         <name>central</name>
93                         <url>${nexusproxy}/repositories/central/</url>
94                 </repository>
95                 <!-- Pax mirror -->
96                 <!-- https://oss.sonatype.org/content/repositories/ops4j-releases -->
97                 <repository>
98                         <id>ops4j-releases</id>
99                         <name>ops4j-releases</name>
100                         <url>${nexusproxy}/repositories/ops4j-releases/</url>
101                 </repository>
102                 <!-- Third Packages hosted in local maven because not available in other 
103                         places -->
104                 <repository>
105                         <id>thirdparty</id>
106                         <name>thirdparty</name>
107                         <url>${nexusproxy}/repositories/thirdparty/</url>
108                 </repository>
109                 <!-- Jboss mirror -->
110                 <!-- https://repository.jboss.org/nexus/content/repositories/releases -->
111                 <repository>
112                         <id>jboss.releases</id>
113                         <name>jboss.releases</name>
114                         <url>${nexusproxy}/repositories/jboss.releases/</url>
115                 </repository>
116                 <!-- OpenDayLight Released artifact -->
117                 <repository>
118                         <id>opendaylight-release</id>
119                         <name>opendaylight-release</name>
120                         <url>${nexusproxy}/repositories/opendaylight.release/</url>
121                 </repository>
122                 <!-- OpenDayLight Snapshot artifact -->
123                 <repository>
124                         <id>opendaylight-snapshot</id>
125                         <name>opendaylight-snapshot</name>
126                         <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
127                 </repository>
128         </repositories>
129         <distributionManagement>
130                 <!-- OpenDayLight Released artifact -->
131                 <repository>
132                         <id>opendaylight-release</id>
133                         <url>${nexusproxy}/repositories/opendaylight.release/</url>
134                 </repository>
135                 <!-- OpenDayLight Snapshot artifact -->
136                 <snapshotRepository>
137                         <id>opendaylight-snapshot</id>
138                         <url>${nexusproxy}/repositories/opendaylight.snapshot/</url>
139                 </snapshotRepository>
140                 <!-- Site deployment -->
141                 <!-- site> <id>website</id> <url>${sitedeploy}</url> </site -->
142         </distributionManagement>
143
144
145         <dependencyManagement>
146                 <dependencies>
147                         <dependency>
148                                 <groupId>junit</groupId>
149                                 <artifactId>junit</artifactId>
150                                 <version>4.10</version>
151                                 <scope>test</scope>
152                                 <optional>true</optional>
153                         </dependency>
154                         <dependency>
155                                 <groupId>org.slf4j</groupId>
156                                 <artifactId>slf4j-api</artifactId>
157                                 <version>1.7.2</version>
158                         </dependency>
159                 </dependencies>
160         </dependencyManagement>
161         <build>
162                 <plugins>
163                         <plugin>
164                                 <groupId>org.apache.maven.plugins</groupId>
165                                 <artifactId>maven-compiler-plugin</artifactId>
166                                 <version>${compiler.version}</version>
167                                 <inherited>true</inherited>
168                                 <configuration>
169                                         <source>1.7</source>
170                                         <target>1.7</target>
171                                 </configuration>
172                         </plugin>
173                         <plugin>
174                                 <groupId>org.apache.maven.plugins</groupId>
175                                 <artifactId>maven-javadoc-plugin</artifactId>
176                                 <version>2.8.1</version>
177                                 <configuration>
178                                         <stylesheet>maven</stylesheet>
179                                 </configuration>
180                                 <executions>
181                                         <execution>
182                                                 <goals>
183                                                         <goal>aggregate</goal>
184                                                 </goals>
185                                                 <phase>site</phase>
186                                         </execution>
187                                         <execution>
188                                                 <id>attach-javadocs</id>
189                                                 <phase>deploy</phase>
190                                                 <goals>
191                                                         <goal>jar</goal>
192                                                 </goals>
193                                         </execution>
194                                 </executions>
195                         </plugin>
196                         <plugin>
197                                 <artifactId>maven-source-plugin</artifactId>
198                                 <executions>
199                                         <execution>
200                                                 <id>attach-sources</id>
201                                                 <phase>deploy</phase>
202                                                 <goals>
203                                                         <goal>jar-no-fork</goal>
204                                                 </goals>
205                                         </execution>
206                                 </executions>
207                         </plugin>
208                         <plugin>
209                                 <!-- explicitly define maven-deploy-plugin after other to force exec 
210                                         order -->
211                                 <artifactId>maven-deploy-plugin</artifactId>
212                                 <executions>
213                                         <execution>
214                                                 <id>deploy</id>
215                                                 <phase>deploy</phase>
216                                                 <goals>
217                                                         <goal>deploy</goal>
218                                                 </goals>
219                                         </execution>
220                                 </executions>
221                         </plugin>
222                 </plugins>
223         </build>
224         <reporting>
225                 <plugins>
226                         <plugin>
227                                 <groupId>org.codehaus.mojo</groupId>
228                                 <artifactId>findbugs-maven-plugin</artifactId>
229                                 <version>2.4.0</version>
230                                 <configuration>
231                                         <effort>Max</effort>
232                                         <threshold>Low</threshold>
233                                         <goal>site</goal>
234                                 </configuration>
235                         </plugin>
236                         <plugin>
237                                 <groupId>org.codehaus.mojo</groupId>
238                                 <artifactId>jdepend-maven-plugin</artifactId>
239                                 <version>2.0-beta-2</version>
240                         </plugin>
241                 </plugins>
242         </reporting>
243         <profiles>
244                 <profile>
245                         <id>viewbuild</id>
246                         <activation>
247                                 <activeByDefault>true</activeByDefault>
248                         </activation>
249                         <properties>
250                                 <build.suffix>${project.version}</build.suffix>
251                         </properties>
252                 </profile>
253                 <profile>
254                         <id>jenkins</id>
255                         <activation>
256                                 <property>
257                                         <name>BUILDSUFFIX</name>
258                                 </property>
259                         </activation>
260                         <properties>
261                                 <build.suffix>${BUILDSUFFIX}</build.suffix>
262                         </properties>
263                 </profile>
264         </profiles>
265 </project>