я определил следующий профиль в 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
удалять/копировать часть не видна в логах.
Возможно, вы имели в виду pom2.xml, или pom.xml? –
Упс, pom.xml. Ред. – tputkonen