mirror of https://github.com/apache/archiva.git
Fixing paths and plugin execution
This commit is contained in:
parent
faafb66258
commit
d712278c12
|
@ -1 +1,5 @@
|
||||||
mvn clean site site:stage -Preporting scm-publish:publish-scm $@
|
#!/bin/bash
|
||||||
|
|
||||||
|
mvn clean site site:stage -Preporting "$@"
|
||||||
|
mvn scm-publish:publish-scm "$@"
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
/refs
|
/ref
|
|
@ -48,11 +48,11 @@
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-scm-publish-plugin</artifactId>
|
<artifactId>maven-scm-publish-plugin</artifactId>
|
||||||
|
<inherited>false</inherited>
|
||||||
<configuration>
|
<configuration>
|
||||||
<checkinComment>Apache Archiva versioned module docs for ${project.version}</checkinComment>
|
<checkinComment>Apache Archiva versioned module docs for ${project.version}</checkinComment>
|
||||||
<skipDeletedFiles>true</skipDeletedFiles>
|
<skipDeletedFiles>true</skipDeletedFiles>
|
||||||
|
@ -64,18 +64,23 @@
|
||||||
</ignorePathsToDelete>
|
</ignorePathsToDelete>
|
||||||
-->
|
-->
|
||||||
</configuration>
|
</configuration>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>scm-publish</id>
|
||||||
|
<phase>site-deploy</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>publish-scm</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-site-plugin</artifactId>
|
<artifactId>maven-site-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<stagingDirectory>${site.staging.base}/target/staging/refs/${project.version}/</stagingDirectory>
|
<skipDeploy>true</skipDeploy>
|
||||||
|
<stagingDirectory>${site.staging.base}/target/staging/ref/${project.version}/</stagingDirectory>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
|
@ -84,9 +89,24 @@
|
||||||
<goal>attach-descriptor</goal>
|
<goal>attach-descriptor</goal>
|
||||||
</goals>
|
</goals>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
<execution>
|
||||||
|
<id>site-generate-resources</id>
|
||||||
|
<phase>generate-resources</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>site</goal>
|
||||||
|
</goals>
|
||||||
|
</execution>
|
||||||
|
<execution>
|
||||||
|
<id>stage-for-scm-publish</id>
|
||||||
|
<phase>post-site</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>stage</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<skipDeploy>false</skipDeploy>
|
||||||
|
</configuration>
|
||||||
|
</execution> </executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
||||||
</build>
|
</build>
|
||||||
|
@ -206,6 +226,48 @@
|
||||||
</plugins>
|
</plugins>
|
||||||
</reporting>
|
</reporting>
|
||||||
</profile>
|
</profile>
|
||||||
|
<!--
|
||||||
|
This runs a sparse git checkout for the web site content repository that contains only the doc directory.
|
||||||
|
The profile is activated only, if the checkout directory does not exist.
|
||||||
|
The executor runs a shell script.
|
||||||
|
-->
|
||||||
|
<profile>
|
||||||
|
<id>site-checkout</id>
|
||||||
|
<activation>
|
||||||
|
<file>
|
||||||
|
<missing>${scmPubCheckoutDirectory}</missing>
|
||||||
|
</file>
|
||||||
|
</activation>
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.codehaus.mojo</groupId>
|
||||||
|
<artifactId>exec-maven-plugin</artifactId>
|
||||||
|
<version>1.6.0</version>
|
||||||
|
<inherited>false</inherited>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<id>prepare-checkout</id>
|
||||||
|
<phase>pre-site</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>exec</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<executable>checkoutSite.sh</executable>
|
||||||
|
<workingDirectory>${project.basedir}</workingDirectory>
|
||||||
|
<arguments>
|
||||||
|
<argument>-d</argument>
|
||||||
|
<argument>${scmPubCheckoutDirectory}</argument>
|
||||||
|
<argument>${siteRepositoryUrl}</argument>
|
||||||
|
</arguments>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
</profile>
|
||||||
|
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
|
|
||||||
|
@ -215,4 +277,5 @@
|
||||||
<url>${siteRepositoryUrl}</url>
|
<url>${siteRepositoryUrl}</url>
|
||||||
</site>
|
</site>
|
||||||
</distributionManagement>
|
</distributionManagement>
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
Loading…
Reference in New Issue