Author: veithen
Date: Tue Dec 22 13:52:12 2015
New Revision: 1721403
URL: http://svn.apache.org/viewvc?rev=1721403&view=rev
Log:
Bind the site:stage goal to the site-deploy phase so that the entire site can
be built using a single command. Also skip site:site and/or site:stage
automatically.
Modified:
axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/site/apt/configuration.apt
axis/axis2/java/core/trunk/pom.xml
Modified:
axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/site/apt/configuration.apt
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/site/apt/configuration.apt?rev=1721403&r1=1721402&r2=1721403&view=diff
==============================================================================
---
axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/site/apt/configuration.apt
(original)
+++
axis/axis2/java/core/trunk/modules/tool/axis2-wsdl2code-maven-plugin/src/site/apt/configuration.apt
Tue Dec 22 13:52:12 2015
@@ -65,7 +65,7 @@ Configuration
| |
| "both" (default). |
*-----------------------------+------------------------------------------------+------------------------------------------------+
| unpackClasses | ${axis2.wsdl2code.unpackClasses}
| Whether to unpack classes. |
-*-----------------------------+------------------------------------------------+------------------------------------------------|
+*-----------------------------+------------------------------------------------+------------------------------------------------+
| wsdlFile | ${axis2.wsdl2code.wsdl}
| Location of the WSDL file, which is read as |
| | src/main/axis2/service.wsdl
| input. |
*-----------------------------+------------------------------------------------+------------------------------------------------+
Modified: axis/axis2/java/core/trunk/pom.xml
URL:
http://svn.apache.org/viewvc/axis/axis2/java/core/trunk/pom.xml?rev=1721403&r1=1721402&r2=1721403&view=diff
==============================================================================
--- axis/axis2/java/core/trunk/pom.xml (original)
+++ axis/axis2/java/core/trunk/pom.xml Tue Dec 22 13:52:12 2015
@@ -1082,6 +1082,7 @@
<link>http://java.sun.com/javaee/5/docs/api/</link>
<link>http://jaxen.codehaus.org/apidocs/</link>
</links>
+ <detectOfflineLinks>false</detectOfflineLinks>
</configuration>
</plugin>
<plugin>
@@ -1310,6 +1311,21 @@
import java.text.MessageFormat
project.properties['release_date'] =
MessageFormat.format("{0,date,MMMMM dd, yyyy}", new Date())
project.properties['release_version'] =
project.version.replaceAll("-SNAPSHOT", "")
+ project.properties['skipSiteSite'] =
String.valueOf(!new File(project.basedir, 'src/site/site.xml').exists())
+ </script>
+ </scripts>
+ </configuration>
+ </execution>
+ <execution>
+ <id>check-site</id>
+ <phase>post-site</phase>
+ <goals>
+ <goal>execute</goal>
+ </goals>
+ <configuration>
+ <scripts>
+ <script>
+ project.properties['skipSiteStage'] =
String.valueOf(!new File(project.reporting.outputDirectory).exists())
</script>
</scripts>
</configuration>
@@ -1317,6 +1333,35 @@
</executions>
</plugin>
<plugin>
+ <artifactId>maven-site-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>default-site</id>
+ <phase>site</phase>
+ <goals>
+ <goal>site</goal>
+ </goals>
+ <configuration>
+ <skip>${skipSiteSite}</skip>
+ </configuration>
+ </execution>
+ <execution>
+ <id>site-stage</id>
+ <phase>site-deploy</phase>
+ <goals>
+ <goal>stage</goal>
+ </goals>
+ <configuration>
+ <skip>${skipSiteStage}</skip>
+ </configuration>
+ </execution>
+ </executions>
+ <configuration>
+ <!-- Don't deploy; we use maven-scm-publish-plugin -->
+ <skipDeploy>true</skipDeploy>
+ </configuration>
+ </plugin>
+ <plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-scm-publish-plugin</artifactId>
<version>1.1</version>