9f6dc691ae0b678b9ef15e5b5c425b939a2f87c6
[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.0-SNAPSHOT</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.0-SNAPSHOT</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.0-SNAPSHOT</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.0-SNAPSHOT</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>junit</groupId>
56             <artifactId>junit</artifactId>
57             <scope>test</scope>
58         </dependency>
59         <dependency>
60             <groupId>com.typesafe.play</groupId>
61             <artifactId>twirl-api_2.11</artifactId>
62             <version>1.1.1</version>
63         </dependency>
64         <dependency>
65             <groupId>com.google.guava</groupId>
66             <artifactId>guava</artifactId>
67         </dependency>
68         <dependency>
69             <groupId>org.sonatype.plexus</groupId>
70             <artifactId>plexus-build-api</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>org.codehaus.plexus</groupId>
74             <artifactId>plexus-container-default</artifactId>
75             <version>1.6</version>
76             <scope>provided</scope>
77             <exclusions>
78                 <!-- plexus-build-api pulls in version 1.5.8, while this pulls in 3.0.20.
79                      Dependency convergence would break if we did not specify this. -->
80                 <exclusion>
81                     <groupId>org.codehaus.plexus</groupId>
82                     <artifactId>plexus-utils</artifactId>
83                 </exclusion>
84             </exclusions>
85         </dependency>
86
87         <dependency>
88             <groupId>org.mockito</groupId>
89             <artifactId>mockito-core</artifactId>
90         </dependency>
91     </dependencies>
92
93     <build>
94         <plugins>
95             <plugin>
96                 <groupId>org.apache.felix</groupId>
97                 <artifactId>maven-bundle-plugin</artifactId>
98                 <extensions>true</extensions>
99                 <configuration>
100                     <instructions>
101                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
102                         <Import-Package>
103                             !org.sonatype.plexus.build.incremental,
104                             *
105                         </Import-Package>
106                     </instructions>
107                 </configuration>
108             </plugin>
109
110             <!-- Twirl -> compile Twirl files to Scala without Play framework dependencies needed -->
111             <plugin>
112                 <groupId>com.jakewharton.twirl</groupId>
113                 <artifactId>twirl-maven-plugin</artifactId>
114                 <version>1.0.4</version>
115                 <executions>
116                     <execution>
117                         <id>twirl-to-scala-first</id>
118                         <phase>generate-sources</phase>
119                         <goals>
120                             <goal>compile</goal>
121                         </goals>
122                     </execution>
123                 </executions>
124             </plugin>
125
126             <!-- Scala -> compile Scala files generated from Twirl -->
127             <plugin>
128                 <groupId>net.alchim31.maven</groupId>
129                 <artifactId>scala-maven-plugin</artifactId>
130                 <version>3.2.2</version>
131                 <executions>
132                     <execution>
133                         <id>scala-compile-second</id>
134                         <phase>process-resources</phase>
135                         <goals>
136                             <goal>add-source</goal>
137                             <goal>compile</goal>
138                         </goals>
139                     </execution>
140                 </executions>
141             </plugin>
142
143         </plugins>
144     </build>
145
146   <!--
147       Maven Site Configuration
148
149       The following configuration is necessary for maven-site-plugin to
150       correctly identify the correct deployment path for OpenDaylight Maven
151       sites.
152   -->
153   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
154
155   <distributionManagement>
156     <site>
157       <id>opendaylight-site</id>
158       <url>${nexus.site.url}/${project.artifactId}/</url>
159     </site>
160   </distributionManagement>
161
162 </project>