diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2018-03-28 14:37:08 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2018-03-28 14:55:05 +0800 |
commit | 1177d23e2be4a99f231b2d886ea121bf4e0611bc (patch) | |
tree | 002c6f9137bb9e08783111b4369fc329a7accef3 /engine-d-standalone | |
parent | 4f15554a38e71fb7a95f7172797d3a16880e68ec (diff) |
Put Dependencies into a Lib Dir
Change-Id: I073f90db334bb0e31cda979e48160a3daf0a82e6
Issue-ID: HOLMES-123
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'engine-d-standalone')
-rw-r--r-- | engine-d-standalone/pom.xml | 34 | ||||
-rw-r--r-- | engine-d-standalone/src/main/assembly/bin/run.sh | 2 |
2 files changed, 35 insertions, 1 deletions
diff --git a/engine-d-standalone/pom.xml b/engine-d-standalone/pom.xml index 84a3970..bfa5ac6 100644 --- a/engine-d-standalone/pom.xml +++ b/engine-d-standalone/pom.xml @@ -69,6 +69,23 @@ </configuration> </execution> <execution> + <id>copy-lib-${linux64id}</id> + <phase>process-resources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${linux64outputdir}/lib</outputDirectory> + <resources> + <resource> + <directory>${project.parent.basedir}/engine-d/target/lib</directory> + <filtering>false</filtering> + </resource> + </resources> + <overwrite>true</overwrite> + </configuration> + </execution> + <execution> <id>copy-resources-${win64id}</id> <phase>process-resources</phase> <goals> @@ -96,6 +113,23 @@ </configuration> </execution> <execution> + <id>copy-lib-${win64id}</id> + <phase>process-resources</phase> + <goals> + <goal>copy-resources</goal> + </goals> + <configuration> + <outputDirectory>${win64outputdir}/lib</outputDirectory> + <resources> + <resource> + <directory>${project.parent.basedir}/engine-d/target/lib</directory> + <filtering>false</filtering> + </resource> + </resources> + <overwrite>true</overwrite> + </configuration> + </execution> + <execution> <id>copy-dockerfile</id> <phase>process-resources</phase> <goals> diff --git a/engine-d-standalone/src/main/assembly/bin/run.sh b/engine-d-standalone/src/main/assembly/bin/run.sh index d3d5348..3f3c662 100644 --- a/engine-d-standalone/src/main/assembly/bin/run.sh +++ b/engine-d-standalone/src/main/assembly/bin/run.sh @@ -30,7 +30,7 @@ port=8312 #JAVA_OPTS="$JAVA_OPTS -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=$port,server=y,suspend=n" echo @JAVA_OPTS@ $JAVA_OPTS -class_path="$main_path/:$main_path/holmes-engine-d.jar" +class_path="$main_path/*:$main_path/lib/*:$main_path/holmes-engine-d.jar" echo @class_path@ $class_path sed -i "s/activemq.username=.*/activemq.username=activemq/" /home/activemq/apache-activemq-5.9.0/conf/credentials.properties |