0d689db66ccfba1bbbb8a5471e3e5f08d8524739
[mdsal.git] / binding2 / mdsal-binding2-generator-impl / 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-generator-impl</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.javassist</groupId>
47             <artifactId>javassist</artifactId>
48         </dependency>
49
50         <dependency>
51             <groupId>org.opendaylight.yangtools</groupId>
52             <artifactId>yang-parser-impl</artifactId>
53         </dependency>
54         <dependency>
55             <groupId>org.opendaylight.yangtools</groupId>
56             <artifactId>yang-data-impl</artifactId>
57         </dependency>
58         <dependency>
59             <groupId>org.opendaylight.yangtools</groupId>
60             <artifactId>yang-test-util</artifactId>
61         </dependency>
62         <dependency>
63             <groupId>org.opendaylight.mdsal</groupId>
64             <artifactId>mdsal-binding2-generator-api</artifactId>
65         </dependency>
66         <dependency>
67             <groupId>org.opendaylight.mdsal</groupId>
68             <artifactId>mdsal-binding2-generator-util</artifactId>
69         </dependency>
70         <dependency>
71             <groupId>org.opendaylight.mdsal</groupId>
72             <artifactId>mdsal-binding2-util</artifactId>
73         </dependency>
74         <dependency>
75             <groupId>com.google.code.findbugs</groupId>
76             <artifactId>jsr305</artifactId>
77             <scope>provided</scope>
78         </dependency>
79
80         <dependency>
81             <groupId>junit</groupId>
82             <artifactId>junit</artifactId>
83         </dependency>
84         <dependency>
85           <groupId>org.mockito</groupId>
86           <artifactId>mockito-core</artifactId>
87         </dependency>
88
89         <dependency>
90             <groupId>org.apache.commons</groupId>
91             <artifactId>commons-lang3</artifactId>
92         </dependency>
93         <dependency>
94             <groupId>com.google.guava</groupId>
95             <artifactId>guava</artifactId>
96         </dependency>
97         <dependency>
98             <groupId>com.typesafe.play</groupId>
99             <artifactId>twirl-api_2.11</artifactId>
100             <version>1.1.1</version>
101         </dependency>
102     </dependencies>
103
104     <build>
105         <plugins>
106             <plugin>
107                 <groupId>org.apache.felix</groupId>
108                 <artifactId>maven-bundle-plugin</artifactId>
109                 <extensions>true</extensions>
110                 <configuration>
111                     <instructions>
112                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
113                         <Export-Package>
114                             {local-packages},
115                             org.opendaylight.mdsal.binding2.generator.impl,
116                         </Export-Package>
117                     </instructions>
118                 </configuration>
119             </plugin>
120
121             <!-- Twirl -> compile Twirl files to Scala without Play framework dependencies needed -->
122             <plugin>
123                 <groupId>com.jakewharton.twirl</groupId>
124                 <artifactId>twirl-maven-plugin</artifactId>
125                 <version>1.0.4</version>
126                 <executions>
127                     <execution>
128                         <id>twirl-to-scala-first</id>
129                         <phase>generate-sources</phase>
130                         <goals>
131                             <goal>compile</goal>
132                         </goals>
133                     </execution>
134                 </executions>
135             </plugin>
136
137             <!-- Scala -> compile Scala files generated from Twirl -->
138             <plugin>
139                 <groupId>net.alchim31.maven</groupId>
140                 <artifactId>scala-maven-plugin</artifactId>
141                 <version>3.2.2</version>
142                 <executions>
143                     <execution>
144                         <id>scala-compile-second</id>
145                         <phase>process-resources</phase>
146                         <goals>
147                             <goal>add-source</goal>
148                             <goal>compile</goal>
149                         </goals>
150                     </execution>
151                 </executions>
152             </plugin>
153
154         </plugins>
155     </build>
156
157
158   <!--
159       Maven Site Configuration
160
161       The following configuration is necessary for maven-site-plugin to
162       correctly identify the correct deployment path for OpenDaylight Maven
163       sites.
164   -->
165   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
166
167   <distributionManagement>
168     <site>
169       <id>opendaylight-site</id>
170       <url>${nexus.site.url}/${project.artifactId}/</url>
171     </site>
172   </distributionManagement>
173
174 </project>