Bug 1411-4: MDSAL Binding2 Generator Impl
[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.mdsal</groupId>
14         <artifactId>mdsal-binding2</artifactId>
15         <version>0.9.0-SNAPSHOT</version>
16     </parent>
17
18     <modelVersion>4.0.0</modelVersion>
19     <artifactId>mdsal-binding2-generator-impl</artifactId>
20     <packaging>bundle</packaging>
21
22     <dependencies>
23         <dependency>
24             <groupId>org.javassist</groupId>
25             <artifactId>javassist</artifactId>
26         </dependency>
27
28         <dependency>
29             <groupId>org.opendaylight.yangtools</groupId>
30             <artifactId>yang-parser-impl</artifactId>
31         </dependency>
32         <dependency>
33             <groupId>org.opendaylight.yangtools</groupId>
34             <artifactId>yang-data-impl</artifactId>
35         </dependency>
36         <dependency>
37             <groupId>org.opendaylight.mdsal</groupId>
38             <artifactId>mdsal-binding2-generator-api</artifactId>
39         </dependency>
40         <dependency>
41             <groupId>org.opendaylight.mdsal</groupId>
42             <artifactId>mdsal-binding2-generator-util</artifactId>
43         </dependency>
44         <dependency>
45             <groupId>com.google.code.findbugs</groupId>
46             <artifactId>jsr305</artifactId>
47             <scope>provided</scope>
48         </dependency>
49
50         <dependency>
51             <groupId>junit</groupId>
52             <artifactId>junit</artifactId>
53         </dependency>
54         <dependency>
55           <groupId>org.mockito</groupId>
56           <artifactId>mockito-core</artifactId>
57         </dependency>
58
59         <dependency>
60             <groupId>org.apache.commons</groupId>
61             <artifactId>commons-lang3</artifactId>
62         </dependency>
63         <dependency>
64             <groupId>com.google.guava</groupId>
65             <artifactId>guava</artifactId>
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     </dependencies>
73
74     <build>
75         <plugins>
76             <plugin>
77                 <groupId>org.apache.felix</groupId>
78                 <artifactId>maven-bundle-plugin</artifactId>
79                 <extensions>true</extensions>
80                 <configuration>
81                     <instructions>
82                         <Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
83                         <Export-Package>
84                             {local-packages},
85                             org.opendaylight.mdsal.binding2.generator.impl,
86                         </Export-Package>
87                     </instructions>
88                 </configuration>
89             </plugin>
90
91             <!-- Twirl -> compile Twirl files to Scala without Play framework dependencies needed -->
92             <plugin>
93                 <groupId>com.jakewharton.twirl</groupId>
94                 <artifactId>twirl-maven-plugin</artifactId>
95                 <version>1.0.4</version>
96                 <executions>
97                     <execution>
98                         <id>twirl-to-scala-first</id>
99                         <phase>generate-sources</phase>
100                         <goals>
101                             <goal>compile</goal>
102                         </goals>
103                     </execution>
104                 </executions>
105             </plugin>
106
107             <!-- Scala -> compile Scala files generated from Twirl -->
108             <plugin>
109                 <groupId>net.alchim31.maven</groupId>
110                 <artifactId>scala-maven-plugin</artifactId>
111                 <version>3.2.2</version>
112                 <executions>
113                     <execution>
114                         <id>scala-compile-second</id>
115                         <phase>process-resources</phase>
116                         <goals>
117                             <goal>add-source</goal>
118                             <goal>compile</goal>
119                         </goals>
120                     </execution>
121                 </executions>
122             </plugin>
123
124         </plugins>
125     </build>
126
127
128   <!--
129       Maven Site Configuration
130
131       The following configuration is necessary for maven-site-plugin to
132       correctly identify the correct deployment path for OpenDaylight Maven
133       sites.
134   -->
135   <url>${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/</url>
136
137   <distributionManagement>
138     <site>
139       <id>opendaylight-site</id>
140       <url>${nexus.site.url}/${project.artifactId}/</url>
141     </site>
142   </distributionManagement>
143
144 </project>