Inherit version from parent
[aaa.git] / aaa-h2-store / 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.aaa</groupId>
7         <artifactId>aaa-parent</artifactId>
8         <version>0.3.0-SNAPSHOT</version>
9         <relativePath>../parent</relativePath>
10     </parent>
11
12     <artifactId>aaa-h2-store</artifactId>
13     <packaging>bundle</packaging>
14
15     <dependencies>
16         <dependency>
17             <groupId>org.opendaylight.controller</groupId>
18             <artifactId>config-api</artifactId>
19             <version>${config.version}</version>
20         </dependency>
21         <dependency>
22             <groupId>org.opendaylight.controller</groupId>
23             <artifactId>sal-binding-config</artifactId>
24         </dependency>
25         <dependency>
26             <groupId>org.opendaylight.controller</groupId>
27             <artifactId>sal-binding-api</artifactId>
28         </dependency>
29         <dependency>
30             <groupId>org.opendaylight.controller</groupId>
31             <artifactId>sal-common-util</artifactId>
32         </dependency>
33
34         <dependency>
35             <groupId>org.opendaylight.aaa</groupId>
36             <artifactId>aaa-authn-api</artifactId>
37         </dependency>
38         <dependency>
39             <groupId>org.opendaylight.aaa</groupId>
40             <artifactId>aaa-authn</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.slf4j</groupId>
44             <artifactId>slf4j-api</artifactId>
45         </dependency>
46         <dependency>
47             <groupId>org.apache.felix</groupId>
48             <artifactId>org.apache.felix.dependencymanager</artifactId>
49             <scope>provided</scope>
50         </dependency>
51         <dependency>
52             <groupId>org.mockito</groupId>
53             <artifactId>mockito-all</artifactId>
54             <scope>test</scope>
55         </dependency>
56
57         <!-- JDBC -->
58         <dependency>
59             <groupId>com.h2database</groupId>
60             <artifactId>h2</artifactId>
61         </dependency>
62         <!-- Testing Dependencies -->
63         <dependency>
64             <groupId>junit</groupId>
65             <artifactId>junit</artifactId>
66             <scope>test</scope>
67         </dependency>
68         <dependency>
69             <groupId>org.slf4j</groupId>
70             <artifactId>slf4j-simple</artifactId>
71             <scope>test</scope>
72         </dependency>
73
74     </dependencies>
75     <build>
76         <plugins>
77             <plugin>
78                 <groupId>org.apache.felix</groupId>
79                 <artifactId>maven-bundle-plugin</artifactId>
80                 <version>${bundle.plugin.version}</version>
81                 <extensions>true</extensions>
82                 <configuration>
83                     <instructions>
84                         <Import-Package>com.google.*,org.opendaylight.aaa.api.*,org.apache.felix.*,org.slf4j.*,org.opendaylight.*,org.osgi.*</Import-Package>
85                         <Private-Package>org.h2.*</Private-Package>
86                         <Embed-Dependency>h2</Embed-Dependency>
87                     </instructions>
88                 </configuration>
89             </plugin>
90             <plugin>
91                 <groupId>org.opendaylight.yangtools</groupId>
92                 <artifactId>yang-maven-plugin</artifactId>
93                 <version>${yangtools.version}</version>
94                 <executions>
95                     <execution>
96                         <id>config</id>
97                         <goals>
98                             <goal>generate-sources</goal>
99                         </goals>
100                         <configuration>
101                             <codeGenerators>
102                                 <generator>
103                                     <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
104                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
105                                     <additionalConfiguration>
106                                         <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
107                                     </additionalConfiguration>
108                                 </generator>
109                                 <generator>
110                                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
111                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
112                                 </generator>
113                             </codeGenerators>
114                             <inspectDependencies>true</inspectDependencies>
115                         </configuration>
116                     </execution>
117                 </executions>
118                 <dependencies>
119                     <dependency>
120                         <groupId>org.opendaylight.mdsal</groupId>
121                         <artifactId>maven-sal-api-gen-plugin</artifactId>
122                         <version>${yangtools.version}</version>
123                         <type>jar</type>
124                     </dependency>
125                     <dependency>
126                         <groupId>org.opendaylight.controller</groupId>
127                         <artifactId>yang-jmx-generator-plugin</artifactId>
128                         <version>${config.version}</version>
129                     </dependency>
130                 </dependencies>
131             </plugin>
132             <plugin>
133                 <groupId>org.codehaus.mojo</groupId>
134                 <artifactId>build-helper-maven-plugin</artifactId>
135                 <executions>
136                     <execution>
137                         <id>attach-artifacts</id>
138                         <goals>
139                             <goal>attach-artifact</goal>
140                         </goals>
141                         <phase>package</phase>
142                         <configuration>
143                             <artifacts>
144                                 <artifact>
145                                     <file>${project.build.directory}/classes/initial/08-aaa-h2-store-config.xml</file>
146                                     <type>xml</type>
147                                     <classifier>config</classifier>
148                                 </artifact>
149                             </artifacts>
150                         </configuration>
151                     </execution>
152                 </executions>
153             </plugin>
154         </plugins>
155     </build>
156 </project>