commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Bourg <ebo...@apache.org>
Subject Re: [all] Commons Parent - detach src/bin artifacts?
Date Tue, 05 Jan 2016 18:09:20 GMT
Le 5/01/2016 18:56, Phil Steitz a écrit :

> That could probably be scripted in maven somehow, like it is rigged
> for the site build.

I'm experimenting with this idea currently. I use the antrun plugin
to create a target/dist.apache.org directory with the bin/src archives
and the release notes ready to be committed (in a next step I'll also
try to commit them). But I'm blocked by another side effect of
detaching the assemblies, they are no longer GPG signed :(

Here is the Maven snippet I use:

  <plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <executions>
      <execution>
        <phase>package</phase>
        <goals>
          <goal>run</goal>
        </goals>
        <configuration>
          <target>
            <!-- Prepare the distribution directory -->
            <mkdir dir="target/dist.apache.org/source"/>
            <mkdir dir="target/dist.apache.org/binaries"/>
  
            <copy todir="target/dist.apache.org">
              <fileset dir="." includes="RELEASE*NOTES*"/>
            </copy>
            <copy todir="target/dist.apache.org/binaries">
              <fileset dir="target" includes="*-bin.*"/>
            </copy>
            <copy todir="target/dist.apache.org/source">
              <fileset dir="target" includes="*-src.*"/>
            </copy>
  
            <checksum algorithm="md5" format="MD5SUM">
              <fileset dir="target/dist.apache.org/source"   includes="*.zip,*.tar.gz"/>
              <fileset dir="target/dist.apache.org/binaries" includes="*.zip,*.tar.gz"/>
            </checksum>
            <checksum algorithm="sha1" format="MD5SUM">
              <fileset dir="target/dist.apache.org/source"   includes="*.zip,*.tar.gz"/>
              <fileset dir="target/dist.apache.org/binaries" includes="*.zip,*.tar.gz"/>
            </checksum>
          </target>
        </configuration>
      </execution>
    </executions>
  </plugin>


Emmanuel Bourg


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


Mime
View raw message