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