dd2079550e1203714c369f83f596616ee806fc96
[controller.git] / opendaylight / config / config-persister-file-xml-adapter / 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         <artifactId>config-subsystem</artifactId>
6         <groupId>org.opendaylight.controller</groupId>
7         <version>0.2.5-SNAPSHOT</version>
8         <relativePath>..</relativePath>
9     </parent>
10     <artifactId>config-persister-file-xml-adapter</artifactId>
11     <name>${project.artifactId}</name>
12     <packaging>bundle</packaging>
13
14     <dependencies>
15         <!-- compile dependencies -->
16         <dependency>
17             <groupId>${project.groupId}</groupId>
18             <artifactId>config-persister-api</artifactId>
19         </dependency>
20         <dependency>
21             <groupId>org.apache.commons</groupId>
22             <artifactId>commons-lang3</artifactId>
23         </dependency>
24         <dependency>
25             <groupId>com.google.guava</groupId>
26             <artifactId>guava</artifactId>
27         </dependency>
28         <dependency>
29             <groupId>org.slf4j</groupId>
30             <artifactId>slf4j-api</artifactId>
31         </dependency>
32
33         <dependency>
34             <groupId>org.eclipse.persistence</groupId>
35             <artifactId>org.eclipse.persistence.moxy</artifactId>
36         </dependency>
37         <dependency>
38             <groupId>org.eclipse.persistence</groupId>
39             <artifactId>org.eclipse.persistence.core</artifactId>
40         </dependency>
41
42         <!-- test dependencies -->
43         <dependency>
44             <groupId>org.opendaylight.yangtools</groupId>
45             <artifactId>mockito-configuration</artifactId>
46         </dependency>
47         <dependency>
48             <groupId>${project.groupId}</groupId>
49             <artifactId>config-persister-api</artifactId>
50             <type>test-jar</type>
51             <scope>test</scope>
52         </dependency>
53     </dependencies>
54
55     <build>
56         <plugins>
57             <!-- workaround for creating version according to OSGi specification (major.minor.micro[.qualifier] -->
58             <plugin>
59                 <groupId>org.codehaus.groovy.maven</groupId>
60                 <artifactId>gmaven-plugin</artifactId>
61                 <executions>
62                     <execution>
63                         <phase>generate-sources</phase>
64                         <goals>
65                             <goal>execute</goal>
66                         </goals>
67                         <configuration>
68                             <source>
69                                 System.setProperty("osgiversion", "${project.version}".replace('-', '.'))
70                             </source>
71                         </configuration>
72                     </execution>
73                 </executions>
74             </plugin>
75             <plugin>
76                 <groupId>org.apache.felix</groupId>
77                 <artifactId>maven-bundle-plugin</artifactId>
78                 <configuration>
79                     <instructions>
80                         <Fragment-Host>${project.groupId}.config-persister-impl;bundle-version=${osgiversion}
81                         </Fragment-Host>
82                         <Provide-Capability>org.opendaylight.controller.config.persister.storage.adapter
83                         </Provide-Capability>
84                     </instructions>
85                 </configuration>
86             </plugin>
87         </plugins>
88     </build>
89
90 </project>