Commit 74dba0da by mahx

修改打包配置

parent 8a628cf8
...@@ -226,4 +226,23 @@ ...@@ -226,4 +226,23 @@
</plugin> </plugin>
</plugins> </plugins>
</build> </build>
<repositories>
<repository>
<id>jsqlparser-snapshots</id>
<snapshots>
<enabled>true</enabled>
</snapshots>
<url>https://oss.sonatype.org/content/groups/public/</url>
</repository>
<repository>
<id>nexus</id>
<url>http://139.198.127.28:18081/repository/maven-public/</url>
<name>keymobile</name>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
</project> </project>
#!/bin/bash #!/bin/bash
BASE_LOC="$(dirname "${ABS_SCRIPT_PATH}")"
APP_NAME="metadatarelation"
TEMP_DIR="-Djava.io.tmpdir=/tmp" TEMP_DIR="-Djava.io.tmpdir=/tmp"
PROFILE="default"
APP_NAME="metadatarelation" CONFIG_URL="http://c0:8082"
OS_USER_NAME="iapdg$APP_NAME"
BASE_LOC="/home/$OS_USER_NAME/$APP_NAME"
JAR_NAME="$APP_NAME.jar"
PROFILE="prod"
CONFIG_URL="http://SMS-KFSJGK-S02:8082"
JVM_OPTS="-Xmx512M -Xms512M" JVM_OPTS="-Xmx512M -Xms512M"
JAVA_OPTS="-server $JVM_OPTS -XX:+UseCompressedOops -XX:+UseG1GC" JAVA_OPTS="-server $JVM_OPTS -XX:+UseCompressedOops -XX:+UseG1GC"
SPRING_OPTS="--spring.cloud.config.uri=$CONFIG_URL --spring.profiles.active=$PROFILE --logging.config=$BASE_LOC/config/logback-custom.xml" SPRING_OPTS="--spring.cloud.config.uri=$CONFIG_URL --spring.profiles.active=$PROFILE --logging.config=$BASE_LOC/config/logback-custom.xml"
JAR_NAME="$APP_NAME.jar"
CURR_DIR=`pwd` nohup java $JAVA_OPTS $TEMP_DIR -jar $BASE_LOC/lib/$JAR_NAME $SPRING_OPTS 2>$1 > $BASE_LOC/console.log &
cd $BASE_LOC
nohup java $JAVA_OPTS $TEMP_DIR -jar $JAR_LOC $SPRING_OPTS 2>$1 > $BASE_LOC/console.log &
echo "$JAR_NAME started." echo "$JAR_NAME started."
cd $CURR_DIR
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<fileSets> <fileSets>
<fileSet> <fileSet>
<directory>${project.basedir}/assembly/bin</directory> <directory>${project.basedir}/src/assembly/bin</directory>
<outputDirectory>bin</outputDirectory> <outputDirectory>bin</outputDirectory>
<includes> <includes>
<include>**/*.sh</include> <include>**/*.sh</include>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>${project.basedir}/main/resources</directory> <directory>${project.basedir}/src/main/resources</directory>
<outputDirectory>config</outputDirectory> <outputDirectory>config</outputDirectory>
<includes> <includes>
<include>**/*.xml</include> <include>**/*.xml</include>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment