Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <profile>
- <id>generate-rest-doc</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.enunciate</groupId>
- <artifactId>maven-enunciate-plugin</artifactId>
- <version>1.27</version>
- <executions>
- <execution>
- <goals>
- <goal>docs</goal>
- </goals>
- <configuration>
- <docsDir>${project.build.directory}/docs</docsDir>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>wagon-maven-plugin</artifactId>
- <version>1.0-beta-4</version>
- <executions>
- <execution>
- <id>upload-javadoc</id>
- <phase>package</phase>
- <goals>
- <goal>upload</goal>
- </goals>
- <configuration>
- <fromDir>${project.build.directory}/docs</fromDir>
- <includes>*</includes>
- <url>scp://MY-REPO/var/www/html/projects/rest-war</url>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <distributionManagement>
- <site>
- <id>javadoc</id>
- <url>scp://MY-REPO/var/www/html/projects/-rest-war</url>
- </site>
- </distributionManagement>
- </profile>
- ....
- <extensions>
- <extension>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-ssh</artifactId>
- <version>1.0-beta-6</version>
- </extension>
- </extensions>
- </build>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-site-plugin</artifactId>
- <version>3.3</version>
- <dependencies>
- <dependency>
- <groupId>org.apache.maven.wagon</groupId>
- <artifactId>wagon-ssh</artifactId>
- <version>2.4</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <id>upload-javadoc</id>
- <phase>package</phase>
- <goals>
- <goal>deploy</goal>
- </goals>
- <configuration>
- <inputDirectory>${project.build.directory}/docs</inputDirectory>
- </configuration>
- </execution>
- </executions>
- </plugin>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement