diff options
author | Martin Stockhammer <martin_s@apache.org> | 2018-11-04 15:31:11 +0100 |
---|---|---|
committer | Martin Stockhammer <martin_s@apache.org> | 2018-11-04 15:31:11 +0100 |
commit | d712278c12308e346ab01ce7677d1e23c71607b7 (patch) | |
tree | 0b152e0aa66db4a1e41101b1a8c143c4c8f304fc /archiva-modules/pom.xml | |
parent | faafb6625833ac96d7c38b55ddc64eaad76d977d (diff) | |
download | archiva-d712278c12308e346ab01ce7677d1e23c71607b7.tar.gz archiva-d712278c12308e346ab01ce7677d1e23c71607b7.zip |
Fixing paths and plugin execution
Diffstat (limited to 'archiva-modules/pom.xml')
-rw-r--r-- | archiva-modules/pom.xml | 113 |
1 files changed, 88 insertions, 25 deletions
diff --git a/archiva-modules/pom.xml b/archiva-modules/pom.xml index 529642506..b8b924233 100644 --- a/archiva-modules/pom.xml +++ b/archiva-modules/pom.xml @@ -48,34 +48,39 @@ </modules> <build> - <pluginManagement> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-scm-publish-plugin</artifactId> - <configuration> - <checkinComment>Apache Archiva versioned module docs for ${project.version}</checkinComment> - <skipDeletedFiles>true</skipDeletedFiles> - <content>${project.build.directory}/staging</content> - <tryUpdate>true</tryUpdate> - <!-- - <ignorePathsToDelete> - <path>%regex[^(?!docs/).*$]</path> - </ignorePathsToDelete> - --> - </configuration> - - </plugin> - - - </plugins> - </pluginManagement> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-scm-publish-plugin</artifactId> + <inherited>false</inherited> + <configuration> + <checkinComment>Apache Archiva versioned module docs for ${project.version}</checkinComment> + <skipDeletedFiles>true</skipDeletedFiles> + <content>${project.build.directory}/staging</content> + <tryUpdate>true</tryUpdate> + <!-- + <ignorePathsToDelete> + <path>%regex[^(?!docs/).*$]</path> + </ignorePathsToDelete> + --> + </configuration> + <executions> + <execution> + <id>scm-publish</id> + <phase>site-deploy</phase> + <goals> + <goal>publish-scm</goal> + </goals> + </execution> + </executions> + </plugin> + + <plugin> + <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <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> <executions> <execution> @@ -84,9 +89,24 @@ <goal>attach-descriptor</goal> </goals> </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> - </plugins> </build> @@ -206,6 +226,48 @@ </plugins> </reporting> </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> @@ -215,4 +277,5 @@ <url>${siteRepositoryUrl}</url> </site> </distributionManagement> + </project> |