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