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