commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@gmail.com>
Subject Re: [math] 1.2-RC1 available for review
Date Mon, 11 Feb 2008 10:46:37 GMT
The license-header.txt file is not included in the source distro -
which causes the checkstyle to fail when building from the src distro
- I've added that in (hope you don't mind):

    http://svn.apache.org/viewvc?view=rev&revision=620449

Theres a couple of other files in trunk that are not in the source
distro (test-jar.xml and testOnly.sh) - does that matter?

Also there are no -sources.jar and -javadoc.jars which would be nice -
if you use the "rc" profile (specify -Prc on command line) these
should be produced - although I had "fun & games" getting the build to
produce everything for IO 1.4 and sign it all. IO's pom.xml also
defines an "rc" profile which produces the site and "assemblies" in
the "package" phase and I ran the following command for IO 1.4
release:

   mvn -Prc clean source:jar javadoc:jar install -DcreateChecksum=true

this worked producing everything and creating checksums and signing
all the artifacts - the only downside was the -javadoc.jar and
-sources.jar inside the binary distro had a different timestamp from
the signed versions outside (because in commons-parent-7 the sources
and javadocs plugins are not attached to the "package" phase in the
"rc" profile  - this will be fixed in commons-parent-8).

If you want I can add an "rc" profile to commons math which attaches
the site, sources, javadoc and assembly plugin to the "package" pahse
then all you need to do to produce all the artifacts is:

 mvn -Prc install -DcreateChecksum=true

(although I guess the maven way is to use the release plugin - but I
don't like the noise it produces [3 commits] for every release
candidate).

Anyway if you think this is a good idea the profile would look like this:

  <profiles>
    <profile>
      <id>rc</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-site-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>site</goal>
                </goals>
                <phase>package</phase>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-source-plugin</artifactId>
            <executions>
              <execution>
                <id>create-source-jar</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <phase>package</phase>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>create-javadoc-jar</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <phase>package</phase>
                <configuration>
                  <source>${maven.compile.source}</source>
                </configuration>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>attached</goal>
                </goals>
                <phase>package</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

Niall

On Feb 11, 2008 5:33 AM, Phil Steitz <phil.steitz@gmail.com> wrote:
> The zips / tars are here:
> http://people.apache.org/~psteitz/math-1.2-RC1/
>
> The site included in the binary distro is here:
> http://people.apache.org/~psteitz/math-1.2-RC1/docs/
>
> Release notes:
> http://people.apache.org/~psteitz/math-1.2-RC1/RELEASE-NOTES.txt
>
> Ant, Maven 1 and Maven 2 builds should all work from the unpacked
> source distribution.
> Comments / suggestions for improvement welcome!
>
> Phil

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message