mirror of https://github.com/halo-dev/halo
🍎 修改pom.xml的打包方式,新增dev和prod的配置
parent
ea7da172fd
commit
45438a90a3
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
APP_NAME=halo-beta.jar
|
APP_NAME=halo-0.0.1.jar
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
echo "用法: sh halo.sh [start(启动)|stop(停止)|restart(重启)|status(状态)]"
|
echo "用法: sh halo.sh [start(启动)|stop(停止)|restart(重启)|status(状态)]"
|
||||||
|
|
22
pom.xml
22
pom.xml
|
@ -4,7 +4,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>cc.ryanc</groupId>
|
<groupId>cc.ryanc</groupId>
|
||||||
<artifactId>halo</artifactId>
|
<artifactId>halo</artifactId>
|
||||||
<version>beta</version>
|
<version>0.0.1</version>
|
||||||
<name>halo</name>
|
<name>halo</name>
|
||||||
|
|
||||||
<description>
|
<description>
|
||||||
|
@ -133,7 +133,10 @@
|
||||||
<version>18.0</version>
|
<version>18.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
<profiles>
|
||||||
|
<!-- 生产环境打包配置 -->
|
||||||
|
<profile>
|
||||||
|
<id>prod</id>
|
||||||
<build>
|
<build>
|
||||||
<finalName>halo</finalName>
|
<finalName>halo</finalName>
|
||||||
<resources>
|
<resources>
|
||||||
|
@ -204,4 +207,19 @@
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
</profile>
|
||||||
|
|
||||||
|
<!-- 开发环境 -->
|
||||||
|
<profile>
|
||||||
|
<id>dev</id>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
</profiles>
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue