내가 pom.xml 파일에 다음 프로파일을 정의 동작하지 않습니다 :는 maven2 프로필
<profiles>
<profile>
<id>dev</id>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>dev</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<delete file="src/main/application/META-INF/data-sources.xml"/>
<copy file="src/main/resources/data-sources-dev.xml" tofile="src/main/application/META-INF/data-sources.xml"/>
</tasks>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
이슈는 그것이 작동하지 않는다는 것입니다!
mvn help:effective-pom -P dev
프로필도 표시합니다.
그러나, 내가 할 경우
mvn -X -Pdev install
/h 제는 부분은 로그에 표시되지 않습니다 복사합니다.
pom2.xml 또는 pom.xml을 의미합니까? –
죄송합니다. pom.xml. 편집 됨. – tputkonen