bring back spring and war plugins
[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         <groupId>org.openecomp.policy.engine</groupId>
27         <artifactId>PyPDPServer</artifactId>
28         <version>1.0.0-SNAPSHOT</version>
29         <packaging>war</packaging>
30
31         <description>PyPDP Server</description>
32
33         <parent>
34                 <groupId>org.springframework.boot</groupId>
35                 <artifactId>spring-boot-starter-parent</artifactId>
36                 <version>1.3.3.RELEASE</version>
37         </parent>
38
39         <properties>
40                 <start-class>org.openecomp.policy.pypdp.controller.Application</start-class>
41                 <maven.compiler.target>1.8</maven.compiler.target>
42                 <maven.compiler.source>1.8</maven.compiler.source>
43                 <!-- <tomcat.version>8.0.14</tomcat.version> -->
44
45                 <sonar.language>java</sonar.language>
46                 <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
47                 <sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
48                 <sonar.jacoco.reportPath>${project.build.directory}/coverage-reports/jacoco.exec</sonar.jacoco.reportPath>
49                 <sonar.jacoco.itReportPath>/opt/app/jacoco-it.exec</sonar.jacoco.itReportPath>
50                 <sonar.jacoco.reportMissing.force.zero>true</sonar.jacoco.reportMissing.force.zero>
51                 <nexusproxy>https://nexus.openecomp.org</nexusproxy>
52         </properties>
53
54         <repositories>
55                 <repository>
56                         <id>spring-releases</id>
57                         <url>https://repo.spring.io/libs-release</url>
58                 </repository>
59                 <repository>
60                         <id>ecomp-releases</id>
61                         <name>OpenECOMP Release Repository</name>
62                         <url>${nexusproxy}/content/repositories/releases/</url>
63                 </repository>
64                 <repository>
65                         <id>ecomp-staging</id>
66                         <name>OpenECOMP Staging Repository</name>
67                         <url>${nexusproxy}/content/repositories/staging/</url>
68                 </repository>
69         </repositories>
70         <pluginRepositories>
71                 <pluginRepository>
72                         <id>spring-releases</id>
73                         <url>https://repo.spring.io/libs-release</url>
74                 </pluginRepository>
75         </pluginRepositories>
76
77         <distributionManagement>
78                 <repository>
79                         <id>ecomp-releases</id>
80                         <name>OpenECOMP Release Repository</name>
81                         <url>${nexusproxy}/content/repositories/releases/</url>
82                 </repository>
83                 <snapshotRepository>
84                         <id>ecomp-snapshots</id>
85                         <name>OpenECOMP Snapshot Repository</name>
86                         <url>${nexusproxy}/content/repositories/snapshots/</url>
87                 </snapshotRepository>
88         </distributionManagement>
89
90         <dependencies>
91                 <dependency>
92                         <groupId>org.openecomp.policy.engine</groupId>
93                         <artifactId>PolicyEngineAPI</artifactId>
94                         <version>${project.version}</version>
95                         <exclusions>
96                                 <exclusion>
97                                         <groupId>javax.websocket</groupId>
98                                         <artifactId>javax.websocket-api</artifactId>
99                                 </exclusion>
100                                 <exclusion>
101                                         <groupId>com.google.guava</groupId>
102                                         <artifactId>guava</artifactId>
103                                 </exclusion>
104                                 <exclusion>
105                                         <artifactId>slf4j-log4j12</artifactId>
106                                         <groupId>org.slf4j</groupId>
107                                 </exclusion>
108                                 <exclusion>
109                                         <groupId>org.springframework</groupId>
110                                         <artifactId>spring-mock</artifactId>
111                                 </exclusion>
112                         </exclusions>
113                 </dependency>
114                 <dependency>
115                         <groupId>org.springframework.boot</groupId>
116                         <artifactId>spring-boot-starter-web</artifactId>
117                         <exclusions>
118                                 <exclusion>
119                                         <groupId>org.slf4j</groupId>
120                                         <artifactId>log4j-over-slf4j</artifactId>
121                                 </exclusion>
122                                 <exclusion>
123                                         <artifactId>logback-classic</artifactId>
124                                         <groupId>ch.qos.logback</groupId>
125                                 </exclusion>
126                                 <exclusion>
127                                         <artifactId>logback-core</artifactId>
128                                         <groupId>ch.qos.logback</groupId>
129                                 </exclusion>
130                         </exclusions>
131                 </dependency>
132                 <dependency>
133                         <groupId>javax.servlet</groupId>
134                         <artifactId>javax.servlet-api</artifactId>
135                         <version>3.0.1</version>
136                         <scope>provided</scope>
137                 </dependency>
138                 <dependency>
139                         <groupId>io.springfox</groupId>
140                         <artifactId>springfox-swagger2</artifactId>
141                         <version>2.4.0</version>
142                 </dependency>
143                 <dependency>
144                         <groupId>io.springfox</groupId>
145                         <artifactId>springfox-swagger-ui</artifactId>
146                         <version>2.4.0</version>
147                 </dependency>
148                 <dependency>
149                         <groupId>org.springframework</groupId>
150                         <artifactId>spring-web</artifactId>
151                 </dependency>
152                 <dependency>
153                         <groupId>org.springframework.boot</groupId>
154                         <artifactId>spring-boot-starter-tomcat</artifactId>
155                         <scope>provided</scope>
156                 </dependency>
157                 <dependency>
158                         <groupId>com.fasterxml.jackson.core</groupId>
159                         <artifactId>jackson-databind</artifactId>
160                 </dependency>
161                 <dependency>
162                         <groupId>org.glassfish</groupId>
163                         <artifactId>javax.json</artifactId>
164                         <version>1.0.4</version>
165                 </dependency>
166                 <dependency>
167                         <groupId>org.apache.httpcomponents</groupId>
168                         <artifactId>httpclient</artifactId>
169                         <version>4.2.4</version>
170                 </dependency>
171                 <dependency>
172                         <groupId>commons-io</groupId>
173                         <artifactId>commons-io</artifactId>
174                         <version>2.4</version>
175                 </dependency>
176                 <dependency>
177                         <groupId>javax.validation</groupId>
178                         <artifactId>validation-api</artifactId>
179                         <version>1.1.0.Final</version>
180                 </dependency>
181                 <dependency>
182                         <groupId>com.google.guava</groupId>
183                         <artifactId>guava</artifactId>
184                         <version>19.0</version>
185                 </dependency>
186                 <dependency>
187                         <groupId>ch.qos.logback</groupId>
188                         <artifactId>logback-core</artifactId>
189                         <version>1.1.1</version>
190                 </dependency>
191                 <dependency>
192                         <groupId>ch.qos.logback</groupId>
193                         <artifactId>logback-classic</artifactId>
194                         <version>1.1.1</version>
195                 </dependency>
196                 <dependency>
197                         <groupId>org.springframework</groupId>
198                         <artifactId>spring-test</artifactId>
199                 </dependency>
200                 <dependency>
201                         <groupId>org.mapstruct</groupId>
202                         <artifactId>mapstruct</artifactId>
203                         <version>1.0.0.Final</version>
204                 </dependency>
205                 <dependency>
206                         <groupId>org.skyscreamer</groupId>
207                         <artifactId>jsonassert</artifactId>
208                         <version>1.3.0</version>
209                 </dependency>
210                 <dependency>
211                         <groupId>javax.ws.rs</groupId>
212                         <artifactId>javax.ws.rs-api</artifactId>
213                         <version>2.0.1</version>
214                         <scope>test</scope>
215                 </dependency>
216         </dependencies>
217
218         <build>
219                 <plugins>
220                         <plugin>
221                                 <groupId>org.springframework.boot</groupId>
222                                 <artifactId>spring-boot-maven-plugin</artifactId>
223                                 <executions>
224                                         <execution>
225                                                 <goals>
226                                                         <goal>repackage</goal>
227                                                 </goals>
228                                                 <phase>none</phase>
229                                         </execution>
230                                 </executions>
231                         </plugin>
232                         <plugin>
233                                 <artifactId>maven-war-plugin</artifactId>
234                                 <configuration>
235                                         <packagingExcludes>WEB-INF/lib/javax.websocket-api-1.1.jar</packagingExcludes>
236                                 </configuration>
237                         </plugin>
238                 </plugins>
239         </build>
240 <!-- 
241         <build>
242                 <plugins>
243                         <plugin>
244                                 <groupId>org.sonatype.plugins</groupId>
245                                 <artifactId>nexus-staging-maven-plugin</artifactId>
246                                 <version>1.6.7</version>
247                                 <extensions>true</extensions>
248                                 <configuration>
249                                         <nexusUrl>${nexusproxy}</nexusUrl>
250                                         <stagingProfileId>176c31dfe190a</stagingProfileId>
251                                         <serverId>ecomp-staging</serverId>
252                                 </configuration>
253                         </plugin>
254                         <plugin>
255                                 <groupId>org.springframework.boot</groupId>
256                                 <artifactId>spring-boot-maven-plugin</artifactId>
257                                 <executions>
258                                         <execution>
259                                                 <goals>
260                                                         <goal>repackage</goal>
261                                                 </goals>
262                                                 <phase>none</phase>
263                                         </execution>
264                                 </executions>
265                         </plugin>
266                         <plugin>
267                                 <artifactId>maven-war-plugin</artifactId>
268                                 <configuration>
269                                         <packagingExcludes>WEB-INF/lib/javax.websocket-api-1.1.jar</packagingExcludes>
270                                 </configuration>
271                         </plugin>
272                         <plugin>
273                                 <groupId>org.apache.maven.plugins</groupId>
274                                 <artifactId>maven-compiler-plugin</artifactId>
275                                 <version>3.2</version>
276                                 <configuration>
277                                         <source>1.8</source>
278                                         <target>1.8</target>
279                                 </configuration>
280                         </plugin>
281                         <plugin>
282                                 <groupId>org.jacoco</groupId>
283                                 <artifactId>jacoco-maven-plugin</artifactId>
284                                 <version>0.7.1.201405082137</version>
285                                 <configuration>
286                                         <dumpOnExit>true</dumpOnExit>
287                                         <includes>
288                                                 <include>org.openecomp.policy.*</include>
289                                         </includes>
290                                 </configuration>
291                                 <executions>
292                                         <execution>
293                                                 <id>jacoco-initialize-unit-tests</id>
294                                                 <goals>
295                                                         <goal>prepare-agent</goal>
296                                                 </goals>
297                                                 <configuration>
298                                                         <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile>
299                                                 </configuration>
300                                         </execution>
301                                 </executions>
302                         </plugin>
303                         <plugin>
304                                 <groupId>com.fortify.ps.maven.plugin</groupId>
305                                 <artifactId>sca-maven-plugin</artifactId>
306                                 <version>4.20</version>
307                         </plugin>
308                 </plugins>
309         </build>
310         -->
311 </project>