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