71e3999eb9f47ae6f53a87ac4e572391343545ed
[policy/engine.git] / PyPDPServer / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ============LICENSE_START=======================================================
4   ECOMP Policy Engine
5   ================================================================================
6   Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
7   ================================================================================
8   Licensed under the Apache License, Version 2.0 (the "License");
9   you may not use this file except in compliance with the License.
10   You may obtain a copy of the License at
11   
12        http://www.apache.org/licenses/LICENSE-2.0
13   
14   Unless required by applicable law or agreed to in writing, software
15   distributed under the License is distributed on an "AS IS" BASIS,
16   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17   See the License for the specific language governing permissions and
18   limitations under the License.
19   ============LICENSE_END=========================================================
20   -->
21
22 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
24
25         <modelVersion>4.0.0</modelVersion>
26         <artifactId>PyPDPServer</artifactId>
27         <packaging>war</packaging>
28
29         <description>PyPDP Server</description>
30
31         <parent>
32                 <groupId>org.openecomp.policy.engine</groupId>
33                 <artifactId>PolicyEngineSuite</artifactId>
34                 <version>1.0.0-SNAPSHOT</version>
35         </parent>
36
37         <properties>
38                 <start-class>org.openecomp.policy.pypdp.controller.Application</start-class>
39                 <maven.compiler.target>1.8</maven.compiler.target>
40                 <maven.compiler.source>1.8</maven.compiler.source>
41                 <!-- <tomcat.version>8.0.14</tomcat.version> -->
42
43                 <sonar.language>java</sonar.language>
44                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
45                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
46                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
47                 <sonar.jacoco.itReportPath>/opt/app/jacoco-it.exec</sonar.jacoco.itReportPath>
48                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
49                 <nexusproxy>https://nexus.openecomp.org</nexusproxy>
50                 <springboot.version>1.3.3.RELEASE</springboot.version>
51         </properties>
52
53         <repositories>
54                 <repository>
55                         <id>spring-releases</id>
56                         <url>https://repo.spring.io/libs-release</url>
57                 </repository>
58                 <repository>
59                         <id>ecomp-releases</id>
60                         <name>OpenECOMP Release Repository</name>
61                         <url>${nexusproxy}/content/repositories/releases/</url>
62                 </repository>
63                 <repository>
64                         <id>ecomp-staging</id>
65                         <name>OpenECOMP Staging Repository</name>
66                         <url>${nexusproxy}/content/repositories/staging/</url>
67                 </repository>
68         </repositories>
69         <pluginRepositories>
70                 <pluginRepository>
71                         <id>spring-releases</id>
72                         <url>https://repo.spring.io/libs-release</url>
73                 </pluginRepository>
74         </pluginRepositories>
75
76         <distributionManagement>
77                 <repository>
78                         <id>ecomp-releases</id>
79                         <name>OpenECOMP Release Repository</name>
80                         <url>${nexusproxy}/content/repositories/releases/</url>
81                 </repository>
82                 <snapshotRepository>
83                         <id>ecomp-snapshots</id>
84                         <name>OpenECOMP Snapshot Repository</name>
85                         <url>${nexusproxy}/content/repositories/snapshots/</url>
86                 </snapshotRepository>
87         </distributionManagement>
88         
89         <dependencyManagement>
90                 <dependencies>
91                         <dependency>
92                      <groupId>org.springframework.boot</groupId>
93                      <artifactId>spring-boot-dependencies</artifactId>
94                      <version>${springboot.version}</version>
95                      <type>pom</type>
96                      <scope>import</scope>
97                  </dependency>
98                 </dependencies>
99         </dependencyManagement>
100
101         <dependencies>
102                 <dependency>
103                         <groupId>org.openecomp.policy.engine</groupId>
104                         <artifactId>PolicyEngineAPI</artifactId>
105                         <version>${project.version}</version>
106                         <exclusions>
107                                 <exclusion>
108                                         <groupId>javax.websocket</groupId>
109                                         <artifactId>javax.websocket-api</artifactId>
110                                 </exclusion>
111                                 <exclusion>
112                                         <groupId>com.google.guava</groupId>
113                                         <artifactId>guava</artifactId>
114                                 </exclusion>
115                                 <exclusion>
116                                         <artifactId>slf4j-log4j12</artifactId>
117                                         <groupId>org.slf4j</groupId>
118                                 </exclusion>
119                                 <exclusion>
120                                         <groupId>org.springframework</groupId>
121                                         <artifactId>spring-mock</artifactId>
122                                 </exclusion>
123                         </exclusions>
124                 </dependency>
125                 <dependency>
126                         <groupId>org.springframework.boot</groupId>
127                         <artifactId>spring-boot-starter-web</artifactId>
128              <version>${springboot.version}</version>
129                         <exclusions>
130                                 <exclusion>
131                                         <groupId>org.slf4j</groupId>
132                                         <artifactId>log4j-over-slf4j</artifactId>
133                                 </exclusion>
134                                 <exclusion>
135                                         <artifactId>logback-classic</artifactId>
136                                         <groupId>ch.qos.logback</groupId>
137                                 </exclusion>
138                                 <exclusion>
139                                         <artifactId>logback-core</artifactId>
140                                         <groupId>ch.qos.logback</groupId>
141                                 </exclusion>
142                         </exclusions>
143                 </dependency>
144                 <dependency>
145                         <groupId>javax.servlet</groupId>
146                         <artifactId>javax.servlet-api</artifactId>
147                         <version>3.0.1</version>
148                         <scope>provided</scope>
149                 </dependency>
150                 <dependency>
151                         <groupId>io.springfox</groupId>
152                         <artifactId>springfox-swagger2</artifactId>
153                         <version>2.4.0</version>
154                 </dependency>
155                 <dependency>
156                         <groupId>io.springfox</groupId>
157                         <artifactId>springfox-swagger-ui</artifactId>
158                         <version>2.4.0</version>
159                 </dependency>
160                 <dependency>
161                         <groupId>org.springframework</groupId>
162                         <artifactId>spring-web</artifactId>
163                         <version>4.2.5.RELEASE</version>
164                 </dependency>
165                 <dependency>
166                         <groupId>org.glassfish</groupId>
167                         <artifactId>javax.json</artifactId>
168                         <version>1.0.4</version>
169                 </dependency>
170                 <dependency>
171                         <groupId>org.apache.httpcomponents</groupId>
172                         <artifactId>httpclient</artifactId>
173                         <version>4.2.4</version>
174                 </dependency>
175                 <dependency>
176                         <groupId>commons-io</groupId>
177                         <artifactId>commons-io</artifactId>
178                         <version>2.4</version>
179                 </dependency>
180                 <dependency>
181                         <groupId>javax.validation</groupId>
182                         <artifactId>validation-api</artifactId>
183                         <version>1.1.0.Final</version>
184                 </dependency>
185                 <dependency>
186                         <groupId>com.google.guava</groupId>
187                         <artifactId>guava</artifactId>
188                         <version>19.0</version>
189                 </dependency>
190                 <dependency>
191                         <groupId>ch.qos.logback</groupId>
192                         <artifactId>logback-core</artifactId>
193                         <version>1.1.1</version>
194                 </dependency>
195                 <dependency>
196                         <groupId>ch.qos.logback</groupId>
197                         <artifactId>logback-classic</artifactId>
198                         <version>1.1.1</version>
199                 </dependency>
200                 <dependency>
201                         <groupId>org.springframework</groupId>
202                         <artifactId>spring-test</artifactId>
203                         <version>4.2.5.RELEASE</version>
204                 </dependency>
205                 <dependency>
206                         <groupId>org.mapstruct</groupId>
207                         <artifactId>mapstruct</artifactId>
208                         <version>1.0.0.Final</version>
209                 </dependency>
210                 <dependency>
211                         <groupId>org.skyscreamer</groupId>
212                         <artifactId>jsonassert</artifactId>
213                         <version>1.3.0</version>
214                 </dependency>
215                 <dependency>
216                         <groupId>javax.ws.rs</groupId>
217                         <artifactId>javax.ws.rs-api</artifactId>
218                         <version>2.0.1</version>
219                         <scope>test</scope>
220                 </dependency>
221         </dependencies>
222
223         <build>
224                 <plugins>
225                         <plugin>
226                                 <groupId>org.sonatype.plugins</groupId>
227                                 <artifactId>nexus-staging-maven-plugin</artifactId>
228                                 <version>1.6.7</version>
229                                 <extensions>true</extensions>
230                                 <configuration>
231                                         <nexusUrl>${nexusproxy}</nexusUrl>
232                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
233                                         <serverId>ecomp-staging</serverId>
234                                 </configuration>
235                         </plugin>
236                         <plugin>
237                                 <groupId>org.springframework.boot</groupId>
238                                 <artifactId>spring-boot-maven-plugin</artifactId>
239                      <version>${springboot.version}</version>
240                                 <executions>
241                                         <execution>
242                                                 <goals>
243                                                         <goal>repackage</goal>
244                                                 </goals>
245                                                 <phase>none</phase>
246                                         </execution>
247                                 </executions>
248                         </plugin>
249                         <plugin>
250                                 <artifactId>maven-war-plugin</artifactId>
251                                 <version>2.2</version>
252                                 <configuration>
253                                         <packagingExcludes>WEB-INF/lib/javax.websocket-api-1.1.jar</packagingExcludes>
254                                 </configuration>
255                         </plugin>
256                         <plugin>
257                                 <groupId>org.apache.maven.plugins</groupId>
258                                 <artifactId>maven-compiler-plugin</artifactId>
259                                 <version>3.2</version>
260                                 <configuration>
261                                         <source>1.8</source>
262                                         <target>1.8</target>
263                                 </configuration>
264                         </plugin>
265                         <plugin>
266                                 <groupId>com.fortify.ps.maven.plugin</groupId>
267                                 <artifactId>sca-maven-plugin</artifactId>
268                                 <version>4.20</version>
269                         </plugin>
270                 </plugins>
271         </build>
272 </project>