Merge "Activate Swagger for Lighty"
[transportpce.git] / lighty / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Copyright (c) 2018 Pantheon Technologies s.r.o. All Rights Reserved.
3     This program and the accompanying materials are made available under the
4     terms of the Eclipse Public License v1.0 which accompanies this distribution,
5     and is available at https://www.eclipse.org/legal/epl-v10.html -->
6 <project xmlns="http://maven.apache.org/POM/4.0.0"
7     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
9   <modelVersion>4.0.0</modelVersion>
10
11   <parent>
12     <groupId>io.lighty.core</groupId>
13     <artifactId>lighty-app-parent</artifactId>
14     <version>18.0.0-SNAPSHOT</version>
15     <relativePath/>
16   </parent>
17
18   <groupId>io.lighty.controllers</groupId>
19   <artifactId>tpce</artifactId>
20   <version>7.0.1-SNAPSHOT</version>
21   <packaging>jar</packaging>
22
23   <properties>
24     <application.main.class>io.lighty.controllers.tpce.Main</application.main.class>
25     <application.attach.zip>true</application.attach.zip>
26     <maven.deploy.skip>true</maven.deploy.skip>
27     <transportpce.version>7.0.1-SNAPSHOT</transportpce.version>
28     <transportpce.models.version>18.0.1</transportpce.models.version>
29   </properties>
30
31   <dependencyManagement>
32     <dependencies>
33       <dependency>
34         <groupId>org.opendaylight.transportpce.models</groupId>
35         <artifactId>transportpce-models-artifacts</artifactId>
36         <version>${transportpce.models.version}</version>
37         <type>pom</type>
38         <scope>import</scope>
39       </dependency>
40     </dependencies>
41   </dependencyManagement>
42
43   <dependencies>
44     <!-- for parsing command line arguments -->
45     <dependency>
46       <groupId>commons-cli</groupId>
47       <artifactId>commons-cli</artifactId>
48       <version>1.4</version>
49     </dependency>
50     <!-- TPCE Models - BEGIN -->
51     <dependency>
52      <groupId>org.opendaylight.transportpce.models</groupId>
53       <artifactId>openroadm-common-1.2.1</artifactId>
54     </dependency>
55     <dependency>
56       <groupId>org.opendaylight.transportpce.models</groupId>
57       <artifactId>openroadm-common-2.2.1</artifactId>
58     </dependency>
59     <dependency>
60       <groupId>org.opendaylight.transportpce.models</groupId>
61       <artifactId>openroadm-common-7.1.0</artifactId>
62     </dependency>
63     <dependency>
64       <groupId>org.opendaylight.transportpce.models</groupId>
65       <artifactId>openroadm-common-10.1.0</artifactId>
66     </dependency>
67     <dependency>
68       <groupId>org.opendaylight.transportpce.models</groupId>
69       <artifactId>openroadm-device-1.2.1</artifactId>
70     </dependency>
71     <dependency>
72       <groupId>org.opendaylight.transportpce.models</groupId>
73       <artifactId>openroadm-device-2.2.1</artifactId>
74     </dependency>
75     <dependency>
76       <groupId>org.opendaylight.transportpce.models</groupId>
77       <artifactId>openroadm-device-7.1.0</artifactId>
78     </dependency>
79     <dependency>
80       <groupId>org.opendaylight.transportpce.models</groupId>
81       <artifactId>openroadm-network-10.1.0</artifactId>
82     </dependency>
83     <dependency>
84       <groupId>org.opendaylight.transportpce.models</groupId>
85       <artifactId>openroadm-service-10.1.0</artifactId>
86     </dependency>
87     <dependency>
88       <groupId>org.opendaylight.transportpce.models</groupId>
89       <artifactId>tapi-2.1.1</artifactId>
90     </dependency>
91     <dependency>
92       <groupId>org.opendaylight.transportpce</groupId>
93       <artifactId>transportpce-api</artifactId>
94       <version>${transportpce.version}</version>
95     </dependency>
96     <dependency>
97       <groupId>org.opendaylight.transportpce</groupId>
98       <artifactId>transportpce-networkmodel</artifactId>
99       <version>${transportpce.version}</version>
100     </dependency>
101     <!-- TPCE Models - END -->
102     <!-- TPCE bundles - BEGIN -->
103     <dependency>
104       <groupId>org.opendaylight.transportpce</groupId>
105       <artifactId>transportpce-pce</artifactId>
106       <version>${transportpce.version}</version>
107     </dependency>
108     <dependency>
109       <groupId>org.opendaylight.transportpce</groupId>
110       <artifactId>transportpce-olm</artifactId>
111       <version>${transportpce.version}</version>
112     </dependency>
113     <dependency>
114       <groupId>org.opendaylight.transportpce</groupId>
115       <artifactId>transportpce-servicehandler</artifactId>
116       <version>${transportpce.version}</version>
117     </dependency>
118     <dependency>
119       <groupId>org.opendaylight.transportpce</groupId>
120       <artifactId>transportpce-tapi</artifactId>
121       <version>${transportpce.version}</version>
122     </dependency>
123     <dependency>
124       <groupId>org.opendaylight.transportpce</groupId>
125       <artifactId>transportpce-nbinotifications</artifactId>
126       <version>${transportpce.version}</version>
127     </dependency>
128     <!-- TPCE bundles - END -->
129     <dependency>
130       <groupId>io.lighty.modules</groupId>
131       <artifactId>lighty-netconf-sb</artifactId>
132     </dependency>
133     <dependency>
134       <groupId>io.lighty.modules</groupId>
135       <artifactId>lighty-restconf-nb-community</artifactId>
136     </dependency>
137     <dependency>
138       <groupId>io.lighty.modules</groupId>
139       <artifactId>lighty-swagger</artifactId>
140     </dependency>
141     <dependency>
142       <groupId>junit</groupId>
143       <artifactId>junit</artifactId>
144       <scope>test</scope>
145     </dependency>
146     <dependency>
147       <groupId>net.jcip</groupId>
148       <artifactId>jcip-annotations</artifactId>
149       <version>1.0</version>
150       <optional>true</optional>
151     </dependency>
152     <dependency>
153       <groupId>com.github.spotbugs</groupId>
154       <artifactId>spotbugs-annotations</artifactId>
155       <optional>true</optional>
156     </dependency>
157     <dependency>
158       <groupId>org.eclipse.jetty</groupId>
159       <artifactId>jetty-client</artifactId>
160       <scope>test</scope>
161     </dependency>
162   </dependencies>
163
164   <build>
165     <finalName>tpce</finalName>
166     <plugins>
167       <plugin>
168         <artifactId>maven-jar-plugin</artifactId>
169         <configuration>
170           <archive>
171             <manifest>
172               <addClasspath>true</addClasspath>
173               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
174               <addDefaultSpecificationEntries>True</addDefaultSpecificationEntries>
175             </manifest>
176           </archive>
177         </configuration>
178       </plugin>
179       <plugin>
180         <artifactId>maven-checkstyle-plugin</artifactId>
181         <configuration>
182           <configLocation>odl_checks.xml</configLocation>
183           <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
184           <!-- <sourceDirectories> are needed so that checkstyle
185             ignores the generated sources directory -->
186           <sourceDirectories>
187             <directory>${project.build.sourceDirectory}</directory>
188           </sourceDirectories>
189           <includeResources>true</includeResources>
190           <includeTestSourceDirectory>true</includeTestSourceDirectory>
191           <includeTestResources>true</includeTestResources>
192           <includes>**\/*.java</includes>
193           <excludes>
194             **/protobuff/messages/**,
195             **/thrift/gen/*.java,
196             **/module-info.java
197           </excludes>
198           <consoleOutput>true</consoleOutput>
199         </configuration>
200         <executions>
201           <execution>
202             <id>validate</id>
203             <phase>validate</phase>
204             <goals>
205               <goal>check</goal>
206             </goals>
207           </execution>
208         </executions>
209       </plugin>
210     </plugins>
211   </build>
212 </project>