Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <executions>
- <execution>
- <phase>package</phase>
- <configuration>
- <webappDirectory>target/${env}/deploy</webappDirectory>
- <archiveClasses>true</archiveClasses>
- </configuration>
- <goals>
- <goal>
- exploded
- </goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- mvn prepare-package war:exploded
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>process-resources</id>
- <phase>process-resources</phase>
- <goals>
- <goal>resources</goal
- </goal>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-compile-plugin</artifactId>
- <executions>
- <execution>
- <id>compile</id>
- <phase>compile</phase>
- <goals>
- <goal>compile</goal
- </goal>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-resources-plugin</artifactId>
- <executions>
- <execution>
- <id>process-test-resources</id>
- <phase>process-test-resources</phase>
- <goals>
- <goal>testResources</goal
- </goal>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <executions>
- <execution>
- <id>test</id>
- <phase>test</phase>
- <goals>
- <goal>test</goal
- </goal>
- </execution>
- </executions>
- </plugin>
- <!-- package not wanted, install and deploy already defined for pom packaging-->
- <!--define war:war execution in a profile in case it is needed-->
Add Comment
Please, Sign In to add comment