summaryrefslogtreecommitdiffstats
path: root/rulemgt/pom.xml
diff options
context:
space:
mode:
authorGuangrongFu <fu.guangrong@zte.com.cn>2018-03-29 17:20:07 +0800
committerGuangrongFu <fu.guangrong@zte.com.cn>2018-03-29 18:30:01 +0800
commit82d2318187ea739a0b14442cbd82a3a7f6a419a7 (patch)
tree65f8503abef34470483bb89a585053b7f18d4d25 /rulemgt/pom.xml
parentadf983c3fa5c0be8fe05d349190b149da1effb2e (diff)
Fixed the Start-up Logic
Change-Id: I5646e771e05f5f774162373a2f69a0815acb53e5 Issue-ID: HOLMES-106 Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt/pom.xml')
-rw-r--r--rulemgt/pom.xml49
1 files changed, 32 insertions, 17 deletions
diff --git a/rulemgt/pom.xml b/rulemgt/pom.xml
index ba5524c..d07689f 100644
--- a/rulemgt/pom.xml
+++ b/rulemgt/pom.xml
@@ -286,8 +286,6 @@
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
- <mainClass>org.onap.holmes.rulemgt.RuleActiveApp</mainClass>
- <classpathPrefix>lib/</classpathPrefix>
</manifest>
</archive>
</configuration>
@@ -295,31 +293,48 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>3.3</version>
+ <configuration>
+ <source>1.8</source>
+ <target>1.8</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <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>
+ </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.rulemgt.RuleActiveApp</mainClass>
+ </transformer>
+ </transformers>
</configuration>
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-compiler-plugin</artifactId>
- <version>3.3</version>
- <configuration>
- <source>1.8</source>
- <target>1.8</target>
- </configuration>
- </plugin>
</plugins>
<resources>
<resource>