Ah, yes. I took care of that in [codec] by adding the XML fragment below in the 
POM.

This fragment is also in [parent] release 18 but why does it not kick in for 
[math]? 

Sigh, when I take that XML out of the [codec] POM, it does not kick in from 
[parent]. Uhg, Maven magic that I do not know :(

  <profiles>
        <!-- 
          Use maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x 
with Maven 3.x  
          See 
http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html 
        -->
    <profile>
      <id>maven-3</id>
      <activation>
        <file>
          <!--  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>
        <plugins>
          <plugin>
            <artifactId>maven-site-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-descriptor</id>
                <goals>
                  <goal>attach-descriptor</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>    
  

Gary Gregory
Senior Software Engineer
Rocket Software
3340 Peachtree Road, Suite 820 • Atlanta, GA 30326 • USA
Tel: +1.404.760.1560
Email: ggreg...@seagullsoftware.com
Web: seagull.rocketsoftware.com  



> -----Original Message-----
> From: Luc Maisonobe [mailto:luc.maison...@free.fr]
> Sent: Sunday, February 20, 2011 15:16
> To: Commons Developers List
> Subject: Re: [VOTE] Release math 2.2 based on RC2
> 
> Le 20/02/2011 20:27, Gary Gregory a écrit :
> > Does anyone else see this:
> >
> > [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-
> plugin:3.0-beta-3:site (default-site) on project commons-math: failed to
> get Reports: Unable to parse config
> > uration of mojo org.apache.maven.plugins:maven-javadoc-
> plugin:2.5:aggregate: Setter
> org.apache.maven.plugin.javadoc.AggregatorJavadocReport.setReportOutputDire
> ctory( java.lang
> > .Class ) threw exception when called with parameter 'C:\temp\commons-
> math-2.2-src\target\site\apidocs': null: InvocationTargetException:
> NullPointerException -> [Help 1]
> >
> >> mvn -version
> > Apache Maven 3.0.2 (r1056850; 2011-01-08 19:58:10-0500)
> 
> I think I have read somewhere that maven 3 have issues with the site
> plugin which was not ready for production. Could you try using maven2 ?
> 
> thanks,
> Luc
> 
> > Java version: 1.6.0_23, vendor: Sun Microsystems Inc.
> > Java home: C:\Program Files\Java\jdk1.6.0_23\jre
> > Default locale: en_US, platform encoding: Cp1252
> > OS name: "windows vista", version: "6.0", arch: "amd64", family:
> "windows"
> >
> > ?
> >
> > Gary Gregory
> > Senior Software Engineer
> > Rocket Software
> > 3340 Peachtree Road, Suite 820 • Atlanta, GA 30326 • USA
> > Tel: +1.404.760.1560
> > Email: ggreg...@seagullsoftware.com
> > Web: seagull.rocketsoftware.com
> >
> >> -----Original Message-----
> >> From: Luc Maisonobe [mailto:luc.maison...@free.fr]
> >> Sent: Sunday, February 20, 2011 10:15
> >> To: Commons Developers List
> >> Subject: [VOTE] Release math 2.2 based on RC2
> >>
> >> Tag:
> http://svn.apache.org/repos/asf/commons/proper/math/tags/MATH_2_2_RC2/
> >>
> >> Distributions: http://people.apache.org/~luc/math-2.2-RC2/
> >>
> >> Maven artifacts: http://people.apache.org/~luc/math-2.2-RC2/maven/
> >>
> >> Documentation bundled with the binary distribution:
> >> http://people.apache.org/~luc/math-2.2-RC2/docs/
> >>
> >> Output of maven:site run against the source distribution:
> >> http://people.apache.org/~luc/math-2.2-RC2/site/
> >>
> >> Clirr report:
> >> http://people.apache.org/~luc/math-2.2-RC2/site/clirr-report.html
> >>
> >> Release notes: http://people.apache.org/~luc/math-2.2-RC2/RELEASE-
> NOTES.txt
> >>
> >> Votes, please. This vote will close in 72 hours, 2011-02-23T16:00:00 UTC
> >>
> >> [ ] +1 Release these artifacts
> >> [ ] +0 OK, but...
> >> [ ] -0 OK, but really should fix...
> >> [ ] -1 I oppose this release because...
> >>
> >> Thanks!
> >>
> >> Luc
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> >> For additional commands, e-mail: dev-h...@commons.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
> For additional commands, e-mail: dev-h...@commons.apache.org

<?xml version="1.0"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->
<project
    xmlns="http://maven.apache.org/POM/4.0.0";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
  <parent>
    <groupId>org.apache.commons</groupId>
    <artifactId>commons-parent</artifactId>
    <version>18</version>
  </parent>
  <modelVersion>4.0.0</modelVersion>
  <groupId>commons-codec</groupId>
  <artifactId>commons-codec</artifactId>
  <version>1.5-SNAPSHOT</version>
  <name>Commons Codec</name>

  <inceptionYear>2002</inceptionYear>
    <description>
     The codec package contains simple encoder and decoders for
     various formats such as Base64 and Hexadecimal.  In addition to these
     widely used encoders and decoders, the codec package also maintains a
     collection of phonetic encoding utilities.
    </description>

  <url>http://commons.apache.org/codec/</url>

  <issueManagement>
    <system>jira</system>
    <url>http://issues.apache.org/jira/browse/CODEC</url>
  </issueManagement>

  <scm>
    <connection>scm:svn:http://svn.apache.org/repos/asf/commons/proper/codec/trunk</connection>
    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/commons/proper/codec/trunk</developerConnection>
    <url>http://svn.apache.org/viewvc/commons/proper/codec/trunk</url>
  </scm>

  <profiles>
	<!-- 
	  Use maven-site-plugin 2.x with Maven 2.x and maven-site-plugin 3.x with Maven 3.x  
	  See http://maven.apache.org/plugins/maven-site-plugin-3.0-beta-3/maven-3.html 
	-->
    <profile>
      <id>maven-3</id>
      <activation>
        <file>
          <!--  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>
        <plugins>
          <plugin>
            <artifactId>maven-site-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-descriptor</id>
                <goals>
                  <goal>attach-descriptor</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>    
  </profiles>
  
    <developers>
        <developer>
            <name>Henri Yandell</name>
            <id>bayard</id>
            <email>bay...@generationjava.com</email>
        </developer>
        <developer>
            <name>Tim OBrien</name>
            <id>tobrien</id>
            <email>tobr...@apache.org</email>
            <timezone>-6</timezone>
        </developer>
        <developer>
            <name>Scott Sanders</name>
            <id>sanders</id>
            <email>sand...@totalsync.com</email>
        </developer>
        <developer>
            <name>Rodney Waldhoff</name>
            <id>rwaldhoff</id>
            <email>rwaldh...@apache.org</email>
        </developer>
        <developer>
            <name>Daniel Rall</name>
            <id>dlr</id>
            <email>d...@finemaltcoding.com</email>
        </developer>
        <developer>
            <name>Jon S. Stevens</name>
            <id>jon</id>
            <email>j...@collab.net</email>
        </developer>
        <developer>
            <name>Gary D. Gregory</name>
            <id>ggregory</id>
            <email>ggreg...@apache.org</email>
            <url>http://www.garygregory.com</url>
            <organization>Seagull Software</organization>
            <organizationUrl>http://www.seagullsoftware.com</organizationUrl>
            <timezone>-5</timezone>
        </developer>
        <developer>
            <name>David Graham</name>
            <id>dgraham</id>
            <email>dgra...@apache.org</email>
        </developer>
        <developer>
            <name>Julius Davies</name>
            <id>julius</id>
            <email>jul...@apache.org</email>
            <organizationUrl>http://juliusdavies.ca/</organizationUrl>
            <timezone>-8</timezone>
        </developer>
    </developers>
    <contributors>
        <contributor>
            <name>Christopher O'Brien</name>
            <email>si...@preoccupied.net</email>
            <roles>
                <role>hex</role>
                <role>md5</role>
                <role>architecture</role>
            </roles>
        </contributor>
        <contributor>
            <name>Martin Redington</name>
            <roles><role>Representing xml-rpc</role></roles>
        </contributor>
        <contributor>
            <name>Jeffery Dever</name>
            <roles><role>Representing http-client</role></roles>
        </contributor>
        <contributor>
            <name>Steve Zimmermann</name>
            <email>steve.zimmerm...@heii.com</email>
            <roles><role>Documentation</role></roles>
        </contributor>
        <contributor>
            <name>Benjamin Walstrum</name>
            <email>b...@walstrum.com</email>
        </contributor>
        <contributor>
            <name>Oleg Kalnichevski</name>
            <email>o...@ural.ru</email>
            <roles><role>Representing http-client</role></roles>
        </contributor>
        <contributor>
            <name>Dave Dribin</name>
            <email>apa...@dave.dribin.org</email>
            <roles><role>DigestUtil</role></roles>
        </contributor>
        <contributor>
            <name>Alex Karasulu</name>
            <email>aok123 at bellsouth.net</email>
            <roles><role>Submitted Binary class and test</role></roles>
        </contributor>
        <contributor>
            <name>Matthew Inger</name>
            <email>mattinger at yahoo.com</email>
            <roles><role>Submitted DIFFERENCE algorithm for Soundex and RefinedSoundex</role></roles>
        </contributor>
        <contributor>
            <name>Jochen Wiedmann</name>
            <email>joc...@apache.org</email>
            <roles><role>Base64 code [CODEC-69]</role></roles>
        </contributor>
        <contributor>
            <name>Sebastian Bazley</name>
            <email>s...@apache.org</email>
            <roles><role>Streaming Base64</role></roles>
        </contributor>
    </contributors>    

  <!-- Codec should depend on very little -->
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.2</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <properties>
    <maven.compile.source>1.4</maven.compile.source>
    <maven.compile.target>1.4</maven.compile.target>
    <commons.componentid>codec</commons.componentid>
    <commons.release.version>1.5</commons.release.version>
    <!-- The RC version used in the staging repository URL. -->
    <commons.rc.version>RC1</commons.rc.version>
    <commons.jira.id>CODEC</commons.jira.id>
    <commons.jira.pid>12310464</commons.jira.pid>
    <!-- Ensure copies work OK (can be removed later when this is in parent POM) -->
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  </properties> 

  <build>
    <sourceDirectory>src/java</sourceDirectory>
    <testSourceDirectory>src/test</testSourceDirectory>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-site-plugin</artifactId>
          <version>2.2</version>
        </plugin>        
      </plugins>
    </pluginManagement>    
    <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <includes>
                <include>**/*Test.java</include>
                <include>**/Test*.java</include>
              </includes>
              <excludes>
                <exclude>**/*AbstractTest.java</exclude>
              </excludes>
          </configuration>
        </plugin>
        <plugin>
          <artifactId>maven-assembly-plugin</artifactId>
          <configuration>
            <descriptors>
              <descriptor>src/assembly/bin.xml</descriptor>
              <descriptor>src/assembly/src.xml</descriptor>
            </descriptors>
            <tarLongFileMode>gnu</tarLongFileMode>
          </configuration>
        </plugin>
      </plugins>
    </build>

    <reporting>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-project-info-reports-plugin</artifactId>
          <version>2.3.1</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-changes-plugin</artifactId>
          <version>2.4</version>
          <configuration>
            <xmlPath>${basedir}/src/changes/changes.xml</xmlPath>
            <issueLinkTemplate>%URL%/%ISSUE%</issueLinkTemplate>
          </configuration>
          <reportSets>
            <reportSet>
              <reports>
                 <report>changes-report</report>
              </reports>
            </reportSet>
          </reportSets>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-checkstyle-plugin</artifactId>
          <version>2.6</version>
          <configuration>
            <configLocation>${basedir}/checkstyle.xml</configLocation>
            <enableRulesSummary>false</enableRulesSummary>
            <headerFile>${basedir}/LICENSE-header.txt</headerFile>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>cobertura-maven-plugin</artifactId>
          <version>2.4</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-pmd-plugin</artifactId>
          <version>2.5</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>2.3.1</version>
        </plugin>
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>clirr-maven-plugin</artifactId>
          <version>2.3</version>
          <configuration>
            <comparisonVersion>1.4</comparisonVersion>
            <minSeverity>info</minSeverity>
          </configuration>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>2.7</version>
          <configuration>
            <linksource>true</linksource>
            <links>
              <link>http://java.sun.com/j2se/1.4.2/docs/api/</link>
            </links>
          </configuration>
        </plugin>
      </plugins>
    </reporting>

</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to