Advertisement
Guest User

Untitled

a guest
Dec 19th, 2014
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. MavenProject project = (MavenProject) getPluginContext().get("project");
  2. String projectDir=project.getBasedir().toString();
  3.  
  4. <plugin>
  5. <groupId>org.apache.maven.plugins</groupId>
  6. <artifactId>maven-war-plugin</artifactId>
  7. <version>2.5</version>
  8. <executions>
  9. <execution>
  10. <id>prepare-war</id>
  11. <phase>prepare-package</phase>
  12. <goals>
  13. <goal>exploded</goal>
  14. </goals>
  15. </execution>
  16. </executions>
  17. <configuration>
  18. <useCache>true</useCache>
  19. </configuration>
  20. </plugin>
  21.  
  22. <plugin>
  23. <groupId>...</groupId>
  24. <artifactId>...</artifactId>
  25. <version>....</version>
  26. <executions>
  27. <execution>
  28. <phase>prepare-package</phase>
  29. <goals>
  30. <goal>...</goal>
  31. </goals>
  32. </execution>
  33. </executions>
  34. </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement