Commit 44608cd1 authored by 陈健's avatar 陈健

将应用打成war包

parent 0f3d5e6b
......@@ -4,6 +4,6 @@ ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
JHIPSTER_SLEEP=0
# add directly the war
ADD *.war /usr/local/tomcat/webapps/ROOT.war
ADD target/*.war /usr/local/tomcat/webapps/ROOT.war
CMD echo "The application will start in ${JHIPSTER_SLEEP}s..." && \
/usr/local/tomcat/bin/startup.sh && tail -f /usr/local/tomcat/logs/catalina.out
......@@ -67,6 +67,7 @@ podTemplate(label: pod_label, cloud: 'kubernetes', containers: [
// 生成静态链接所有的库
sh 'mvn package -e -U -Dmaven.test.skip=true'
//sh 'make release-binary'
sh 'ls -al'
}
}
......
......@@ -94,6 +94,13 @@
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<warSourceDirectory>src/main/resources/</warSourceDirectory>
</configuration>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
......
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