Change the Version of ecj to 4.5.1
[holmes/engine-management.git] / engine-d / pom.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3   ~ Copyright 2017 ZTE Corporation.
4   ~
5   ~ Licensed under the Apache License, Version 2.0 (the "License");
6   ~ you may not use this file except in compliance with the License.
7   ~ You may obtain a copy of the License at
8   ~
9   ~     http://www.apache.org/licenses/LICENSE-2.0
10   ~
11   ~ Unless required by applicable law or agreed to in writing, software
12   ~ distributed under the License is distributed on an "AS IS" BASIS,
13   ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   ~ See the License for the specific language governing permissions and
15   ~ limitations under the License.
16   -->
17 <project xmlns="http://maven.apache.org/POM/4.0.0"
18     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
19     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
20
21     <modelVersion>4.0.0</modelVersion>
22     <parent>
23         <groupId>org.onap.holmes.engine-management</groupId>
24         <artifactId>holmes-engine-parent</artifactId>
25         <version>1.0.0-SNAPSHOT</version>
26     </parent>
27
28     <artifactId>holmes-engine-d</artifactId>
29     <name>holmes-engine-d-service</name>
30     <packaging>jar</packaging>
31
32     <properties>
33         <drools.version>5.4.0.Final</drools.version>
34     </properties>
35
36     <dependencies>
37
38         <dependency>
39             <groupId>org.onap.msb.java-sdk</groupId>
40             <artifactId>msb-java-sdk</artifactId>
41         </dependency>
42         <dependency>
43             <groupId>org.reflections</groupId>
44             <artifactId>reflections</artifactId>
45         </dependency>
46         <dependency>
47             <groupId>org.onap.holmes.dsa</groupId>
48             <artifactId>dmaap-dsa</artifactId>
49         </dependency>
50         <dependency>
51             <groupId>org.onap.holmes.common</groupId>
52             <artifactId>holmes-actions</artifactId>
53             <exclusions>
54                 <exclusion>
55                     <groupId>org.glassfish.jersey.containers</groupId>
56                     <artifactId>jersey-container-servlet-core</artifactId>
57                 </exclusion>
58             </exclusions>
59         </dependency>
60         <dependency>
61             <groupId>org.glassfish.jersey.containers</groupId>
62             <artifactId>jersey-container-servlet-core</artifactId>
63             <version>2.22.2</version>
64         </dependency>
65         <dependency>
66             <groupId>org.easymock</groupId>
67             <artifactId>easymock</artifactId>
68         </dependency>
69         <dependency>
70             <groupId>org.drools</groupId>
71             <artifactId>drools-core</artifactId>
72             <version>${drools.version}</version>
73         </dependency>
74         <dependency>
75             <groupId>org.drools</groupId>
76             <artifactId>drools-compiler</artifactId>
77             <version>${drools.version}</version>
78             <exclusions>
79                 <exclusion>
80                     <groupId>org.eclipse.jdt.core.compiler</groupId>
81                     <artifactId>ecj</artifactId>
82                 </exclusion>
83             </exclusions>
84         </dependency>
85         <dependency>
86             <groupId>org.eclipse.jdt.core.compiler</groupId>
87             <artifactId>ecj</artifactId>
88             <version>4.5.1</version>
89         </dependency>
90         <dependency>
91             <groupId>org.drools</groupId>
92             <artifactId>drools-templates</artifactId>
93             <version>${drools.version}</version>
94         </dependency>
95
96         <dependency>
97             <groupId>io.dropwizard</groupId>
98             <artifactId>dropwizard-db</artifactId>
99         </dependency>
100         <dependency>
101             <groupId>org.antlr</groupId>
102             <artifactId>stringtemplate</artifactId>
103         </dependency>
104         <dependency>
105             <groupId>io.dropwizard</groupId>
106             <artifactId>dropwizard-core</artifactId>
107             <exclusions>
108                 <exclusion>
109                     <groupId>ch.qos.logback</groupId>
110                     <artifactId>logback</artifactId>
111                 </exclusion>
112                 <exclusion>
113                     <artifactId>log4j-over-slf4j</artifactId>
114                     <groupId>org.slf4j</groupId>
115                 </exclusion>
116             </exclusions>
117         </dependency>
118         <dependency>
119             <groupId>org.projectlombok</groupId>
120             <artifactId>lombok</artifactId>
121         </dependency>
122         <dependency>
123             <groupId>org.postgresql</groupId>
124             <artifactId>postgresql</artifactId>
125         </dependency>
126         <dependency>
127             <groupId>org.quartz-scheduler</groupId>
128             <artifactId>quartz</artifactId>
129         </dependency>
130         <dependency>
131             <groupId>junit</groupId>
132             <artifactId>junit</artifactId>
133         </dependency>
134         <dependency>
135             <groupId>org.hamcrest</groupId>
136             <artifactId>hamcrest-core</artifactId>
137         </dependency>
138         <dependency>
139             <groupId>org.powermock</groupId>
140             <artifactId>powermock-module-junit4</artifactId>
141         </dependency>
142         <dependency>
143             <groupId>org.slf4j</groupId>
144             <artifactId>slf4j-api</artifactId>
145         </dependency>
146         <dependency>
147             <groupId>io.swagger</groupId>
148             <artifactId>swagger-jersey2-jaxrs</artifactId>
149             <scope>provided</scope>
150         </dependency>
151
152         <dependency>
153             <groupId>org.powermock</groupId>
154             <artifactId>powermock-api-easymock</artifactId>
155             <version>1.6.5</version>
156             <scope>test</scope>
157         </dependency>
158         <dependency>
159             <groupId>org.powermock</groupId>
160             <artifactId>powermock-module-junit4-rule</artifactId>
161             <version>1.6.5</version>
162             <scope>test</scope>
163         </dependency>
164         <dependency>
165             <groupId>org.powermock</groupId>
166             <artifactId>powermock-classloading-xstream</artifactId>
167             <version>1.6.5</version>
168             <scope>test</scope>
169         </dependency>
170
171         <dependency>
172             <groupId>org.apache.httpcomponents</groupId>
173             <artifactId>httpclient</artifactId>
174         </dependency>
175         <dependency>
176             <groupId>com.google.guava</groupId>
177             <artifactId>guava</artifactId>
178         </dependency>
179     </dependencies>
180
181     <build>
182         <plugins>
183             <plugin>
184                 <groupId>org.apache.maven.plugins</groupId>
185                 <artifactId>maven-jar-plugin</artifactId>
186                 <configuration>
187                     <archive>
188                         <manifest>
189                             <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
190                         </manifest>
191                     </archive>
192                 </configuration>
193             </plugin>
194             <plugin>
195                 <groupId>org.apache.maven.plugins</groupId>
196                 <artifactId>maven-shade-plugin</artifactId>
197                 <configuration>
198                     <createDependencyReducedPom>true</createDependencyReducedPom>
199                     <filters>
200                         <filter>
201                             <artifact>*:*</artifact>
202                             <excludes>
203                                 <exclude>META-INF/*.SF</exclude>
204                                 <exclude>META-INF/*.DSA</exclude>
205                                 <exclude>META-INF/*.RSA</exclude>
206                             </excludes>
207                         </filter>
208                     </filters>
209                 </configuration>
210                 <executions>
211                     <execution>
212                         <phase>package</phase>
213                         <goals>
214                             <goal>shade</goal>
215                         </goals>
216                         <configuration>
217                             <transformers>
218                                 <transformer
219                                     implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
220                                 <transformer
221                                     implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
222                                     <mainClass>org.onap.holmes.engine.EngineDActiveApp
223                                     </mainClass>
224                                 </transformer>
225                             </transformers>
226                         </configuration>
227                     </execution>
228                 </executions>
229             </plugin>
230         </plugins>
231         <resources>
232             <resource>
233                 <directory>src/main/java</directory>
234                 <includes>
235                     <include>**/*.properties</include>
236                 </includes>
237             </resource>
238             <resource>
239                 <directory>src/main/resources</directory>
240             </resource>
241         </resources>
242     </build>
243
244     <profiles>
245         <profile>
246             <id>swagger</id>
247             <dependencies>
248                 <dependency>
249                     <groupId>io.swagger</groupId>
250                     <artifactId>swagger-jersey2-jaxrs</artifactId>
251                     <version>1.5.0</version>
252                 </dependency>
253             </dependencies>
254
255             <build>
256                 <plugins>
257                     <plugin>
258                         <groupId>com.github.kongchen</groupId>
259                         <artifactId>swagger-maven-plugin</artifactId>
260                         <version>3.1.1</version>
261                         <configuration>
262                             <apiSources>
263                                 <apiSource>
264                                     <springmvc>false</springmvc>
265                                     <locations>org.onap.holmes.engine.resources</locations>
266                                     <basePath>/api/holmes-engine-mgmt/v1/</basePath>
267                                     <info>
268                                         <title>API Descriptions for Holmes Engine Management</title>
269                                         <version>v1</version>
270                                         <description>
271                                             This page shows all the APIs available in the Holmes engine management module.
272                                         </description>
273                                         <termsOfService>
274                                             http://www.github.com/kongchen/swagger-maven-plugin
275                                         </termsOfService>
276                                         <contact>
277                                             <email>fu.guangrong@zte.com.cn</email>
278                                             <name>Guangrong Fu</name>
279                                         </contact>
280                                         <license>
281                                             <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
282                                             <name>Apache 2.0</name>
283                                         </license>
284                                     </info>
285                                     <securityDefinitions>
286                                     </securityDefinitions>
287                                     <swaggerDirectory>${basedir}/src/main/resources</swaggerDirectory>
288                                 </apiSource>
289                             </apiSources>
290                         </configuration>
291                         <executions>
292                             <execution>
293                                 <phase>compile</phase>
294                                 <goals>
295                                     <goal>generate</goal>
296                                 </goals>
297                             </execution>
298                         </executions>
299                         <dependencies>
300                             <dependency>
301                                 <groupId>io.swagger</groupId>
302                                 <artifactId>swagger-hibernate-validations</artifactId>
303                                 <version>1.5.6</version>
304                             </dependency>
305                         </dependencies>
306                     </plugin>
307                 </plugins>
308             </build>
309         </profile>
310     </profiles>
311 </project>