Uses wget to fetch docs instead re-exporting pages from wiki
Project: http://git-wip-us.apache.org/repos/asf/struts/repo Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/769e815c Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/769e815c Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/769e815c Branch: refs/heads/master Commit: 769e815c6e0a72b25812ff1c4526105be9491e0c Parents: 1a668af Author: Lukasz Lenart <lukaszlen...@apache.org> Authored: Fri May 2 15:35:31 2014 +0200 Committer: Lukasz Lenart <lukaszlen...@apache.org> Committed: Fri May 2 15:35:31 2014 +0200 ---------------------------------------------------------------------- assembly/pom.xml | 86 +++++++++++++++++++++------------------------------ 1 file changed, 36 insertions(+), 50 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/struts/blob/769e815c/assembly/pom.xml ---------------------------------------------------------------------- diff --git a/assembly/pom.xml b/assembly/pom.xml index 7984c29..56a551b 100644 --- a/assembly/pom.xml +++ b/assembly/pom.xml @@ -77,6 +77,42 @@ </plugin> <plugin> + <artifactId>maven-antrun-plugin</artifactId> + <executions> + <execution> + <id>cwiki-docs</id> + <phase>prepare-package</phase> + <goals> + <goal>run</goal> + </goals> + <configuration> + <tasks> + <mkdir dir="${project.build.directory}/cwiki/" /> + <exec executable="wget"> + <arg value="-erobots=off" /> + <arg value="-nH" /> + <arg value="--cut-dirs=3" /> + <arg value="-nv" /> + <arg value="-E" /> + <arg value="-L" /> + <arg value="-l 0" /> + <arg value="-np" /> + <arg value="--directory-prefix=${project.build.directory}/cwiki" /> + <arg value="--no-check-certificate" /> + <arg value="-r" /> + <arg value="http://struts.apache.org/development/2.x/docs/" /> + </exec> + <delete> + <fileset dir="${project.build.directory}/cwiki/" includes="**/index.*" /> + </delete> + <copy file="${project.build.directory}/cwiki/home.html" tofile="${project.build.directory}/cwiki/index.html" /> + </tasks> + </configuration> + </execution> + </executions> + </plugin> + + <plugin> <artifactId>maven-assembly-plugin</artifactId> <executions> <execution> @@ -103,59 +139,9 @@ </plugins> </build> - <profiles> - <profile> - <id>export-cwiki</id> - <activation> - <property> - <name>!skipWiki</name> - </property> - </activation> - <build> - <plugins> - <plugin> - <groupId>org.codehaus.mojo</groupId> - <artifactId>exec-maven-plugin</artifactId> - <version>1.2</version> - <executions> - <execution> - <id>cwiki-docs</id> - <phase>prepare-package</phase> - <goals> - <goal>java</goal> - </goals> - <configuration> - <classpathScope>runtime</classpathScope> - <includeProjectDependencies>true</includeProjectDependencies> - <mainClass>org.apache.cxf.cwiki.SiteExporter</mainClass> - <arguments> - <argument>-d</argument> - <argument>${project.build.directory}/cwiki/WW</argument> - <argument>-password</argument> - <argument>${confluence.password}</argument> - <argument>-user</argument> - <argument>${confluence.user}</argument> - <argument>${basedir}/src/main/resources/docs.cfg</argument> - </arguments> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - </profile> - </profiles> - <dependencies> <dependency> - <groupId>org.apache.cxf.site-export</groupId> - <artifactId>cxf-site-export</artifactId> - <version>1.0-SNAPSHOT</version> - <scope>runtime</scope> - </dependency> - - <dependency> <groupId>org.apache.struts</groupId> <artifactId>struts2-cdi-plugin</artifactId> </dependency>