Clean up pom.xml files of maven projects
[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>15.1.1-SNAPSHOT</version>
15     <relativePath/>
16   </parent>
17
18   <groupId>io.lighty.controllers</groupId>
19   <artifactId>tpce</artifactId>
20   <version>5.0.0-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>5.0.0-SNAPSHOT</transportpce.version>
28   </properties>
29
30   <dependencies>
31     <!-- for parsing command line arguments -->
32     <dependency>
33       <groupId>commons-cli</groupId>
34       <artifactId>commons-cli</artifactId>
35       <version>1.4</version>
36     </dependency>
37     <!-- TPCE Models - BEGIN -->
38     <dependency>
39       <groupId>org.opendaylight.transportpce</groupId>
40       <artifactId>transportpce-api</artifactId>
41       <version>${transportpce.version}</version>
42     </dependency>
43     <dependency>
44       <groupId>org.opendaylight.transportpce</groupId>
45       <artifactId>transportpce-networkmodel</artifactId>
46       <version>${transportpce.version}</version>
47     </dependency>
48     <!-- TPCE Models - END -->
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     <dependency>
71       <groupId>org.opendaylight.transportpce</groupId>
72       <artifactId>transportpce-nbinotifications</artifactId>
73       <version>${transportpce.version}</version>
74     </dependency>
75     <!-- TPCE bundles - END -->
76     <dependency>
77       <groupId>io.lighty.modules</groupId>
78       <artifactId>lighty-netconf-sb</artifactId>
79     </dependency>
80     <dependency>
81       <groupId>io.lighty.modules</groupId>
82       <artifactId>lighty-restconf-nb-community</artifactId>
83     </dependency>
84     <dependency>
85       <groupId>junit</groupId>
86       <artifactId>junit</artifactId>
87       <scope>test</scope>
88     </dependency>
89     <dependency>
90       <groupId>net.jcip</groupId>
91       <artifactId>jcip-annotations</artifactId>
92       <version>1.0</version>
93       <optional>true</optional>
94     </dependency>
95     <dependency>
96       <groupId>com.github.spotbugs</groupId>
97       <artifactId>spotbugs-annotations</artifactId>
98       <version>3.1.3</version>
99       <optional>true</optional>
100     </dependency>
101     <dependency>
102       <groupId>org.eclipse.jetty</groupId>
103       <artifactId>jetty-client</artifactId>
104       <scope>test</scope>
105     </dependency>
106   </dependencies>
107
108   <build>
109     <finalName>tpce</finalName>
110     <plugins>
111       <plugin>
112         <artifactId>maven-jar-plugin</artifactId>
113         <configuration>
114           <archive>
115             <manifest>
116               <addClasspath>true</addClasspath>
117               <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
118               <addDefaultSpecificationEntries>True</addDefaultSpecificationEntries>
119             </manifest>
120           </archive>
121         </configuration>
122       </plugin>
123       <plugin>
124         <artifactId>maven-checkstyle-plugin</artifactId>
125         <configuration>
126           <configLocation>odl_checks.xml</configLocation>
127           <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
128           <!-- <sourceDirectories> are needed so that checkstyle
129             ignores the generated sources directory -->
130           <sourceDirectories>
131             <directory>${project.build.sourceDirectory}</directory>
132           </sourceDirectories>
133           <includeResources>true</includeResources>
134           <includeTestSourceDirectory>true</includeTestSourceDirectory>
135           <includeTestResources>true</includeTestResources>
136           <includes>**\/*.java</includes>
137           <excludes>
138             **/protobuff/messages/**,
139             **/thrift/gen/*.java,
140             **/module-info.java
141           </excludes>
142           <consoleOutput>true</consoleOutput>
143         </configuration>
144         <executions>
145           <execution>
146             <id>validate</id>
147             <phase>validate</phase>
148             <goals>
149               <goal>check</goal>
150             </goals>
151           </execution>
152         </executions>
153       </plugin>
154     </plugins>
155   </build>
156 </project>