Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-121

artifact resolution must also look at attached artifacts, not only inside local and remote repositories

    XMLWordPrintable

    Details

    • Tags:
    • Story Points:
      14

      Description

      The issue appears when looking for an artifact built during the same Maven execution but not installed.
      For example, from nuxeo-distribution : "mvn clean package -Pjetty,tomcat,nuxeo-dm" done by http://qa.nuxeo.org/hudson/job/IT-nuxeo-5.3-build/367/ gives
      (...)
      [INFO] Creating target file: /opt/hudson/tmp/workspace/IT-nuxeo-5.3-build/trunk/release/src/nuxeo/nuxeo-distribution/nuxeo-distribution-server/target/nuxeo-distribution-server-5.3.1-I20100114_1855
      [INFO] Zipped target to: /opt/hudson/tmp/workspace/IT-nuxeo-5.3-build/trunk/release/src/nuxeo/nuxeo-distribution/nuxeo-distribution-server/target/nuxeo-distribution-server-5.3.1-I20100114_1855.zip
      [INFO] Done.
      [INFO] [nuxeo:attach

      {execution: attach-app}

      ]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Nuxeo Jetty Distribution
      [INFO] task-segment: [clean, package]
      [INFO] ------------------------------------------------------------------------
      (...)
      prepare-jetty:
      Downloading: http://maven.nuxeo.org/public/org/nuxeo/ecm/distribution/nuxeo-distribution-server/5.3.1-I20100114_1855/nuxeo-distribution-server-5.3.1-I20100114_1855.zip
      [unzip] [INFO] Unable to find resource 'org.nuxeo.ecm.distribution:nuxeo-distribution-server:zip:5.3.1-I20100114_1855' in repository public (http://maven.nuxeo.org/public)
      Downloading: http://repo1.maven.org/maven2/org/nuxeo/ecm/distribution/nuxeo-distribution-server/5.3.1-I20100114_1855/nuxeo-distribution-server-5.3.1-I20100114_1855.zip
      [unzip] [INFO] Unable to find resource 'org.nuxeo.ecm.distribution:nuxeo-distribution-server:zip:5.3.1-I20100114_1855' in repository central (http://repo1.maven.org/maven2)

      BUILD FAILED

      => Failed to resolve file: org.nuxeo.ecm.distribution:nuxeo-distribution-server:5.3.1-I20100114_1855:zip; classifier: null
      but nuxeo-distribution-server-5.3.1-I20100114_1855.zip was just previously attached to build.

      Workaround is to use install instead of package, but it can only be a very short time solution.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 day, 3 hours
                1d 3h
                Remaining:
                Remaining Estimate - 1 day, 3 hours
                1d 3h
                Logged:
                Time Spent - Not Specified
                Not Specified