Commits

Mirko Friedenhagen committed df6b43e

Add support for Maven3.

Comments (0)

Files changed (1)

     </organization>
     <ciManagement>
         <system>Hudson</system>
-        <url>http://s312195779.online.de/hudson/job/ckjm-maven-plugin/</url>
+        <url>http://huschteguzzel.de/hudson/job/ckjm-maven-plugin/</url>
     </ciManagement>
     <prerequisites>
         <maven>2.2</maven>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-eclipse-plugin</artifactId>
-                <version>2.7</version>
-                <configuration>
-                    <downloadSources>true</downloadSources>
-                    <downloadJavadocs>true</downloadJavadocs>
-                </configuration>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-compiler-plugin</artifactId>
                 <version>2.3</version>
                 <configuration>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-docck-plugin</artifactId>
                 <version>1.0</version>
-                <!--
-                    executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executions
-                -->
+                <!-- executions> <execution> <goals> <goal>check</goal> </goals> </execution> </executions -->
             </plugin>
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>cobertura-maven-plugin</artifactId>
-                <version>2.4</version>
+                <version>${cobertura-maven-plugin.version}</version>
                 <configuration>
                     <instrumentation>
                         <excludes>
             </plugin>
         </plugins>
     </build>
+    <profiles>
+        <profile>
+            <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>
+            <build>
+                <pluginManagement>
+                    <plugins>
+                        <plugin>
+                            <groupId>org.apache.maven.plugins</groupId>
+                            <artifactId>maven-site-plugin</artifactId>
+                            <version>3.0-beta-3</version>
+                        </plugin>
+                    </plugins>
+                </pluginManagement>
+            </build>
+        </profile>
+    </profiles>
     <reporting>
         <plugins>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jxr-plugin</artifactId>
+                <version>2.1</version>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-changes-plugin</artifactId>
                 <version>2.3</version>
             </plugin>
                 <configuration>
                     <quiet>true</quiet>
                     <links>
-                        <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
+                        <link>http://download.oracle.com/javase/1.5.0/docs/api/</link>
                         <link>http://www.spinellis.gr/sw/ckjm/javadoc/</link>
                         <link>http://maven.apache.org/ref/current/apidocs/</link>
                     </links>
             </plugin>
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
-                <artifactId>maven-jxr-plugin</artifactId>
-                <version>2.1</version>
-            </plugin>
-            <plugin>
-                <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-surefire-report-plugin</artifactId>
                 <version>2.5</version>
             </plugin>
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>cobertura-maven-plugin</artifactId>
-                <version>2.4</version>
+                <version>${cobertura-maven-plugin.version}</version>
                 <configuration>
                     <formats>
                         <format>xml</format>
         </plugins>
     </reporting>
     <properties>
-        <!--
-            compare: http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding
-        -->
+        <!-- compare: http://docs.codehaus.org/display/MAVENUSER/POM+Element+for+Source+File+Encoding -->
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+        <cobertura-maven-plugin.version>2.4</cobertura-maven-plugin.version>
     </properties>
-</project>
+</project>