|
|
@@ -63,7 +63,32 @@
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
+ <!--多环境打包-->
|
|
|
+ <profiles>
|
|
|
+ <!--开发-->
|
|
|
+ <profile>
|
|
|
+ <id>dev</id>
|
|
|
+ <properties>
|
|
|
+ <!-- 环境标识,需要与配置文件的名称相对应 -->
|
|
|
+ <activatedEnv>dev</activatedEnv>
|
|
|
+ </properties>
|
|
|
+ <activation>
|
|
|
+ <!-- 默认环境 -->
|
|
|
+ <activeByDefault>true</activeByDefault>
|
|
|
+ </activation>
|
|
|
+ </profile>
|
|
|
+ <!--生产-->
|
|
|
+ <profile>
|
|
|
+ <id>prod</id>
|
|
|
+ <properties>
|
|
|
+ <activatedEnv>druid-prod</activatedEnv>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
+ </profiles>
|
|
|
+
|
|
|
+
|
|
|
<build>
|
|
|
+ <finalName>kede-yfdk</finalName>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
@@ -90,7 +115,6 @@
|
|
|
</configuration>
|
|
|
</plugin>
|
|
|
</plugins>
|
|
|
- <finalName>${project.artifactId}</finalName>
|
|
|
</build>
|
|
|
|
|
|
</project>
|