You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2013/10/30 17:28:33 UTC
svn commit: r1537163 - /struts/struts2/trunk/assembly/pom.xml
Author: lukaszlenart
Date: Wed Oct 30 16:28:33 2013
New Revision: 1537163
URL: http://svn.apache.org/r1537163
Log:
Allows to skip exporting pages from Confluence
Modified:
struts/struts2/trunk/assembly/pom.xml
Modified: struts/struts2/trunk/assembly/pom.xml
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/assembly/pom.xml?rev=1537163&r1=1537162&r2=1537163&view=diff
==============================================================================
--- struts/struts2/trunk/assembly/pom.xml (original)
+++ struts/struts2/trunk/assembly/pom.xml Wed Oct 30 16:28:33 2013
@@ -84,35 +84,6 @@
</plugin>
<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>
-
- <plugin>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
@@ -139,6 +110,49 @@
</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>