How to enable maven war plugin to create multiple war files

I used the selenium-mave-plugin for an integration test that requires a war file named: project.artifactId-version (say: myproj-0.1-SNAPSHOT.war), while the default war created by maven-war-plugin , is a .artifactId.war project (say myproj-SNAPSHOT.war).

To enable the selenium plugin, I redefine the maven-war-plugin in this selenium profile as:

        <plugin>
          <artifactId>maven-war-plugin</artifactId>
          <version>2.1-beta-1</version>
          <configuration>
            <warName>${project.artifactId}-${project.version}</warName>
            </configuration>
       </plugin>

Now, when I am building the project, it did not go in rpm: rpm, complaining:

source location ..../myProj.war does not exist

My question is, is it possible to create 2 military files: myProj.war and myProj-0.1-SNAPSHOT.war, so both rpm and selenium plugins are happy? Thanks

+3
source share
1 answer

rpm , . , pom.xml.

, , .war . -. , , maven " ". , tomcat -.

( ) mvn clean verify integration-test rpm:prm.

0

Source: https://habr.com/ru/post/1784784/


All Articles