Clean-up pom.xml layout
[controller.git] / opendaylight / md-sal / sal-clustering-commons / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4
5   <parent>
6       <groupId>org.opendaylight.controller</groupId>
7       <artifactId>config-parent</artifactId>
8       <version>0.6.0-SNAPSHOT</version>
9       <relativePath>../../config/config-parent</relativePath>
10   </parent>
11
12   <groupId>org.opendaylight.controller</groupId>
13   <version>1.5.0-SNAPSHOT</version>
14   <artifactId>sal-clustering-commons</artifactId>
15   <packaging>bundle</packaging>
16
17   <dependencies>
18     <!-- Java -->
19     <dependency>
20       <groupId>junit</groupId>
21       <artifactId>junit</artifactId>
22       <scope>test</scope>
23     </dependency>
24     <dependency>
25       <groupId>xmlunit</groupId>
26       <artifactId>xmlunit</artifactId>
27     </dependency>
28
29     <dependency>
30       <groupId>org.mockito</groupId>
31       <artifactId>mockito-all</artifactId>
32       <scope>test</scope>
33     </dependency>
34     <dependency>
35       <groupId>org.slf4j</groupId>
36       <artifactId>slf4j-simple</artifactId>
37       <scope>test</scope>
38     </dependency>
39
40     <!-- Apache -->
41     <dependency>
42       <groupId>commons-lang</groupId>
43       <artifactId>commons-lang</artifactId>
44     </dependency>
45
46     <!-- Akka -->
47     <dependency>
48       <groupId>com.typesafe.akka</groupId>
49       <artifactId>akka-actor_${scala.version}</artifactId>
50     </dependency>
51     <dependency>
52       <groupId>com.typesafe.akka</groupId>
53       <artifactId>akka-cluster_${scala.version}</artifactId>
54     </dependency>
55     <dependency>
56       <groupId>com.typesafe.akka</groupId>
57       <artifactId>akka-osgi_${scala.version}</artifactId>
58     </dependency>
59     <dependency>
60       <groupId>com.typesafe.akka</groupId>
61       <artifactId>akka-persistence_${scala.version}</artifactId>
62     </dependency>
63     <dependency>
64       <groupId>com.typesafe.akka</groupId>
65       <artifactId>akka-remote_${scala.version}</artifactId>
66     </dependency>
67     <dependency>
68       <groupId>com.typesafe.akka</groupId>
69       <artifactId>akka-slf4j_${scala.version}</artifactId>
70     </dependency>
71     <dependency>
72       <groupId>com.typesafe.akka</groupId>
73       <artifactId>akka-testkit_${scala.version}</artifactId>
74       <scope>test</scope>
75     </dependency>
76
77     <!-- Codahale -->
78     <dependency>
79       <groupId>io.dropwizard.metrics</groupId>
80       <artifactId>metrics-core</artifactId>
81     </dependency>
82     <dependency>
83       <groupId>io.dropwizard.metrics</groupId>
84       <artifactId>metrics-graphite</artifactId>
85     </dependency>
86
87     <!-- Google -->
88     <dependency>
89       <groupId>com.google.code.findbugs</groupId>
90       <artifactId>jsr305</artifactId>
91     </dependency>
92     <dependency>
93       <groupId>com.google.guava</groupId>
94       <artifactId>guava</artifactId>
95     </dependency>
96     <dependency>
97       <groupId>com.google.protobuf</groupId>
98       <artifactId>protobuf-java</artifactId>
99     </dependency>
100
101     <!-- Scala -->
102     <dependency>
103       <groupId>org.scala-lang</groupId>
104       <artifactId>scala-library</artifactId>
105     </dependency>
106
107     <!-- OpenDaylight -->
108     <dependency>
109       <groupId>org.opendaylight.yangtools</groupId>
110       <artifactId>util</artifactId>
111     </dependency>
112     <dependency>
113       <groupId>org.opendaylight.yangtools</groupId>
114       <artifactId>yang-common</artifactId>
115     </dependency>
116     <dependency>
117       <groupId>org.opendaylight.yangtools</groupId>
118       <artifactId>yang-data-api</artifactId>
119     </dependency>
120     <dependency>
121       <groupId>org.opendaylight.yangtools</groupId>
122       <artifactId>yang-data-impl</artifactId>
123     </dependency>
124     <dependency>
125       <groupId>org.opendaylight.yangtools</groupId>
126       <artifactId>yang-model-api</artifactId>
127     </dependency>
128     <dependency>
129       <groupId>org.opendaylight.yangtools</groupId>
130       <artifactId>yang-model-util</artifactId>
131     </dependency>
132     <dependency>
133       <groupId>org.opendaylight.yangtools</groupId>
134       <artifactId>yang-parser-impl</artifactId>
135     </dependency>
136     <dependency>
137       <groupId>org.opendaylight.controller</groupId>
138       <artifactId>config-api</artifactId>
139     </dependency>
140
141   </dependencies>
142
143   <build>
144       <plugins>
145           <plugin>
146               <groupId>org.jacoco</groupId>
147               <artifactId>jacoco-maven-plugin</artifactId>
148               <configuration>
149                   <includes>
150                       <include>org.opendaylight.controller.*</include>
151                   </includes>
152                   <excludes>
153                       <exclude>org.opendaylight.controller.protobuff.*</exclude>
154                   </excludes>
155                   <check>false</check>
156               </configuration>
157               <executions>
158                   <execution>
159                       <id>pre-test</id>
160                       <goals>
161                           <goal>prepare-agent</goal>
162                       </goals>
163                   </execution>
164                   <execution>
165                       <id>post-test</id>
166                       <goals>
167                           <goal>report</goal>
168                       </goals>
169                       <phase>test</phase>
170                   </execution>
171               </executions>
172           </plugin>
173           <plugin>
174               <groupId>org.apache.felix</groupId>
175               <artifactId>maven-bundle-plugin</artifactId>
176               <extensions>true</extensions>
177               <configuration>
178               <instructions>
179                   <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
180                   <Export-Package>org.opendaylight.controller.cluster.schema.provider.impl, {local-packages}</Export-Package>
181               </instructions>
182               </configuration>
183           </plugin>
184           <plugin>
185               <groupId>org.apache.maven.plugins</groupId>
186               <artifactId>maven-jar-plugin</artifactId>
187               <executions>
188                   <execution>
189                       <goals>
190                           <goal>test-jar</goal>
191                       </goals>
192                   </execution>
193               </executions>
194           </plugin>
195           <plugin>
196              <groupId>org.apache.maven.plugins</groupId>
197              <artifactId>maven-checkstyle-plugin</artifactId>
198              <configuration>
199                 <propertyExpansion>checkstyle.violationSeverity=error</propertyExpansion>
200              </configuration>
201           </plugin>
202       </plugins>
203   </build>
204
205
206     <profiles>
207         <!-- Turn off doclint on aggregated API javadoc build. -->
208         <profile>
209             <id>jdk8</id>
210             <activation>
211                 <jdk>[1.8,)</jdk>
212             </activation>
213
214             <build>
215                 <plugins>
216                     <plugin>
217                         <groupId>org.apache.maven.plugins</groupId>
218                         <artifactId>maven-javadoc-plugin</artifactId>
219                         <configuration>
220                             <additionalparam>-Xdoclint:none</additionalparam>
221                         </configuration>
222                     </plugin>
223                 </plugins>
224             </build>
225         </profile>
226     </profiles>
227 </project>