Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-21246

Build creates tarball twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.5.1
    • 2.5.2
    • ambari-agent, ambari-server
    • None

    Description

      tar.gz is built twice in the package phase for ambari-server and ambari-agent:

      $ mvn -am -pl ambari-server clean package
      ...
      [INFO] --- maven-assembly-plugin:2.2-beta-5:single (make-assembly) @ ambari-server ---
      [INFO] Reading assembly descriptor: src/main/assemblies/server.xml
      ...
      [INFO] Building tar : /home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/target/ambari-server-2.0.0.0-SNAPSHOT-dist.tar.gz
      [INFO]
      [INFO] --- maven-assembly-plugin:2.2-beta-5:single (build-tarball) @ ambari-server ---
      [INFO] Reading assembly descriptor: src/main/assemblies/server.xml
      ...
      [INFO] Building tar : /home/jenkins/jenkins-slave/workspace/Ambari-trunk-Commit/ambari-server/target/ambari-server-2.0.0.0-SNAPSHOT-dist.tar.gz
      

      Also, pom.xml says it should be possible to skip building the tarball by -DassemblyPhase=none:

      pom.xml
       63     <assemblyPhase>package</assemblyPhase> <!-- use -DassemblyPhase=none to skip building tarball, useful when you want purely compile jar -->
      

      However, it only skips build-tarball, but make-assembly is still run.

      Attachments

        1. AMBARI-21246.patch
          0.8 kB
          Attila Doroszlai

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: