标签:env div target exp encoding class xpl col dir
pom文件配置
<build> <finalName>middlewares</finalName> <filters> <filter>src/main/env/${profile.id}/configuration.properties</filter> </filters> <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> </resources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>3.1.0</version> <executions> <execution> <id>prepare-war</id> <phase>prepare-package</phase> <goals> <goal>exploded</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>dev</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <profile.id>dev</profile.id> </properties> </profile> <profile> <id>test</id> <properties> <profile.id>test</profile.id> </properties> </profile> <profile> <id>preonline</id> <properties> <profile.id>preonline</profile.id> </properties> </profile> </profiles>
配置文件结构
配置文件配置
converter.packageName=${converter.packageName}
标签:env div target exp encoding class xpl col dir
原文地址:https://www.cnblogs.com/BINGJJFLY/p/10289086.html