Author: tchemit Date: 2009-11-25 16:06:07 +0100 (Wed, 25 Nov 2009) New Revision: 705 Modified: trunk/pom.xml trunk/src/site/apt/profiles.apt trunk/src/site/en/apt/profiles.apt Log: add a staging-site-profile profile to deploy the maven site on local Modified: trunk/pom.xml =================================================================== --- trunk/pom.xml 2009-11-25 07:46:09 UTC (rev 704) +++ trunk/pom.xml 2009-11-25 15:06:07 UTC (rev 705) @@ -238,7 +238,7 @@ <!-- to activate or not the generation of location detail of dependencies in site --> <maven.reports.dependencyLocationsEnabled>true</maven.reports.dependencyLocationsEnabled> - + <!-- pb with 2.6 + doxia-jrst-module + maven-helper-plugin --> <javadoc.version>2.5</javadoc.version> @@ -1485,51 +1485,32 @@ <redmine.releaseFiles>src/site/site_fr.xml,src/site/site_en.xml</redmine.releaseFiles> </properties> - <!--build> - <plugins> - <plugin> - <groupId>org.nuiton</groupId> - <artifactId>maven-helper-plugin</artifactId> - <executions> - <execution> - <id>generate-site-index</id> - <goals> - <goal>generate-site-index</goal> - </goals> - <configuration> - <locales>${maven.site.locales}</locales> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build--> </profile> - <profile> + <profile> <id>testSCM</id> <properties> - <scmwebeditorUrl>http://localhost:8080/scmwebeditor-0.0.1-SNAPSHOT/scmwebeditor</scmwebeditorUrl> + <scmwebeditorUrl>http://localhost:8080/scmwebeditor-0.0.1-SNAPSHOT/scmwebeditor</scmwebeditorUrl> </properties> + </profile> - <!--build> - <plugins> - <plugin> - <groupId>org.nuiton</groupId> - <artifactId>maven-helper-plugin</artifactId> - <executions> - <execution> - <id>generate-site-index</id> - <goals> - <goal>generate-site-index</goal> - </goals> - <configuration> - <locales>${maven.site.locales}</locales> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build--> + <!-- ce plugin permet de deployer un site en local --> + <profile> + <id>staging-site-profile</id> + <activation> + <property> + <name>stagingSite</name> + <value>true</value> + </property> + </activation> + <properties> + <stagingUrl>scpexe://localhost/var/www/maven-staging-site</stagingUrl> + </properties> + <distributionManagement> + <site> + <id>staging-site</id> + <url>${stagingUrl}</url> + </site> + </distributionManagement> </profile> <!--<profile> Modified: trunk/src/site/apt/profiles.apt =================================================================== --- trunk/src/site/apt/profiles.apt 2009-11-25 07:46:09 UTC (rev 704) +++ trunk/src/site/apt/profiles.apt 2009-11-25 15:06:07 UTC (rev 705) @@ -39,6 +39,8 @@ *----------------------------------+---------------------------+ | {{update-jaxx-header}} | <<updateJaxxHeader>> | *----------------------------------+---------------------------+ +| {{staging-site-profile}} | <<stagingSite>> | +*----------------------------------+---------------------------+ | {{internal}} | <<UTF-8>> | *----------------------------------+---------------------------+ @@ -205,7 +207,25 @@ mvn -DupdateJaxxHeader -------------------------------------------------------------------------------- +* {staging-site-profile} + Ce profile permet de deployer un site en local, pratique pour tester les sites multi-modules sans avoir + à deployer sur un serveur distant. + + Le profile utilise un server <<staging-site>> à définir dans votre <settings.xml>. + + Il est possible de définir en ligne de commande l'url où deployer via la propriété <<stagingUrl>>. + + -------------------------------------------------------------------------------- + mvn -Pstaging-site-profile -DstagingUrl=scpexe://myServer/myPath + -------------------------------------------------------------------------------- + + ou + + -------------------------------------------------------------------------------- + mvn -DstagingSite -DstagingUrl=scpexe://myServer/myPath + -------------------------------------------------------------------------------- + * {internal} Ce profile permet de corriger l'url de deployement du site de <mavenpom> Modified: trunk/src/site/en/apt/profiles.apt =================================================================== --- trunk/src/site/en/apt/profiles.apt 2009-11-25 07:46:09 UTC (rev 704) +++ trunk/src/site/en/apt/profiles.apt 2009-11-25 15:06:07 UTC (rev 705) @@ -38,6 +38,8 @@ *----------------------------------+---------------------------+ | {{update-jaxx-header}} | <<updateJaxxHeader>> | *----------------------------------+---------------------------+ +| {{staging-site-profile}} | <<stagingSite>> | +*----------------------------------+---------------------------+ | {{internal}} | <<UTF-8>> | *----------------------------------+---------------------------+ @@ -201,6 +203,24 @@ mvn -DupdateJaxxHeader -------------------------------------------------------------------------------- +* {staging-site-profile} + + This profile allows you to deploy a site in a staging directory. + + The profile use a server named <<staging-site>> to be defined in your <settings.xml>. + + It is possible to define the deployment url via the property <<stagingUrl>>. + + -------------------------------------------------------------------------------- + mvn -Pstaging-site-profile -DstagingUrl=scpexe://myServer/myPath + -------------------------------------------------------------------------------- + + ou + + -------------------------------------------------------------------------------- + mvn -DstagingSite -DstagingUrl=scpexe://myServer/myPath + -------------------------------------------------------------------------------- + * {internal} This profile permits to fix the site url of the <mavenpom> project.
participants (1)
-
tchemit@users.nuiton.org