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-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to