fix Lighty.io build
[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>13.0.0</version>
15         <!--
16         lighty-core is usually released a few days before the official Opendaylight release.
17         13.0.0 = Aluminium release of 2020/09/18
18         -->
19         <relativePath />
20     </parent>
21
22     <groupId>io.lighty.controllers</groupId>
23     <artifactId>tpce</artifactId>
24     <version>3.0.0-SNAPSHOT</version>
25     <packaging>jar</packaging>
26
27     <properties>
28         <application.main.class>io.lighty.controllers.tpce.Main</application.main.class>
29         <application.attach.zip>true</application.attach.zip>
30         <maven.deploy.skip>true</maven.deploy.skip>
31         <transportpce.version>3.0.0-SNAPSHOT</transportpce.version>
32     </properties>
33
34     <dependencies>
35
36         <!-- TPCE Models - BEGIN -->
37         <dependency>
38             <groupId>org.opendaylight.transportpce</groupId>
39             <artifactId>transportpce-api</artifactId>
40             <version>${transportpce.version}</version>
41         </dependency>
42         <dependency>
43             <groupId>org.opendaylight.transportpce</groupId>
44             <artifactId>transportpce-networkmodel</artifactId>
45             <version>${transportpce.version}</version>
46         </dependency>
47         <!-- TPCE Models - END -->
48
49         <!-- TPCE bundles - BEGIN -->
50         <dependency>
51             <groupId>org.opendaylight.transportpce</groupId>
52             <artifactId>transportpce-pce</artifactId>
53             <version>${transportpce.version}</version>
54         </dependency>
55         <dependency>
56             <groupId>org.opendaylight.transportpce</groupId>
57             <artifactId>transportpce-olm</artifactId>
58             <version>${transportpce.version}</version>
59         </dependency>
60         <dependency>
61             <groupId>org.opendaylight.transportpce</groupId>
62             <artifactId>transportpce-servicehandler</artifactId>
63             <version>${transportpce.version}</version>
64         </dependency>
65         <dependency>
66             <groupId>org.opendaylight.transportpce</groupId>
67             <artifactId>transportpce-tapi</artifactId>
68             <version>${transportpce.version}</version>
69         </dependency>
70         <!-- TPCE bundles - END -->
71
72         <dependency>
73             <groupId>io.lighty.modules</groupId>
74             <artifactId>lighty-netconf-sb</artifactId>
75         </dependency>
76         <dependency>
77             <groupId>io.lighty.modules</groupId>
78             <artifactId>lighty-restconf-nb-community</artifactId>
79         </dependency>
80
81         <dependency>
82             <groupId>junit</groupId>
83             <artifactId>junit</artifactId>
84             <scope>test</scope>
85         </dependency>
86
87         <dependency>
88             <groupId>net.jcip</groupId>
89             <artifactId>jcip-annotations</artifactId>
90             <version>1.0</version>
91             <optional>true</optional>
92         </dependency>
93         <dependency>
94             <groupId>com.github.spotbugs</groupId>
95             <artifactId>spotbugs-annotations</artifactId>
96             <version>3.1.3</version>
97             <optional>true</optional>
98         </dependency>
99
100     </dependencies>
101     <build>
102         <finalName>tpce</finalName>
103         <plugins>
104             <plugin>
105                 <artifactId>maven-jar-plugin</artifactId>
106                 <configuration>
107                     <archive>
108                         <manifest>
109                             <addClasspath>true</addClasspath>
110                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
111                             <addDefaultSpecificationEntries>True</addDefaultSpecificationEntries>
112                         </manifest>
113                     </archive>
114                 </configuration>
115             </plugin>
116             <plugin>
117                 <artifactId>maven-checkstyle-plugin</artifactId>
118                 <configuration>
119                     <configLocation>odl_checks.xml</configLocation>
120                     <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
121                     <!-- <sourceDirectories> are needed so that checkstyle
122                         ignores the generated sources directory -->
123                     <sourceDirectories>
124                         <directory>${project.build.sourceDirectory}</directory>
125                     </sourceDirectories>
126                     <includeResources>true</includeResources>
127                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
128                     <includeTestResources>true</includeTestResources>
129                     <includes>**\/*.java</includes>
130                     <excludes>
131                         **/protobuff/messages/**,
132                         **/thrift/gen/*.java,
133                         **/module-info.java
134                     </excludes>
135                     <consoleOutput>true</consoleOutput>
136                 </configuration>
137                 <executions>
138                     <execution>
139                         <id>validate</id>
140                         <phase>validate</phase>
141                         <goals>
142                             <goal>check</goal>
143                         </goals>
144                     </execution>
145                 </executions>
146             </plugin>
147         </plugins>
148     </build>
149 </project>