summaryrefslogtreecommitdiffstats
path: root/engine-d
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-03-29 19:15:40 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-03-29 19:15:40 +0800
commit94366b596c4c45427b1b9641609f98155e68d60c (patch)
treead1fae0881114934368bb5d64041ee2207780256 /engine-d
parent1177d23e2be4a99f231b2d886ea121bf4e0611bc (diff)
Fixed the Instantiation Problem of Engine
Change-Id: I771d72f3b1f244fae4f303f15c40ebd322a24de1 Issue-ID: HOLMES-106 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d')
-rw-r--r--engine-d/pom.xml44
1 files changed, 33 insertions, 11 deletions
diff --git a/engine-d/pom.xml b/engine-d/pom.xml
index 967fa0b..27c76ef 100644
--- a/engine-d/pom.xml
+++ b/engine-d/pom.xml
@@ -290,8 +290,7 @@
<dependency>
<groupId>com.thoughtworks.xstream</groupId>
<artifactId>xstream</artifactId>
- <version>1.4.10</version>
- <scope>test</scope>
+ <version>1.4.9</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
@@ -316,27 +315,50 @@
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- <mainClass>org.onap.holmes.engine.EngineDActiveApp</mainClass>
- <classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
</plugin>
-
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <configuration>
+ <createDependencyReducedPom>true</createDependencyReducedPom>
+ <filters>
+ <filter>
+ <artifact>*:*</artifact>
+ <excludes>
+ <exclude>META-INF/*.SF</exclude>
+ <exclude>META-INF/*.DSA</exclude>
+ <exclude>META-INF/*.RSA</exclude>
+ </excludes>
+ </filter>
+ <filter>
+ <artifact>org.onap.holmes.dsa:dmaap-dsa</artifact>
+ <excludes>
+ <exclude>org/onap/holmes/common/**</exclude>
+ <exclude>com/fasterxml/jackson/core/jackson-databind/**</exclude>
+ <exclude>org/slf4j/**</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ </configuration>
<executions>
<execution>
- <id>copy</id>
<phase>package</phase>
<goals>
- <goal>copy-dependencies</goal>
+ <goal>shade</goal>
</goals>
<configuration>
- <outputDirectory>
- ${project.build.directory}/lib
- </outputDirectory>
+ <transformers>
+ <transformer
+ implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
+ <transformer
+ implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
+ <mainClass>org.onap.holmes.engine.EngineDActiveApp
+ </mainClass>
+ </transformer>
+ </transformers>
</configuration>
</execution>
</executions>