5d853040149b3ab31c631c5001efb4e8470149da
[aaa.git] / aaa-idmlight / 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.4.0-SNAPSHOT</version>
9         <relativePath>../parent</relativePath>
10     </parent>
11
12     <artifactId>aaa-idmlight</artifactId>
13     <packaging>bundle</packaging>
14
15     <dependencies>
16         <!--Yang Binding -->
17         <dependency>
18             <groupId>org.opendaylight.controller</groupId>
19             <artifactId>config-api</artifactId>
20             <version>${config.version}</version>
21         </dependency>
22         <dependency>
23             <groupId>org.opendaylight.controller</groupId>
24             <artifactId>sal-binding-config</artifactId>
25         </dependency>
26         <dependency>
27             <groupId>org.opendaylight.controller</groupId>
28             <artifactId>sal-binding-api</artifactId>
29         </dependency>
30         <dependency>
31             <groupId>org.opendaylight.controller</groupId>
32             <artifactId>sal-common-util</artifactId>
33         </dependency>
34
35         <dependency>
36             <groupId>org.opendaylight.aaa</groupId>
37             <artifactId>aaa-authn-api</artifactId>
38         </dependency>
39         <dependency>
40             <groupId>org.opendaylight.aaa</groupId>
41             <artifactId>aaa-authn</artifactId>
42         </dependency>
43         <dependency>
44             <groupId>org.slf4j</groupId>
45             <artifactId>slf4j-api</artifactId>
46         </dependency>
47         <dependency>
48             <groupId>com.sun.jersey</groupId>
49             <artifactId>jersey-server</artifactId>
50             <scope>provided</scope>
51         </dependency>
52         <dependency>
53             <groupId>javax.servlet</groupId>
54             <artifactId>javax.servlet-api</artifactId>
55             <scope>provided</scope>
56         </dependency>
57         <dependency>
58             <groupId>org.apache.felix</groupId>
59             <artifactId>org.apache.felix.dependencymanager</artifactId>
60             <scope>provided</scope>
61         </dependency>
62         <dependency>
63             <groupId>org.mockito</groupId>
64             <artifactId>mockito-all</artifactId>
65             <scope>test</scope>
66         </dependency>
67         <dependency>
68             <groupId>org.osgi</groupId>
69             <artifactId>org.osgi.core</artifactId>
70         </dependency>
71
72         <!-- JSON JAXB Stuff -->
73         <dependency>
74             <groupId>com.fasterxml.jackson.core</groupId>
75             <artifactId>jackson-core</artifactId>
76         </dependency>
77         <dependency>
78             <groupId>com.fasterxml.jackson.core</groupId>
79             <artifactId>jackson-annotations</artifactId>
80         </dependency>
81         <dependency>
82             <groupId>com.fasterxml.jackson.core</groupId>
83             <artifactId>jackson-databind</artifactId>
84         </dependency>
85         <dependency>
86             <groupId>com.fasterxml.jackson.datatype</groupId>
87             <artifactId>jackson-datatype-json-org</artifactId>
88         </dependency>
89         <dependency>
90             <groupId>com.fasterxml.jackson.jaxrs</groupId>
91             <artifactId>jackson-jaxrs-base</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>com.fasterxml.jackson.jaxrs</groupId>
95             <artifactId>jackson-jaxrs-json-provider</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>com.fasterxml.jackson.module</groupId>
99             <artifactId>jackson-module-jaxb-annotations</artifactId>
100         </dependency>
101
102         <dependency>
103             <groupId>org.eclipse.jetty</groupId>
104             <artifactId>jetty-servlets</artifactId>
105             <scope>provided</scope>
106         </dependency>
107
108         <!-- Testing Dependencies -->
109         <dependency>
110             <groupId>com.sun.jersey.jersey-test-framework</groupId>
111             <artifactId>jersey-test-framework-grizzly2</artifactId>
112             <scope>test</scope>
113         </dependency>
114         <dependency>
115             <groupId>junit</groupId>
116             <artifactId>junit</artifactId>
117             <scope>test</scope>
118         </dependency>
119         <dependency>
120             <groupId>org.slf4j</groupId>
121             <artifactId>slf4j-simple</artifactId>
122             <scope>test</scope>
123         </dependency>
124
125     </dependencies>
126
127     <build>
128         <plugins>
129             <plugin>
130                 <groupId>org.opendaylight.yangtools</groupId>
131                 <artifactId>yang-maven-plugin</artifactId>
132                 <version>${yangtools.version}</version>
133                 <executions>
134                     <execution>
135                         <id>config</id>
136                         <goals>
137                             <goal>generate-sources</goal>
138                         </goals>
139                         <configuration>
140                             <codeGenerators>
141                                 <generator>
142                                     <codeGeneratorClass>org.opendaylight.controller.config.yangjmxgenerator.plugin.JMXGenerator</codeGeneratorClass>
143                                     <outputBaseDir>${jmxGeneratorPath}</outputBaseDir>
144                                     <additionalConfiguration>
145                                         <namespaceToPackage1>urn:opendaylight:params:xml:ns:yang:controller==org.opendaylight.controller.config.yang</namespaceToPackage1>
146                                     </additionalConfiguration>
147                                 </generator>
148                                 <generator>
149                                     <codeGeneratorClass>org.opendaylight.yangtools.maven.sal.api.gen.plugin.CodeGeneratorImpl</codeGeneratorClass>
150                                     <outputBaseDir>${salGeneratorPath}</outputBaseDir>
151                                 </generator>
152                             </codeGenerators>
153                             <inspectDependencies>true</inspectDependencies>
154                         </configuration>
155                     </execution>
156                 </executions>
157                 <dependencies>
158                     <dependency>
159                         <groupId>org.opendaylight.mdsal</groupId>
160                         <artifactId>maven-sal-api-gen-plugin</artifactId>
161                         <version>${yangtools.version}</version>
162                         <type>jar</type>
163                     </dependency>
164                     <dependency>
165                         <groupId>org.opendaylight.controller</groupId>
166                         <artifactId>yang-jmx-generator-plugin</artifactId>
167                         <version>${config.version}</version>
168                     </dependency>
169                 </dependencies>
170             </plugin>
171             <plugin>
172                 <groupId>org.codehaus.mojo</groupId>
173                 <artifactId>build-helper-maven-plugin</artifactId>
174                 <executions>
175                     <execution>
176                         <id>attach-artifacts</id>
177                         <goals>
178                             <goal>attach-artifact</goal>
179                         </goals>
180                         <phase>package</phase>
181                         <configuration>
182                             <artifacts>
183                                 <artifact>
184                                     <file>${project.build.directory}/classes/initial/08-aaa-idmlight-config.xml</file>
185                                     <type>xml</type>
186                                     <classifier>config</classifier>
187                                 </artifact>
188                             </artifacts>
189                         </configuration>
190                     </execution>
191                 </executions>
192             </plugin>
193             <plugin>
194                 <groupId>org.apache.felix</groupId>
195                 <artifactId>maven-bundle-plugin</artifactId>
196                 <!-- override default version so we don't use bnd 2.3.0 when embedding sqlite -->
197
198                 <extensions>true</extensions>
199                 <configuration>
200                     <instructions>
201                         <Import-Package>javax.servlet.http,javax.ws.rs,javax.ws.rs.core,javax.xml.bind.annotation,org.apache.felix.dm,org.opendaylight.aaa,org.opendaylight.aaa.api.*,org.osgi.framework,org.slf4j,org.eclipse.jetty.servlets,com.sun.jersey.spi.container.servlet,com.google.*,org.opendaylight.*,org.osgi.util.tracker</Import-Package>
202                         <Web-ContextPath>/auth</Web-ContextPath>
203                         <!--<Web-Connectors>adminConn</Web-Connectors> -->
204                         <!--Bundle-Activator>org.opendaylight.aaa.idm.Activator</Bundle-Activator-->
205                     </instructions>
206                     <manifestLocation>${project.basedir}/META-INF</manifestLocation>
207                 </configuration>
208             </plugin>
209         </plugins>
210     </build>
211
212 </project>