Skip to content

Commit

Permalink
配置assembly打包重命名jar包名不带版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
atjiu committed Jan 24, 2019
1 parent 50f7f3f commit 192b997
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shutdown.sh
@@ -1 +1 @@
ps -ef | grep pybbs-5.1.0.jar | grep -v grep | cut -c 9-15 | xargs kill -s 9
ps -ef | grep pybbs.jar | grep -v grep | cut -c 9-15 | xargs kill -s 9
1 change: 1 addition & 0 deletions src/main/resources/assembly.xml
Expand Up @@ -81,6 +81,7 @@
<!-- 主jar打到根目录,因为pom文件中设置主jar的依赖包目录为lib/-->
<dependencySet>
<outputDirectory>/</outputDirectory>
<outputFileNameMapping>${artifact.artifactId}${dashClassifier?}.${artifact.extension}</outputFileNameMapping>
<includes>
<include>${project.groupId}:${project.artifactId}</include>
</includes>
Expand Down
2 changes: 1 addition & 1 deletion start.sh
@@ -1 +1 @@
java -jar pybbs-5.1.0.jar --spring.profiles.active=prod > log.file 2>&1 &
java -jar pybbs.jar --spring.profiles.active=prod > log.file 2>&1 &

0 comments on commit 192b997

Please sign in to comment.