Reworked pom files
[controller.git] / opendaylight / clustering / services_implementation / 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"
3   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4   <modelVersion>4.0.0</modelVersion>
5   <parent>
6     <groupId>org.opendaylight.controller</groupId>
7     <artifactId>commons.opendaylight</artifactId>
8     <version>1.4.1-SNAPSHOT</version>
9     <relativePath>../../commons/opendaylight</relativePath>
10   </parent>
11   <scm>
12     <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
13     <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
14     <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
15     <tag>HEAD</tag>
16   </scm>
17
18   <artifactId>clustering.services-implementation</artifactId>
19   <version>0.4.1-SNAPSHOT</version>
20   <packaging>bundle</packaging>
21   <properties>
22     <!-- Sonar properties using jacoco to retrieve integration test results -->
23     <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
24     <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
25     <sonar.jacoco.Reportpath>target/jacoco.exec</sonar.jacoco.Reportpath>
26     <sonar.jacoco.itReportPath>target/jacoco-it.exec</sonar.jacoco.itReportPath>
27     <sonar.language>java</sonar.language>
28   </properties>
29   <build>
30     <pluginManagement>
31       <plugins>
32         <plugin>
33           <groupId>org.jacoco</groupId>
34           <artifactId>jacoco-maven-plugin</artifactId>
35           <version>${jacoco.version}</version>
36         </plugin>
37       </plugins>
38     </pluginManagement>
39     <plugins>
40       <plugin>
41         <groupId>org.apache.felix</groupId>
42         <artifactId>maven-bundle-plugin</artifactId>
43         <version>${bundle.plugin.version}</version>
44         <extensions>true</extensions>
45         <configuration>
46           <instructions>
47             <Import-Package>
48               org.slf4j,
49               !org.apache.logging.log4j.*,
50               !bsh*,
51               !net.jcip.*,
52               !javax.swing,
53               !org.hornetq.*,
54               !org.jboss.*,
55               javax.transaction,
56               *,
57               org.opendaylight.controller.clustering.services,
58               org.opendaylight.controller.sal.core
59             </Import-Package>
60             <Bundle-Activator>
61               org.opendaylight.controller.clustering.services_implementation.internal.Activator
62             </Bundle-Activator>
63             <!-- Add in the DynamicImport-Package ONLY the packages that -->
64             <!-- contains types that MUST be unmarshalled by the -->
65             <!-- infinispan. They need to be wired at runtime even during -->
66             <!-- the bundle is already RESOLVED, but at the same time if -->
67             <!-- those are missing the bundle will still come up, this is -->
68             <!-- why those dependencies ends in the DynamicImport-Package -->
69             <!-- rather in the Import-Package -->
70             <DynamicImport-Package>
71               *
72             </DynamicImport-Package>
73             <Embed-Dependency>
74               infinispan-core,jgroups,jboss-marshalling-river,jboss-marshalling,jboss-logging,staxmapper,narayana-jta;type=!pom;inline=false
75             </Embed-Dependency>
76             <Embed-Transitive>
77               true
78             </Embed-Transitive>
79           </instructions>
80           <manifestLocation>${project.basedir}/META-INF</manifestLocation>
81         </configuration>
82       </plugin>
83       <plugin>
84         <groupId>org.jacoco</groupId>
85         <artifactId>jacoco-maven-plugin</artifactId>
86         <configuration>
87           <includes>org.opendaylight.controller.*</includes>
88         </configuration>
89         <executions>
90           <execution>
91             <id>pre-test</id>
92             <goals>
93               <goal>prepare-agent</goal>
94             </goals>
95           </execution>
96           <execution>
97             <id>post-test</id>
98             <phase>test</phase>
99             <goals>
100               <goal>report</goal>
101             </goals>
102           </execution>
103         </executions>
104       </plugin>
105       <plugin>
106         <groupId>org.apache.maven.plugins</groupId>
107         <artifactId>maven-enforcer-plugin</artifactId>
108         <version>${enforcer.version}</version>
109         <executions>
110           <execution>
111             <id>enforce-banned-dependencies</id>
112             <goals>
113               <goal>enforce</goal>
114             </goals>
115             <configuration>
116               <rules>
117                 <bannedDependencies>
118                   <excludes>
119                     <exclude>org.infinispan:infinispan-core:*</exclude>
120                   </excludes>
121                   <includes>
122                     <include>org.infinispan:infinispan-core:[5.3.0.Final]</include>
123                   </includes>
124                 </bannedDependencies>
125               </rules>
126               <fail>true</fail>
127             </configuration>
128           </execution>
129         </executions>
130       </plugin>
131     </plugins>
132   </build>
133   <dependencies>
134     <dependency>
135       <groupId>org.infinispan</groupId>
136       <artifactId>infinispan-core</artifactId>
137       <version>5.3.0.Final</version>
138     </dependency>
139     <dependency>
140       <groupId>org.opendaylight.controller</groupId>
141       <artifactId>clustering.services</artifactId>
142       <version>0.4.1-SNAPSHOT</version>
143     </dependency>
144     <dependency>
145       <groupId>org.opendaylight.controller</groupId>
146       <artifactId>sal</artifactId>
147       <version>0.5.1-SNAPSHOT</version>
148     </dependency>
149     <dependency>
150       <groupId>org.jboss.jbossts.jta</groupId>
151       <artifactId>narayana-jta</artifactId>
152       <version>4.17.7.Final</version>
153     </dependency>
154     <dependency>
155       <groupId>equinoxSDK381</groupId>
156       <artifactId>org.apache.felix.gogo.runtime</artifactId>
157     </dependency>
158     <dependency>
159       <groupId>junit</groupId>
160       <artifactId>junit</artifactId>
161     </dependency>
162   </dependencies>
163 </project>