Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.26 KB | None | 0 0
  1. <build>
  2. <plugins>
  3. <plugin>
  4. <groupId>org.codehaus.mojo</groupId>
  5. <artifactId>exec-maven-plugin</artifactId>
  6. <version>1.3.2</version>
  7. <executions>
  8. <execution>
  9. <id>npm i </id>
  10. <phase>prepare-package</phase>
  11. <goals>
  12. <goal>exec</goal>
  13. </goals>
  14. <configuration>
  15. <executable>npm</executable>
  16. <workingDirectory>${basedir}/src/main/webapp</workingDirectory>
  17. <arguments>
  18. <argument>install</argument>
  19. </arguments>
  20. </configuration>
  21. </execution>
  22. <execution>
  23. <id>npm build</id>
  24. <phase>prepare-package</phase>
  25. <goals>
  26. <goal>exec</goal>
  27. </goals>
  28. <configuration>
  29. <executable>npm</executable>
  30. <workingDirectory>${basedir}/src/main/webapp</workingDirectory>
  31. <arguments>
  32. <argument>run</argument>
  33. <argument>build</argument>
  34. </arguments>
  35. </configuration>
  36. </execution>
  37. </executions>
  38. </plugin>
  39. <plugin>
  40. <groupId>org.apache.maven.plugins</groupId>
  41. <artifactId>maven-war-plugin</artifactId>
  42. <version>2.1.1</version>
  43. <extensions>true</extensions>
  44. <configuration>
  45. <warSourceExcludes>
  46. source/**,
  47. package*.json,
  48. test/**,
  49. src/**,
  50. assets/**,
  51. node_modules/**,
  52. .npmrc,
  53. .gitignore,
  54. *.html,
  55. .eslintrc.json,
  56. .eslintignore,
  57. .babelrc,
  58. webpack.*.js,
  59. </warSourceExcludes>
  60. <warSourceDirectory>${basedir}/src/main/webapp/</warSourceDirectory>
  61. <webResources>
  62. <resource>
  63. <directory>${basedir}/src/main/webapp</directory>
  64. <includes>
  65. <include>WEB-INF/*</include>
  66. </includes>
  67. </resource>
  68. </webResources>
  69. <failOnMissingWebXml>false</failOnMissingWebXml>
  70. <packagingExcludes>${war.packagingExcludes}</packagingExcludes>
  71. <archive>
  72. <manifestEntries>
  73. <WebContext-Name>/xxxxxx</WebContext-Name>
  74. </manifestEntries>
  75. </archive>
  76. </configuration>
  77. </plugin>
  78. </plugins>
  79. </build>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement