Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-120

Top level build fails in clean environment

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      When building from the top level in a clean environment, it fails with the following ...

      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO] 
      [INFO] apache-atlas ....................................... FAILURE [  2.483 s]
      [INFO] Apache Atlas Typesystem ............................ SKIPPED
      [INFO] Apache Atlas Client ................................ SKIPPED
      [INFO] Apache Atlas Notification .......................... SKIPPED
      [INFO] Apache Atlas Repository ............................ SKIPPED
      [INFO] Apache Atlas Web Application ....................... SKIPPED
      [INFO] Apache Atlas Documentation ......................... SKIPPED
      [INFO] Apache Atlas Hive Bridge ........................... SKIPPED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3.355 s
      [INFO] Finished at: 2015-08-21T16:00:23-04:00
      [INFO] Final Memory: 27M/439M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2.1:single (default) on project apache-atlas: Failed to create assembly: Error adding file to archive: /Users/thomas/work/atlas_2/webapp/target/atlas-webapp-0.6-incubating-SNAPSHOT.war isn't a file. -> [Help 1]
      [ERROR] 
      

      The top level apache-atlas pom.xml includes maven-assembly-plugin with the descriptor src/main/assemblies/standalone-package.xml.

      The descriptor includes

          <files>
              <file>
                  <source>webapp/target/atlas-webapp-${project.version}.war</source>
                  <outputDirectory>server/webapp</outputDirectory>
                  <destName>atlas.war</destName>
              </file>
          </files>
      

      In a clean environment the war file does not yet exist, so the top level package fails.

      STR:
      From the top level atlas directory ...

      1. mvn clean
      2. mvn package

      To workaround, you can create a dummy war file. Something like ...

        mkdir webapp/target/
        touch webapp/target/atlas-webapp-0.6-incubating-SNAPSHOT.war
      

      Attachments

        Issue Links

          Activity

            People

              tbeerbower Tom Beerbower
              tbeerbower Tom Beerbower
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: