fix maven site generation for maven 3

This commit is contained in:
Vincent Behar 2011-07-04 12:56:11 +02:00
parent c60ac96cb4
commit 3aef138d38
2 changed files with 42 additions and 2 deletions

40
pom.xml
View file

@ -82,6 +82,7 @@
<plugin.project-info-reports.version>2.4</plugin.project-info-reports.version>
<plugin.release.version>2.2</plugin.release.version>
<plugin.resources.version>2.5</plugin.resources.version>
<!-- site 2.3 for maven 2.x and site 3.0-x for maven 3.x -->
<plugin.site.version>2.3</plugin.site.version>
<plugin.source.version>2.1.2</plugin.source.version>
<plugin.surefire.version>2.9</plugin.surefire.version>
@ -387,5 +388,44 @@
</dependency>
</dependencies>
<profiles>
<profile>
<!-- maven 3 specific configuration -->
<id>maven-3</id>
<activation>
<file>
<!-- This employs that the basedir expression is only recognized by Maven 3.x (see MNG-2363) -->
<exists>${basedir}</exists>
</file>
</activation>
<properties>
<plugin.site.version>3.0-beta-3</plugin.site.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-decoration-model</artifactId>
<version>1.2</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>attach-descriptor</id>
<goals>
<goal>attach-descriptor</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
<project xmlns="http://maven.apache.org/DECORATION/1.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd"
xsi:schemaLocation="http://maven.apache.org/DECORATION/1.1.0 http://maven.apache.org/xsd/decoration-1.1.0.xsd"
name="${project.name}">
<googleAnalyticsAccountId>UA-23435653-1</googleAnalyticsAccountId>
<body>