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 2017/03/08 12:55:17 UTC

[13/15] struts-site git commit: Adds dedicated profiles to export Wiki pages

Adds dedicated profiles to export Wiki pages


Project: http://git-wip-us.apache.org/repos/asf/struts-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts-site/commit/c200080c
Tree: http://git-wip-us.apache.org/repos/asf/struts-site/tree/c200080c
Diff: http://git-wip-us.apache.org/repos/asf/struts-site/diff/c200080c

Branch: refs/heads/master
Commit: c200080c56a1a0c1d548c937f6bb163d965ea105
Parents: 96e37e1
Author: Lukasz Lenart <lu...@gmail.com>
Authored: Wed Feb 15 20:58:59 2017 +0100
Committer: Lukasz Lenart <lu...@gmail.com>
Committed: Wed Mar 8 13:54:43 2017 +0100

----------------------------------------------------------------------
 pom.xml | 134 ++++++++++++++++++++++++++++++++++++++++-------------------
 1 file changed, 92 insertions(+), 42 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts-site/blob/c200080c/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index a6adde6..567c0cb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,48 +16,98 @@
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     </properties>
 
-    <build>
+    <profiles>
+        <profile>
+            <id>cwiki</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <dependencies>
+                <dependency>
+                    <groupId>org.apache.cxf.site-export</groupId>
+                    <artifactId>cxf-site-export</artifactId>
+                    <version>1.0-SNAPSHOT</version>
+                </dependency>
+            </dependencies>
+            <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>
+                                    <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/etc/docs.cfg</argument>
+                                    </arguments>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
 
-        <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>
-                            <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/etc/docs.cfg</argument>
-                            </arguments>
-                        </configuration>
-                    </execution>
-                </executions>
-            </plugin>
-        </plugins>
-
-    </build>
-
-    <dependencies>
-
-        <dependency>
-            <groupId>org.apache.cxf.site-export</groupId>
-            <artifactId>cxf-site-export</artifactId>
-            <version>1.0-SNAPSHOT</version>
-        </dependency>
-
-    </dependencies>
+            </build>
+        </profile>
+        <profile>
+            <id>md</id>
+            <dependencies>
+                <dependency>
+                    <groupId>de.viaboxx.markdown</groupId>
+                    <artifactId>confluence2md</artifactId>
+                    <version>1.5.2</version>
+                    <classifier>fat</classifier>
+                </dependency>
+            </dependencies>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>exec-maven-plugin</artifactId>
+                        <version>1.2</version>
+                        <executions>
+                            <execution>
+                                <id>md-docs</id>
+                                <phase>prepare-package</phase>
+                                <goals>
+                                    <goal>java</goal>
+                                </goals>
+                                <configuration>
+                                    <includeProjectDependencies>true</includeProjectDependencies>
+                                    <mainClass>de.viaboxx.markdown.Confluence2MD</mainClass>
+                                    <arguments>
+                                        <argument>-jar</argument>
+                                        <argument>confluence2md-fat.jar</argument>
+                                        <argument>-a</argument>
+                                        <argument>${project.build.directory}/md/attachments</argument>
+                                        <argument>-o</argument>
+                                        <argument>${project.build.directory}/md/home.md</argument>
+                                        <argument>-u</argument>
+                                        <argument>${confluence.user}:${confluence.password}</argument>
+                                        <argument>-server</argument>
+                                        <argument>https://cwiki.apache.org/confluence</argument>
+                                        <argument>14153</argument>
+                                    </arguments>
+                                </configuration>
+                            </execution>
+                        </executions>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
 
 </project>