Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-20055

Create separate antrun tasks to generate demo, binary and source artifacts

    Details

    • Type: Task
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.3, 2.7.1, 2.8.0
    • Fix Version/s: 2.7.2, 2.8.0
    • Component/s: Pack, Release Management
    • Labels:
      None

      Description

      The current pack-demo pom uses the maven-antrun-plugin to generate both the demo and bin (but not source) release artifacts. If you run

      mvn -Ppack-demo install

      both demo and bin archive .tar.gz and .zip files are generated. Generation of either set of archives should be separate operations. In addition, the bin tar and zip operations archive the code incorrectly resulting in archives that do not explode properly in $CATALINA-HOME.

      In addition the antrun plugin version is not specified and certain of the elements such as <task> have been deprecated.

      The rewrite will implement the following:

      1. Use the latest maven-antrun-plugin, version 1.6
      2. Update deprecated elements (e.g.,<task> -> <target>).
      3. Create the following project structure, separating individual archive operations (which can be extended in future with additional child pack modules)

      org.sakaiproject.pack

      /pack
      pom.xml (base)
      /pack-bin
      build.xml (ant targets)
      pom.xml
      /pack-demo
      build.xml (ant targets)
      pom.xml
      /pack-src
      build.xml (ant targets)
      pom.xml

      3. The Sakai base pom will include the following profiles:

      <profile>
      <id>pack</id>
      <modules>
      <module>pack/pack-src</module>
      <module>pack/pack-bin</module>
      <module>pack/pack-demo</module>
      </modules>
      </profile>
      <profile>
      <id>pack-bin</id>
      <modules>
      <module>pack/pack-bin</module>
      </modules>
      </profile>
      <profile>
      <id>pack-demo</id>
      <modules>
      <module>pack/pack-demo</module>
      </modules>
      </profile>
      <profile>
      <id>pack-src</id>
      <modules>
      <module>pack/pack-src</module>
      </modules>
      </profile>
      4. Include a "skip-tests" profile in the pack base pom to allow for tests overrides during development (e.g., trunk tests are occasionally broken)
      5. Generate MD5 and SHA1 checksum files using Ant
      6. Add project to .svn externals

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  arwhyte Anthony Whyte
                  Reporter:
                  arwhyte Anthony Whyte
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Source Code