|
@@ -105,7 +105,43 @@
|
|
|
<!--许可依赖包 结束-->
|
|
|
</dependencies>
|
|
|
<!--指定仓库地址-->
|
|
|
+ <packaging>${project.packaging}</packaging>
|
|
|
<profiles>
|
|
|
+ <!--war打包配置-->
|
|
|
+ <!--使用方式 mvn clean package -Pwar-->
|
|
|
+ <profile>
|
|
|
+ <id>war</id>
|
|
|
+ <properties>
|
|
|
+ <project.packaging>war</project.packaging>
|
|
|
+ </properties>
|
|
|
+ <dependencies>
|
|
|
+ <dependency>
|
|
|
+ <groupId>com.dragonsoft</groupId>
|
|
|
+ <artifactId>duceap-boot-starter-web</artifactId>
|
|
|
+ <!-- 移除嵌入式tomcat插件 -->
|
|
|
+ <exclusions>
|
|
|
+ <exclusion>
|
|
|
+ <groupId>org.springframework.boot</groupId>
|
|
|
+ <artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
+ </exclusion>
|
|
|
+ </exclusions>
|
|
|
+ </dependency>
|
|
|
+ </dependencies>
|
|
|
+ <build>
|
|
|
+ <plugins>
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-war-plugin</artifactId>
|
|
|
+ <version>2.1.1</version>
|
|
|
+ <configuration>
|
|
|
+ <failOnMissingWebXml>false</failOnMissingWebXml>
|
|
|
+ <!--排除licenseignore包,用来禁用许可开关,防止生产环境通过关闭开关,绕过许可-->
|
|
|
+ <packagingExcludes>WEB-INF/lib/duceap-support-licenseignore*.jar</packagingExcludes>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
+ </profile>
|
|
|
<profile>
|
|
|
<id>jar</id>
|
|
|
<activation>
|