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

Submodules without pom.xml should be ignored in HF package building

    XMLWordPrintable

    Details

      Description

      RELEASE-592 HF package fails with:

      19:42:58 [INFO]     [mkdir] Created dir: /opt/jenkins/workspace/Private/HFBuilding/IT-HF-PKG-build-nx910/nuxeo-dm-hotfixes/target/marketplace
      19:42:58 [INFO]      [copy] Copying 4 files to /opt/jenkins/workspace/Private/HFBuilding/IT-HF-PKG-build-nx910/nuxeo-dm-hotfixes/target/marketplace
      19:42:58 [INFO] Managed version set on org.nuxeo.ecm.core:nuxeo-core-api:jar:9.10-HF05
      19:42:58 [INFO] Managed version set on org.nuxeo.ecm.platform:nuxeo-platform-webapp:jar:9.10-HF05
      19:42:58 [INFO] Managed version set on org.nuxeo.ecm.automation:nuxeo-automation-core:jar:9.10-HF05
      19:42:58 [INFO] Managed version set on org.nuxeo.ecm.automation:nuxeo-automation-features:jar:9.10-HF05
      19:42:58 [INFO] Managed version set on org.nuxeo.ecm.automation:nuxeo-automation-jsf:jar:9.10-HF05
      19:42:58 [INFO] Managed version set on org.nuxeo.ecm.automation:nuxeo-automation-scripting:jar:9.10-HF05
      19:42:58 [INFO] Managed version set on org.nuxeo.ecm.platform:nuxeo-platform-ui-web:jar:9.10-HF05
      19:42:58 [INFO] Managed version set on org.nuxeo.ecm.platform:nuxeo-platform-login-saml2:jar:9.10-HF05
      19:42:58 [INFO] Managed version set on org.nuxeo.ecm.platform:nuxeo-webdav:jar:9.10-HF05
      19:42:58 [INFO] Downloading: http://maven.nuxeo.org/nexus/content/groups/public/NOTFOUND/NOTFOUND/maven-metadata.xml
      19:42:58 [INFO] Downloading: http://mavenin.nuxeo.com/nexus/content/groups/internal-snapshots/NOTFOUND/NOTFOUND/maven-metadata.xml
      19:42:58 [INFO] Downloading: http://maven.nuxeo.org/nexus/content/groups/public-snapshot/NOTFOUND/NOTFOUND/maven-metadata.xml
      19:42:58 [INFO] Downloading: http://mavenin.nuxeo.com/nexus/content/groups/internal-releases/NOTFOUND/NOTFOUND/maven-metadata.xml
      19:43:00 [INFO] Downloading: http://mavenin.nuxeo.com/nexus/content/repositories/hotfix-releases/NOTFOUND/NOTFOUND/maven-metadata.xml
      19:43:00 [INFO] Downloading: http://mavenin.nuxeo.com/nexus/content/repositories/hotfix-snapshots/NOTFOUND/NOTFOUND/maven-metadata.xml
      19:43:00 [INFO] Downloading: https://repo.maven.apache.org/maven2/NOTFOUND/NOTFOUND/maven-metadata.xml
      19:43:03 [ERROR] 
      19:43:03 BUILD FAILED - at 4/6/18 7:43 PM
      19:43:03 /opt/jenkins/workspace/Private/HFBuilding/IT-HF-PKG-build-nx910/nuxeo-dm-hotfixes/src/main/assemble/assembly.xml:26: java.lang.NullPointerException
      19:43:03 	at org.nuxeo.build.maven.graph.DependencyUtils.setNewestVersion(DependencyUtils.java:203)
      19:43:03 	at org.nuxeo.build.ant.artifact.ResolveFile.resolveFile(ResolveFile.java:75)
      19:43:03 	at org.nuxeo.build.ant.artifact.ResolveFile.getFile(ResolveFile.java:104)
      19:43:03 	at org.apache.tools.ant.types.resources.FileResource.getNotNullFile(FileResource.java:369)
      19:43:03 	at org.apache.tools.ant.types.resources.FileResource.isExists(FileResource.java:179)
      19:43:03 	at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:522)
      19:43:03 	at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
      19:43:03 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      19:43:03 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      19:43:03 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      19:43:03 	at java.lang.reflect.Method.invoke(Method.java:498)
      19:43:03 	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
      19:43:03 	at org.apache.tools.ant.Task.perform(Task.java:348)
      

      This means some artifacts cannot be resolved.

      This is due to projects with modules not having a pom.xml file. From compute.log file:

      [19:42:44][getPomBundle] [BEGIN]
      [19:42:44][getPomBundle] ARTIFACT_FOLDER = nuxeo-platform-3d-elements/three.js/build
      [19:42:44][getPomBundle] ARTIFACT_FILENAME = pom.xml
      [19:42:44][getPomBundle] ARTIFACT_LOCATION = nuxeo-platform-3d-elements/three.js/build/pom.xml
      [19:42:44][getPomBundle] ARTIFACT_ID = 
      [19:42:44][getPomBundle] GROUP_ID = 
      [19:42:44][getPomBundle] GROUP_ID (before if) = NOTFOUND
      [19:42:44][getPomBundle] GROUP_ID (after if) = NOTFOUND
      [19:42:44][getPomBundle] ARTIFACT_ID = NOTFOUND
      [19:42:44][getPomBundle] result = NOTFOUND:NOTFOUND
      [19:42:44][getPomBundle] [END]
      

      For example nuxeo-platform-3d has nuxeo-platform-3d-elements, an elements build:
      https://github.com/nuxeo/nuxeo-platform-3d/tree/master/nuxeo-platform-3d-elements

      The script deduces the root folder of the submodules based on the commits but cannot resolve neither the artifact id nor the group id because there is no pom.xml.

      It should simply be ignored.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h