Guest User

Untitled

a guest
Jul 16th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. <profile>
  2. <id>docs</id>
  3. <build>
  4. <plugins>
  5. <plugin>
  6. <groupId>org.codehaus.mojo</groupId>
  7. <artifactId>exec-maven-plugin</artifactId>
  8. <version>1.2</version>
  9. <executions>
  10. <execution>
  11. <id>build-api-xml</id>
  12. <phase>generate-resources</phase>
  13. <goals>
  14. <goal>exec</goal>
  15. </goals>
  16. <configuration>
  17. <executable>php</executable>
  18. <workingDirectory>src/main/webapp/js/util/docscripts</workingDirectory>
  19. <arguments>
  20. <argument>generate.php</argument>
  21. <argument>myNS</argument> <!-- leave this off and it will build for all of them -->
  22. <argument>--serialize=xml</argument>
  23. <argument>--outfile=../ibm</argument>
  24. <argument>--clean</argument>
  25. </arguments>
  26. </configuration>
  27. </execution>
  28.  
  29. <execution>
  30. <id>build-docs</id>
  31.  
  32. <phase>process-resources</phase>
  33. <goals>
  34. <goal>exec</goal>
  35. </goals>
  36. <configuration>
  37. <includeProjectDependencies>false</includeProjectDependencies>
  38. <includePluginDependencies>true</includePluginDependencies>
  39. <executable>php</executable>
  40. <workingDirectory>src/main/resources/docs</workingDirectory>
  41. <arguments>
  42. <argument>lib/process.php</argument>
  43. <argument>../../webapp/js/util/docscripts/ibm.xml</argument>
  44. <argument>${project.version}</argument>
  45. </arguments>
  46. </configuration>
  47. </execution>
  48. </executions>
  49. </plugin>
  50.  
  51. <plugin>
  52. <artifactId>maven-resources-plugin</artifactId>
  53. <version>2.4.3</version>
  54. <executions>
  55. <execution>
  56. <id>copy-resources</id>
  57. <phase>validate</phase>
  58. <goals>
  59. <goal>copy-resources</goal>
  60. </goals>
  61. <configuration>
  62. <includeEmptyDirs>true</includeEmptyDirs>
  63. <outputDirectory>${basedir}/target/SMAWebService/docs</outputDirectory>
  64. <resources>
  65. <resource>
  66. <directory>src/main/resources/docs/</directory>
  67. </resource>
  68. </resources>
  69. </configuration>
  70. </execution>
  71. </executions>
  72.  
  73. </plugin>
  74. </plugins>
  75. </build>
  76. </profile>
Add Comment
Please, Sign In to add comment