Release Carbon
[mdsal.git] / binding2 / mdsal-binding2-java-api-generator / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- vi: set et smarttab sw=4 tabstop=4: -->
3 <!--
4  Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
5
6  This program and the accompanying materials are made available under the
7  terms of the Eclipse Public License v1.0 which accompanies this distribution,
8  and is available at http://www.eclipse.org/legal/epl-v10.html
9 -->
10 <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">
11
12     <parent>
13         <groupId>org.opendaylight.odlparent</groupId>
14         <artifactId>bundle-parent</artifactId>
15         <version>1.8.4-Carbon</version>
16         <relativePath/>
17     </parent>
18
19     <modelVersion>4.0.0</modelVersion>
20     <groupId>org.opendaylight.mdsal</groupId>
21     <artifactId>mdsal-binding2-java-api-generator</artifactId>
22     <version>0.10.4-Carbon</version>
23     <packaging>bundle</packaging>
24
25     <dependencyManagement>
26         <dependencies>
27             <dependency>
28                 <groupId>org.opendaylight.mdsal</groupId>
29                 <artifactId>mdsal-artifacts</artifactId>
30                 <version>2.2.4-Carbon</version>
31                 <type>pom</type>
32                 <scope>import</scope>
33             </dependency>
34             <dependency>
35                 <groupId>org.opendaylight.yangtools</groupId>
36                 <artifactId>yangtools-artifacts</artifactId>
37                 <version>1.1.4-Carbon</version>
38                 <type>pom</type>
39                 <scope>import</scope>
40             </dependency>
41         </dependencies>
42     </dependencyManagement>
43
44     <dependencies>
45         <dependency>
46             <groupId>org.opendaylight.mdsal</groupId>
47             <artifactId>mdsal-binding2-generator-impl</artifactId>
48             <scope>test</scope>
49         </dependency>
50         <dependency>
51             <groupId>org.opendaylight.mdsal</groupId>
52             <artifactId>mdsal-binding2-generator-util</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.opendaylight.mdsal</groupId>
56             <artifactId>mdsal-binding2-util</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>org.opendaylight.yangtools</groupId>
60             <artifactId>yang-test-util</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>junit</groupId>
64             <artifactId>junit</artifactId>
65             <scope>test</scope>
66         </dependency>
67         <dependency>
68             <groupId>com.typesafe.play</groupId>
69             <artifactId>twirl-api_2.11</artifactId>
70             <version>1.1.1</version>
71         </dependency>
72         <dependency>
73             <groupId>com.google.guava</groupId>
74             <artifactId>guava</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>org.sonatype.plexus</groupId>
78             <artifactId>plexus-build-api</artifactId>
79         </dependency>
80         <dependency>
81             <groupId>org.codehaus.plexus</groupId>
82             <artifactId>plexus-container-default</artifactId>
83             <version>1.6</version>
84             <scope>provided</scope>
85             <exclusions>
86                 <!-- plexus-build-api pulls in version 1.5.8, while this pulls in 3.0.20.
87                      Dependency convergence would break if we did not specify this. -->
88                 <exclusion>
89                     <groupId>org.codehaus.plexus</groupId>
90                     <artifactId>plexus-utils</artifactId>
91                 </exclusion>
92             </exclusions>
93         </dependency>
94
95         <dependency>
96             <groupId>org.mockito</groupId>
97             <artifactId>mockito-core</artifactId>
98         </dependency>
99     </dependencies>
100
101     <build>
102         <plugins>
103             <plugin>
104                 <groupId>org.apache.felix</groupId>
105                 <artifactId>maven-bundle-plugin</artifactId>
106                 <extensions>true</extensions>
107                 <configuration>
108                     <instructions>
109                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
110                         <Import-Package>
111                             !org.sonatype.plexus.build.incremental,
112                             *
113                         </Import-Package>
114                     </instructions>
115                 </configuration>
116             </plugin>
117
118             <!-- Twirl -> compile Twirl files to Scala without Play framework dependencies needed -->
119             <plugin>
120                 <groupId>com.jakewharton.twirl</groupId>
121                 <artifactId>twirl-maven-plugin</artifactId>
122                 <version>1.0.5</version>
123                 <executions>
124                     <execution>
125                         <id>twirl-to-scala-first</id>
126                         <phase>generate-sources</phase>
127                         <goals>
128                             <goal>compile</goal>
129                         </goals>
130                     </execution>
131                 </executions>
132             </plugin>
133
134             <!-- Scala -> compile Scala files generated from Twirl -->
135             <plugin>
136                 <groupId>net.alchim31.maven</groupId>
137                 <artifactId>scala-maven-plugin</artifactId>
138                 <version>3.2.2</version>
139                 <executions>
140                     <execution>
141                         <id>scala-compile-second</id>
142                         <phase>process-resources</phase>
143                         <goals>
144                             <goal>add-source</goal>
145                             <goal>compile</goal>
146                         </goals>
147                     </execution>
148                 </executions>
149             </plugin>
150
151         </plugins>
152     </build>
153
154   <!--
155       Maven Site Configuration
156
157       The following configuration is necessary for maven-site-plugin to
158       correctly identify the correct deployment path for OpenDaylight Maven
159       sites.
160   -->
161   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
162
163   <distributionManagement>
164     <site>
165       <id>opendaylight-site</id>
166       <url>${nexus.site.url}/${project.artifactId}/</url>
167     </site>
168   </distributionManagement>
169
170 </project>