portable-config-maven-plugin是Maven针对不同环境打包使用的,在使用该插件之前首先在pom文件中进行如下配置:
<profile>
<id>test</id>
<activation>
<property>
<name>environment.type</name>
<value>test</value>
</property>
</activation>
<properties>
<compiler.debug>true</compiler.debug>
<compiler.optimize>false</compiler.optimize>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<debug