Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. <profile>
  2. <id>generate-rest-doc</id>
  3. <build>
  4. <plugins>
  5. <plugin>
  6. <groupId>org.codehaus.enunciate</groupId>
  7. <artifactId>maven-enunciate-plugin</artifactId>
  8. <version>1.27</version>
  9. <executions>
  10. <execution>
  11. <goals>
  12. <goal>docs</goal>
  13. </goals>
  14. <configuration>
  15. <docsDir>${project.build.directory}/docs</docsDir>
  16. </configuration>
  17. </execution>
  18. </executions>
  19. </plugin>
  20. <plugin>
  21. <groupId>org.codehaus.mojo</groupId>
  22. <artifactId>wagon-maven-plugin</artifactId>
  23. <version>1.0-beta-4</version>
  24. <executions>
  25. <execution>
  26. <id>upload-javadoc</id>
  27. <phase>package</phase>
  28. <goals>
  29. <goal>upload</goal>
  30. </goals>
  31. <configuration>
  32. <fromDir>${project.build.directory}/docs</fromDir>
  33. <includes>*</includes>
  34. <url>scp://MY-REPO/var/www/html/projects/rest-war</url>
  35. </configuration>
  36. </execution>
  37. </executions>
  38. </plugin>
  39. </plugins>
  40. </build>
  41. <distributionManagement>
  42. <site>
  43. <id>javadoc</id>
  44. <url>scp://MY-REPO/var/www/html/projects/-rest-war</url>
  45. </site>
  46. </distributionManagement>
  47. </profile>
  48. ....
  49. <extensions>
  50. <extension>
  51. <groupId>org.apache.maven.wagon</groupId>
  52. <artifactId>wagon-ssh</artifactId>
  53. <version>1.0-beta-6</version>
  54. </extension>
  55. </extensions>
  56. </build>
  57.  
  58. <plugin>
  59. <groupId>org.apache.maven.plugins</groupId>
  60. <artifactId>maven-site-plugin</artifactId>
  61. <version>3.3</version>
  62. <dependencies>
  63. <dependency>
  64. <groupId>org.apache.maven.wagon</groupId>
  65. <artifactId>wagon-ssh</artifactId>
  66. <version>2.4</version>
  67. </dependency>
  68. </dependencies>
  69. <executions>
  70. <execution>
  71. <id>upload-javadoc</id>
  72. <phase>package</phase>
  73. <goals>
  74. <goal>deploy</goal>
  75. </goals>
  76. <configuration>
  77. <inputDirectory>${project.build.directory}/docs</inputDirectory>
  78. </configuration>
  79. </execution>
  80. </executions>
  81. </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement