You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2003/11/24 20:57:34 UTC

cvs commit: maven release.xml

jvanzyl     2003/11/24 11:57:34

  Added:       .        release.xml
  Log:
  o release/installer related jelly.
  
  Revision  Changes    Path
  1.1                  maven/release.xml
  
  Index: release.xml
  ===================================================================
  <project>
  
    <!-- Current contains release and install goop, can be further decompose. -->
  
    <!--
     |
     | Some goals to help with the release of Maven itself.
     |
     -->
  
    <goal name="pre-release-work">
      <attainGoal name="maven:plugin-increment-snapshot-version"/>
      <attainGoal name="maven:plugin-convert-snapshots"/>
    </goal>
  
    <goal name="maven:plugin-convert-snapshots"
      description="Convert snapshot versions into resolved timestamped versions.">
  
        <maven:reactor
          basedir="${maven.plugins.directory}"
          includes="*/project.xml"
          goals="convert-snapshots-auto"
          banner="Resolving snapshot versions"
          ignoreFailures="true"
        />
    </goal>
  
    <goal name="maven:plugin-validate-pom-for-release"
      description="Validate the Plugin POMs for release.">
  
        <maven:reactor
          basedir="${maven.plugins.directory}"
          includes="*/project.xml"
          goals="validate-pom-for-release"
          banner="Resolving snapshot versions"
          ignoreFailures="false"
        />
    </goal>
  
    <goal name="maven:plugin-increment-snapshot-version"
      description="Graduate Plugin currentVersion element.">
  
        <maven:reactor
          basedir="${maven.plugins.directory}"
          includes="*/project.xml"
          goals="increment-snapshot-version"
          banner="Graduating snapshot version"
          ignoreFailures="true"
        />
    </goal>
  
    <!-- ================================================================== -->
    <!-- M A V E N  I N S T A L L E R                                       -->
    <!-- ================================================================== -->
  
    <property name="tag" value="${pom.artifactId}-${pom.currentVersion}"/>
  
    <goal name="maven:installer" description="Create a Maven installer jar">
  
      <property name="installersDir" value="installers"/>
      <property name="installersBase" value="${installersDir}/${tag}"/>
  
      <delete dir="${installersDir}"/>
      <mkdir dir="${installersBase}"/>
  
      <copy todir="${installersBase}">
        <fileset dir="${maven.home}">
          <include name="plugins/*.jar"/>
          <include name="bin/*"/>
          <include name="lib/**"/>
          <include name="maven-project-*.xsd"/>
        </fileset>
      </copy>
  
      <mkdir dir="${installersBase}/repository"/>
  
      <tar longfile="gnu" tarfile="${tag}.tar">
        <tarfileset dir="${installersDir}">
          <exclude name="**/maven"/>
        </tarfileset>
        <tarfileset dir="${installersDir}" mode="755">
          <include name="**/maven"/>
        </tarfileset>
      </tar>
  
      <gzip
        zipfile="${tag}.tar.gz"
        src="${tag}.tar"
        />
      <copy
        file="${maven.build.dir}/${maven.final.name}.jar"
        todir="${maven.home}/plugins"
        />
  
      <delete file="${tag}.tar"/>
  
      <!-- Create a zip file -->
      <zip zipfile="${tag}.zip">
        <zipfileset dir="${installersDir}"/>
      </zip>
  
    </goal>
  
    <goal name="maven:installer-deploy"
      description="Deploy an installable Maven jar to the remote repo??">
  
      <maven:user-check user="${maven.username}"/>
      <attainGoal name="maven:installer"/>
  
      <tar longfile="gnu" tarfile="installers.tar">
        <tarfileset dir="${basedir}">
          <include name="${tag}.tar.gz"/>
          <include name="${tag}.zip"/>
        </tarfileset>
      </tar>
  
      <deploy:artifact
        artifact="installers.tar"
        type="distributions"
        assureDirectoryCommand="mkdir -p"
        siteCommand="cd @deployDirectory@;tar xUvf installers.tar;chmod -R g+u *;rm installers.tar"
        />
  
    </goal>
  
  </project>
  
  

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