a77bb53a9b97568e3c35b4c463c2ed5eaec7cce2
[bgpcep.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set smarttab sw=4 tabstop=4: -->
3 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5         <name>OpenDaylight protocols</name>
6         <url>index.html</url>
7         <modelVersion>4.0.0</modelVersion>
8         <groupId>org.opendaylight.protocol</groupId>
9         <artifactId>protocol-parent</artifactId>
10         <description>OpenDaylight BGP+PCEP protocol parent</description>
11         <version>0.1</version>
12         <packaging>pom</packaging>
13         <properties>
14                 <java.version.source>1.7</java.version.source>
15                 <java.version.target>1.7</java.version.target>
16                 <commons.io.version>2.4</commons.io.version>
17                 <checkstyle.version>2.9.1</checkstyle.version>
18                 <pmd.version>2.7.1</pmd.version>
19                 <dependency.version>2.8</dependency.version>
20                 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21                 <cxf.version>2.6.5</cxf.version>
22                 <slf4j.version>1.7.2</slf4j.version>
23                 <logback.version>1.0.7</logback.version>
24                 <junit.version>4.10</junit.version>
25                 <maven.compiler.version>2.5.1</maven.compiler.version>
26                 <maven.bundle.version>2.3.7</maven.bundle.version>
27                 <jgrapht.version>0.8.3-SNAPSHOT</jgrapht.version>
28                 <surefire.version>2.14.1</surefire.version>
29                 <commonscodec.version>1.7</commonscodec.version>
30                 <guava.version>13.0.1</guava.version>
31                 <osgi.version>5.0.0</osgi.version>
32                 <osgi.compendium.version>4.0.0</osgi.compendium.version>
33         </properties>
34         <prerequisites>
35                 <maven>3.0.4</maven>
36         </prerequisites>
37
38         <modules>
39                 <module>bgp</module>
40                 <module>concepts</module>
41                 <module>framework</module>
42                 <module>mockito-configuration</module>
43                 <module>pcep</module>
44                 <module>util</module>
45         </modules>
46
47         <dependencies>
48                 <dependency>
49                         <groupId>junit</groupId>
50                         <artifactId>junit</artifactId>
51                         <version>${junit.version}</version>
52                         <scope>test</scope>
53                 </dependency>
54                 <dependency>
55                         <groupId>ch.qos.logback</groupId>
56                         <artifactId>logback-classic</artifactId>
57                         <version>${logback.version}</version>
58                         <scope>test</scope>
59                 </dependency>
60         </dependencies>
61         
62         <reporting>
63                 <plugins>
64                         <plugin>
65                                 <groupId>org.apache.maven.plugins</groupId>
66                                 <artifactId>maven-javadoc-plugin</artifactId>
67                                 <version>2.8.1</version>
68                         </plugin>
69                         <plugin>
70                                 <groupId>org.apache.maven.plugins</groupId>
71                                 <artifactId>maven-checkstyle-plugin</artifactId>
72                                 <version>2.9.1</version>
73                         </plugin>
74                         <plugin>
75                                 <groupId>org.apache.maven.plugins</groupId>
76                                 <artifactId>maven-pmd-plugin</artifactId>
77                                 <version>${pmd.version}</version>
78                         </plugin>
79                         <plugin>
80                                 <groupId>org.apache.maven.plugins</groupId>
81                                 <artifactId>maven-antrun-plugin</artifactId>
82                                 <version>${maven.antrun.version}</version>
83                         </plugin>
84                 </plugins>
85         </reporting>
86
87         <distributionManagement>
88                 <site>
89                         <id>${project.artifactId}</id>
90                         <name>NPS-APPLICATION Project site</name>
91                         <url>${basedir}/target/site/${project.artifactId}</url>
92                 </site>
93                 <!-- mock repository to allow deploy phase without real deployment -->
94                 <repository>
95                         <id>targetRepo</id>
96                         <name>Target folder as mock repository</name>
97                         <url>file://${basedir}/target/deploy</url>
98                 </repository>
99         </distributionManagement>
100
101         <build>
102                 <plugins>
103                         <plugin>
104                                 <groupId>org.apache.maven.plugins</groupId>
105                                 <artifactId>maven-compiler-plugin</artifactId>
106                                 <version>${maven.compiler.version}</version>
107                                 <configuration>
108                                         <source>${java.version.source}</source>
109                                         <target>${java.version.target}</target>
110                                         <testSource>${java.version.source}</testSource>
111                                         <testTarget>${java.version.target}</testTarget>
112                                 </configuration>
113                         </plugin>
114                         <plugin>
115                                 <groupId>org.apache.maven.plugins</groupId>
116                                 <artifactId>maven-checkstyle-plugin</artifactId>
117                                 <version>2.9.1</version>
118                                 <configuration>
119                                         <configLocation>build/checkstyle/checkstyle-checker.xml</configLocation>
120                                         <outputDirectory>${basedir}/target/checkstyle/report</outputDirectory>
121                                 </configuration>
122                         </plugin>
123                         <plugin>
124                                 <groupId>org.apache.maven.plugins</groupId>
125                                 <artifactId>maven-surefire-plugin</artifactId>
126                                 <version>${surefire.version}</version>
127                                 <configuration>
128                                         <redirectTestOutputToFile>true</redirectTestOutputToFile>
129                                         <parallel>classes</parallel>
130                                         <forkCount>1C</forkCount>
131                                         <reuseForks>false</reuseForks>
132                                         <perCoreThreadCount>true</perCoreThreadCount>
133                                         <threadCount>2</threadCount>
134                                 </configuration>
135                         </plugin>
136
137                         <plugin>
138                                 <groupId>org.apache.maven.plugins</groupId>
139                                 <artifactId>maven-pmd-plugin</artifactId>
140                                 <version>${pmd.version}</version>
141                                 <configuration>
142                                         <targetJdk>${java.version.target}</targetJdk>
143                                         <rulesets>
144                                                 <ruleset>rulesets/basic.xml</ruleset>
145                                                 <ruleset>rulesets/finalizers.xml</ruleset>
146                                                 <ruleset>rulesets/imports.xml</ruleset>
147                                                 <ruleset>rulesets/junit.xml</ruleset>
148                                                 <!--ruleset>rulesets/optimizations.xml</ruleset -->
149                                                 <ruleset>rulesets/strings.xml</ruleset>
150                                                 <ruleset>rulesets/unusedcode.xml</ruleset>
151                                         </rulesets>
152                                 </configuration>
153                         </plugin>
154                         <plugin>
155                                 <groupId>org.apache.maven.plugins</groupId>
156                                 <artifactId>maven-dependency-plugin</artifactId>
157                                 <version>${dependency.version}</version>
158                                 <configuration>
159                                         <!--failOnWarning>true</failOnWarning -->
160                                         <ignoreNonCompile>true</ignoreNonCompile>
161                                 </configuration>
162                         </plugin>
163                         <plugin>
164                                 <groupId>org.fusesource.mvnplugins</groupId>
165                                 <artifactId>maven-graph-plugin</artifactId>
166                                 <version>1.4</version>
167                         </plugin>
168                         <plugin>
169                                 <groupId>org.codehaus.mojo</groupId>
170                                 <artifactId>build-helper-maven-plugin</artifactId>
171                                 <version>1.8</version>
172                         </plugin>
173                 </plugins>
174                 <pluginManagement>
175                         <plugins>
176                                 <!--This plugin's configuration is used to store Eclipse m2e settings
177                                         only. It has no influence on the Maven build itself. -->
178                                 <plugin>
179                                         <groupId>org.eclipse.m2e</groupId>
180                                         <artifactId>lifecycle-mapping</artifactId>
181                                         <version>1.0.0</version>
182                                         <configuration>
183                                                 <lifecycleMappingMetadata>
184                                                         <pluginExecutions>
185                                                                 <pluginExecution>
186                                                                         <pluginExecutionFilter>
187                                                                                 <groupId>pl.project13.maven</groupId>
188                                                                                 <artifactId>git-commit-id-plugin</artifactId>
189                                                                                 <versionRange>
190                                                                                         [2.1.4,)
191                                                                                 </versionRange>
192                                                                                 <goals>
193                                                                                         <goal>revision</goal>
194                                                                                 </goals>
195                                                                         </pluginExecutionFilter>
196                                                                         <action>
197                                                                                 <ignore></ignore>
198                                                                         </action>
199                                                                 </pluginExecution>
200                                                         </pluginExecutions>
201                                                 </lifecycleMappingMetadata>
202                                         </configuration>
203                                 </plugin>
204                         </plugins>
205                 </pluginManagement>
206         </build>
207
208         <pluginRepositories>
209                 <pluginRepository>
210                         <id>mvnplugins.fusesource.org</id>
211                         <url>http://mvnplugins.fusesource.org/repo/release</url>
212                         <releases>
213                                 <enabled>true</enabled>
214                         </releases>
215                 </pluginRepository>
216         </pluginRepositories>
217 </project>