Fix generator path inconsistent
[aaa.git] / parent / 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.odlparent</groupId>
7         <artifactId>odlparent</artifactId>
8         <version>1.6.0-SNAPSHOT</version>
9         <relativePath/>
10     </parent>
11
12     <groupId>org.opendaylight.aaa</groupId>
13     <artifactId>aaa-parent</artifactId>
14     <version>0.3.0-SNAPSHOT</version>
15     <packaging>pom</packaging>
16     <prerequisites>
17         <maven>3.0.4</maven>
18     </prerequisites>
19
20     <properties>
21         <!-- Karaf -->
22         <karaf.branding.version>1.2.0-SNAPSHOT</karaf.branding.version>
23         <karaf.resources.version>1.6.0-SNAPSHOT</karaf.resources.version>
24
25         <!-- OSGi -->
26         <osgi.metatype.version>1.0.10</osgi.metatype.version>
27
28         <!-- Local project version, needed for import -->
29         <aaa.version>${project.version}</aaa.version>
30         <parent-path>${basedir}</parent-path>
31
32         <!-- AuthZ -->
33         <yangtools.version>0.8.0-SNAPSHOT</yangtools.version>
34         <jmxGeneratorPath>src/main/yang-gen-config</jmxGeneratorPath>
35         <salGeneratorPath>src/main/yang-gen-sal</salGeneratorPath>
36         <mdsal.version>2.0.0-SNAPSHOT</mdsal.version>
37         <mdsal.model.version>0.8.0-SNAPSHOT</mdsal.model.version>
38         <controller.mdsal.version>1.3.0-SNAPSHOT</controller.mdsal.version>
39         <restconf.version>1.3.0-SNAPSHOT</restconf.version>
40         <config.version>0.4.0-SNAPSHOT</config.version>
41         <config.authz.service.configfile>08-authz-config.xml</config.authz.service.configfile>
42         <config.restconf.configfile>09-rest-connector.xml</config.restconf.configfile>
43         <config.configfile.directory>etc/opendaylight/karaf</config.configfile.directory>
44
45         <!-- AuthN -->
46         <glassfish.json.version>1.0.4</glassfish.json.version>
47         <ehcache.version>2.8.3</ehcache.version>
48         <jta.version>1.1.1</jta.version>
49         <oltu.version>1.0.0</oltu.version>
50
51         <config.authn.store.configfile>08-authn-config.xml</config.authn.store.configfile>
52
53         <!-- IdmLight -->
54         <h2.version>1.4.185</h2.version>
55
56         <!-- Keystone plugin -->
57         <httpclient.version>4.4</httpclient.version>
58
59         <!-- Test -->
60         <javax.inject.version>1</javax.inject.version>
61         <servlet.tester.version>7.0.0.M2</servlet.tester.version>
62         <features.test.version>1.6.0-SNAPSHOT</features.test.version>
63     </properties>
64
65     <dependencyManagement>
66         <dependencies>
67             <!-- ODL -->
68             <dependency>
69                 <groupId>org.opendaylight.aaa</groupId>
70                 <artifactId>aaa-artifacts</artifactId>
71                 <version>${aaa.version}</version>
72                 <type>pom</type>
73                 <scope>import</scope>
74             </dependency>
75             <dependency>
76                 <groupId>org.opendaylight.yangtools</groupId>
77                 <artifactId>yangtools-artifacts</artifactId>
78                 <version>${yangtools.version}</version>
79                 <type>pom</type>
80                 <scope>import</scope>
81             </dependency>
82             <dependency>
83                 <groupId>org.opendaylight.mdsal</groupId>
84                 <artifactId>mdsal-artifacts</artifactId>
85                 <version>${mdsal.version}</version>
86                 <scope>import</scope>
87                 <type>pom</type>
88             </dependency>
89             <dependency>
90                 <groupId>org.opendaylight.mdsal.model</groupId>
91                 <artifactId>mdsal-model-artifacts</artifactId>
92                 <version>${mdsal.model.version}</version>
93                 <scope>import</scope>
94                 <type>pom</type>
95             </dependency>
96             <dependency>
97                 <groupId>org.opendaylight.controller</groupId>
98                 <artifactId>mdsal-artifacts</artifactId>
99                 <version>${controller.mdsal.version}</version>
100                 <scope>import</scope>
101                 <type>pom</type>
102             </dependency>
103             <dependency>
104                 <groupId>org.opendaylight.controller</groupId>
105                 <artifactId>config-artifacts</artifactId>
106                 <version>${config.version}</version>
107                 <type>pom</type>
108                 <scope>import</scope>
109             </dependency>
110
111             <!-- Third-party -->
112             <dependency>
113                 <groupId>org.glassfish</groupId>
114                 <artifactId>javax.json</artifactId>
115                 <version>${glassfish.json.version}</version>
116             </dependency>
117             <dependency>
118                 <groupId>org.apache.felix</groupId>
119                 <artifactId>org.apache.felix.metatype</artifactId>
120                 <version>${osgi.metatype.version}</version>
121             </dependency>
122             <dependency>
123                 <groupId>net.sf.ehcache</groupId>
124                 <artifactId>ehcache</artifactId>
125                 <version>${ehcache.version}</version>
126             </dependency>
127             <dependency>
128                 <groupId>org.apache.geronimo.specs</groupId>
129                 <artifactId>geronimo-jta_1.1_spec</artifactId>
130                 <version>${jta.version}</version>
131             </dependency>
132             <dependency>
133                 <groupId>org.apache.oltu.oauth2</groupId>
134                 <artifactId>org.apache.oltu.oauth2.common</artifactId>
135                 <version>${oltu.version}</version>
136             </dependency>
137             <dependency>
138                 <groupId>org.apache.oltu.oauth2</groupId>
139                 <artifactId>org.apache.oltu.oauth2.authzserver</artifactId>
140                 <version>${oltu.version}</version>
141             </dependency>
142             <dependency>
143                 <groupId>org.apache.oltu.oauth2</groupId>
144                 <artifactId>org.apache.oltu.oauth2.resourceserver</artifactId>
145                 <version>${oltu.version}</version>
146             </dependency>
147             <dependency>
148                 <groupId>com.h2database</groupId>
149                 <artifactId>h2</artifactId>
150                 <version>${h2.version}</version>
151             </dependency>
152
153             <!-- Test stuff -->
154             <dependency>
155                 <groupId>org.opendaylight.odlparent</groupId>
156                 <artifactId>features-test</artifactId>
157                 <version>${features.test.version}</version>
158                 <scope>test</scope>
159             </dependency>
160             <dependency>
161                 <groupId>javax.inject</groupId>
162                 <artifactId>javax.inject</artifactId>
163                 <version>${javax.inject.version}</version>
164                 <scope>test</scope>
165             </dependency>
166             <dependency>
167                 <groupId>org.eclipse.jetty</groupId>
168                 <artifactId>jetty-servlet-tester</artifactId>
169                 <version>${servlet.tester.version}</version>
170                 <scope>test</scope>
171             </dependency>
172         </dependencies>
173     </dependencyManagement>
174
175     <build>
176         <plugins>
177             <plugin>
178                 <groupId>org.jacoco</groupId>
179                 <artifactId>jacoco-maven-plugin</artifactId>
180                 <configuration>
181                     <includes>
182                         <include>org.opendaylight.aaa.*</include>
183                     </includes>
184                 </configuration>
185                 <executions>
186                     <execution>
187                         <id>pre-test</id>
188                         <goals>
189                             <goal>prepare-agent</goal>
190                         </goals>
191                     </execution>
192                     <execution>
193                         <id>post-test</id>
194                         <goals>
195                             <goal>report</goal>
196                         </goals>
197                         <phase>test</phase>
198                     </execution>
199                 </executions>
200             </plugin>
201             <plugin>
202                 <groupId>org.apache.maven.plugins</groupId>
203                 <artifactId>maven-checkstyle-plugin</artifactId>
204                 <configuration>
205                     <!-- checkstyle is evil -->
206                     <skip>false</skip>
207                     <failOnViolation>false</failOnViolation>
208                     <configLocation>checkstyle-logging.xml</configLocation>
209                     <consoleOutput>true</consoleOutput>
210                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
211                     <sourceDirectory>${project.basedir}</sourceDirectory>
212                     <includes>**\/*.java,**\/*.xml,**\/*.ini,**\/*.sh,**\/*.bat,**\/*.yang</includes>
213                     <excludes>**\/target\/,**\/bin\/,**\/target-ide\/,**\/src/main/yang-gen-config\/,**\/src/main/yang-gen-sal\/</excludes>
214                 </configuration>
215                 <executions>
216                     <execution>
217                         <goals>
218                             <goal>check</goal>
219                         </goals>
220                         <phase>process-sources</phase>
221                     </execution>
222                 </executions>
223                 <dependencies>
224                     <dependency>
225                         <groupId>org.opendaylight.yangtools</groupId>
226                         <artifactId>checkstyle-logging</artifactId>
227                         <version>${yangtools.version}</version>
228                     </dependency>
229                 </dependencies>
230             </plugin>
231             <plugin>
232                 <groupId>org.codehaus.mojo</groupId>
233                 <artifactId>build-helper-maven-plugin</artifactId>
234                 <executions>
235                     <execution>
236                         <phase>generate-sources</phase>
237                         <goals>
238                             <goal>add-source</goal>
239                         </goals>
240                         <configuration>
241                             <sources>
242                                 <source>${jmxGeneratorPath}</source>
243                                 <source>${salGeneratorPath}</source>
244                             </sources>
245                         </configuration>
246                     </execution>
247                 </executions>
248             </plugin>
249         </plugins>
250     </build>
251
252     <url>https://wiki.opendaylight.org/view/AAA:Main</url>
253     <scm>
254         <connection>scm:git:ssh://git.opendaylight.org:29418/aaa.git</connection>
255         <developerConnection>scm:git:ssh://git.opendaylight.org:29418/aaa.git</developerConnection>
256         <tag>HEAD</tag>
257     </scm>
258
259     <reporting>
260         <plugins>
261             <plugin>
262                 <groupId>org.codehaus.mojo</groupId>
263                 <artifactId>findbugs-maven-plugin</artifactId>
264                 <version>${findbugs.maven.plugin.version}</version>
265                 <configuration>
266                     <effort>Max</effort>
267                     <threshold>Low</threshold>
268                     <goal>site</goal>
269                 </configuration>
270             </plugin>
271             <plugin>
272                 <groupId>org.codehaus.mojo</groupId>
273                 <artifactId>jdepend-maven-plugin</artifactId>
274                 <version>${jdepend.maven.plugin.version}</version>
275             </plugin>
276         </plugins>
277     </reporting>
278 </project>