Add perltidy to pre-commit linters
[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>12.1.0</version>
15         <relativePath />
16     </parent>
17
18     <groupId>io.lighty.controllers</groupId>
19     <artifactId>tpce</artifactId>
20     <version>2.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>2.0.0-SNAPSHOT</transportpce.version>
28     </properties>
29
30     <dependencies>
31
32         <!-- TPCE Models - BEGIN -->
33         <dependency>
34             <groupId>org.opendaylight.transportpce</groupId>
35             <artifactId>transportpce-api</artifactId>
36             <version>${transportpce.version}</version>
37         </dependency>
38         <dependency>
39             <groupId>org.opendaylight.transportpce</groupId>
40             <artifactId>transportpce-networkmodel</artifactId>
41             <version>${transportpce.version}</version>
42         </dependency>
43         <!-- TPCE Models - END -->
44
45         <!-- TPCE bundles - BEGIN -->
46         <dependency>
47             <groupId>org.opendaylight.transportpce</groupId>
48             <artifactId>transportpce-pce</artifactId>
49             <version>${transportpce.version}</version>
50         </dependency>
51         <dependency>
52             <groupId>org.opendaylight.transportpce</groupId>
53             <artifactId>transportpce-olm</artifactId>
54             <version>${transportpce.version}</version>
55         </dependency>
56         <dependency>
57             <groupId>org.opendaylight.transportpce</groupId>
58             <artifactId>transportpce-servicehandler</artifactId>
59             <version>${transportpce.version}</version>
60         </dependency>
61         <dependency>
62             <groupId>org.opendaylight.transportpce</groupId>
63             <artifactId>transportpce-tapi</artifactId>
64             <version>${transportpce.version}</version>
65         </dependency>
66         <!-- TPCE bundles - END -->
67
68         <dependency>
69             <groupId>io.lighty.modules</groupId>
70             <artifactId>lighty-netconf-sb</artifactId>
71         </dependency>
72         <dependency>
73             <groupId>io.lighty.modules</groupId>
74             <artifactId>lighty-restconf-nb-community</artifactId>
75         </dependency>
76
77         <dependency>
78             <groupId>junit</groupId>
79             <artifactId>junit</artifactId>
80             <scope>test</scope>
81         </dependency>
82
83     </dependencies>
84     <build>
85         <finalName>tpce</finalName>
86         <plugins>
87             <plugin>
88                 <artifactId>maven-jar-plugin</artifactId>
89                 <configuration>
90                     <archive>
91                         <manifest>
92                             <addClasspath>true</addClasspath>
93                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
94                             <addDefaultSpecificationEntries>True</addDefaultSpecificationEntries>
95                         </manifest>
96                     </archive>
97                 </configuration>
98             </plugin>
99             <plugin>
100                 <artifactId>maven-checkstyle-plugin</artifactId>
101                 <configuration>
102                     <configLocation>odl_checks.xml</configLocation>
103                     <suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
104                     <!-- <sourceDirectories> are needed so that checkstyle
105                         ignores the generated sources directory -->
106                     <sourceDirectories>
107                         <directory>${project.build.sourceDirectory}</directory>
108                     </sourceDirectories>
109                     <includeResources>true</includeResources>
110                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
111                     <includeTestResources>true</includeTestResources>
112                     <includes>**\/*.java</includes>
113                     <excludes>
114                         **/protobuff/messages/**,
115                         **/thrift/gen/*.java,
116                         **/module-info.java
117                     </excludes>
118                     <consoleOutput>true</consoleOutput>
119                 </configuration>
120                 <executions>
121                     <execution>
122                         <id>validate</id>
123                         <phase>validate</phase>
124                         <goals>
125                             <goal>check</goal>
126                         </goals>
127                     </execution>
128                 </executions>
129             </plugin>
130         </plugins>
131     </build>
132 </project>