c463fc472c760e02b36c519afc6c55fe5a052f5a
[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.mdsal</groupId>
14         <artifactId>mdsal-binding2</artifactId>
15         <version>0.9.4-SNAPSHOT</version>
16     </parent>
17
18     <modelVersion>4.0.0</modelVersion>
19     <artifactId>mdsal-binding2-java-api-generator</artifactId>
20
21     <build>
22         <plugins>
23             <plugin>
24                 <artifactId>maven-jar-plugin</artifactId>
25             </plugin>
26             <plugin>
27                 <groupId>org.apache.felix</groupId>
28                 <artifactId>maven-bundle-plugin</artifactId>
29                 <extensions>true</extensions>
30                 <configuration>
31                     <instructions>
32                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
33                         <Import-Package>
34                             !org.sonatype.plexus.build.incremental,
35                             *
36                         </Import-Package>
37                     </instructions>
38                 </configuration>
39             </plugin>
40
41             <!-- Twirl -> compile Twirl files to Scala without Play framework dependencies needed -->
42             <plugin>
43                 <groupId>com.jakewharton.twirl</groupId>
44                 <artifactId>twirl-maven-plugin</artifactId>
45                 <version>1.0.4</version>
46                 <executions>
47                     <execution>
48                         <id>twirl-to-scala-first</id>
49                         <phase>generate-sources</phase>
50                         <goals>
51                             <goal>compile</goal>
52                         </goals>
53                     </execution>
54                 </executions>
55             </plugin>
56
57             <!-- Scala -> compile Scala files, in this example generated from Twirl -->
58             <plugin>
59                 <groupId>net.alchim31.maven</groupId>
60                 <artifactId>scala-maven-plugin</artifactId>
61                 <version>3.2.2</version>
62                 <executions>
63                     <execution>
64                         <id>scala-compile-second</id>
65                         <phase>process-resources</phase>
66                         <goals>
67                             <goal>add-source</goal>
68                             <goal>compile</goal>
69                         </goals>
70                     </execution>
71                 </executions>
72             </plugin>
73
74         </plugins>
75     </build>
76
77     <dependencies>
78         <dependency>
79             <groupId>org.opendaylight.mdsal</groupId>
80             <artifactId>mdsal-binding2-generator-impl</artifactId>
81             <scope>test</scope>
82         </dependency>
83         <dependency>
84             <groupId>org.opendaylight.mdsal</groupId>
85             <artifactId>mdsal-binding2-generator-util</artifactId>
86         </dependency>
87         <dependency>
88             <groupId>junit</groupId>
89             <artifactId>junit</artifactId>
90             <scope>test</scope>
91         </dependency>
92         <dependency>
93             <groupId>com.typesafe.play</groupId>
94             <artifactId>twirl-api_2.11</artifactId>
95             <version>1.1.1</version>
96         </dependency>
97         <dependency>
98             <groupId>com.google.guava</groupId>
99             <artifactId>guava</artifactId>
100         </dependency>
101         <dependency>
102             <groupId>org.sonatype.plexus</groupId>
103             <artifactId>plexus-build-api</artifactId>
104         </dependency>
105         <dependency>
106             <groupId>org.codehaus.plexus</groupId>
107             <artifactId>plexus-container-default</artifactId>
108             <version>1.6</version>
109             <scope>provided</scope>
110             <exclusions>
111                 <!-- plexus-build-api pulls in version 1.5.8, while this pulls in 3.0.20.
112                      Dependency convergence would break if we did not specify this. -->
113                 <exclusion>
114                     <groupId>org.codehaus.plexus</groupId>
115                     <artifactId>plexus-utils</artifactId>
116                 </exclusion>
117             </exclusions>
118         </dependency>
119
120         <dependency>
121             <groupId>org.mockito</groupId>
122             <artifactId>mockito-core</artifactId>
123         </dependency>
124     </dependencies>
125
126
127   <!--
128       Maven Site Configuration
129
130       The following configuration is necessary for maven-site-plugin to
131       correctly identify the correct deployment path for OpenDaylight Maven
132       sites.
133   -->
134   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
135
136   <distributionManagement>
137     <site>
138       <id>opendaylight-site</id>
139       <url>${nexus.site.url}/${project.artifactId}/</url>
140     </site>
141   </distributionManagement>
142
143 </project>