Deploys Reference Application SNAPSHOT to maven

Build: #14437 failed

Job: Build and push failed

Stages & jobs

  1. Build and push

  2. Deploy to qa-refapp

  3. Release

    Requires a user to start manually
  4. Set variables

  5. Release others

Job result summary

Completed
Duration
53 seconds
Agent
xindi.openmrs.org
Revision
367b6875404a2fbb4cdd1fee4addf79b43cdf85d 367b6875404a2fbb4cdd1fee4addf79b43cdf85d
Failing since
#14436 (Code changes detected – )
Fixed in
#14444 (Code changes detected)
No failed test found. A possible compilation error occurred.

Error summary

The build generated some errors. See the full build log for more details.

Downloaded from openmrs-repo: https://mavenrepo.openmrs.org/public/org/codehaus/mojo/build-helper-maven-plugin/3.0.0/build-helper-maven-plugin-3.0.0.jar (64 kB at 142 kB/s)
#17 15.45 Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/api/openmrs-api/2.7.0-alpha/openmrs-api-2.7.0-alpha.pom
#17 ...

#14 [linux/arm64 dev 4/4] RUN mvn -s /usr/share/maven/ref/settings-docker.xml install
#14 23.56 [INFO] Scanning for projects...
#14 24.75 [WARNING]
#14 24.75 [WARNING] Some problems were encountered while building the effective model for org.openmrs.distro:referenceapplication-package:jar:2.14.0-SNAPSHOT
#14 24.75 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:dataexchange-omod:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ org.openmrs.distro:referenceapplication:2.14.0-SNAPSHOT, /app/pom.xml, line 883, column 12
#14 24.75 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:allergyui-api:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ org.openmrs.distro:referenceapplication:2.14.0-SNAPSHOT, /app/pom.xml, line 896, column 12
#14 24.75 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:formentryapp-api:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ org.openmrs.distro:referenceapplication:2.14.0-SNAPSHOT, /app/pom.xml, line 916, column 12
#14 24.76 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:legacyui-api:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ org.openmrs.distro:referenceapplication:2.14.0-SNAPSHOT, /app/pom.xml, line 990, column 12
#14 24.76 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:reportingcompatibility-api:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ org.openmrs.distro:referenceapplication:2.14.0-SNAPSHOT, /app/pom.xml, line 1009, column 12
#14 24.76 [WARNING]
#14 24.76 [WARNING] Some problems were encountered while building the effective model for org.openmrs.distro:referenceapplication:pom:2.14.0-SNAPSHOT
#14 24.76 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:dataexchange-omod:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ line 883, column 12
#14 24.76 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:allergyui-api:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ line 896, column 12
#14 24.76 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:formentryapp-api:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ line 916, column 12
#14 24.77 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:legacyui-api:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ line 990, column 12
#14 24.77 [WARNING] 'dependencyManagement.dependencies.dependency.scope' for org.openmrs.module:reportingcompatibility-api:jar:tests must be one of [provided, compile, runtime, test, system, import] but is 'tests'. @ line 1009, column 12
#14 24.77 [WARNING]
#14 24.77 [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
#14 24.77 [WARNING]
#14 24.77 [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
#14 24.77 [WARNING]
#14 24.81 [INFO] ------------------------------------------------------------------------
#14 24.81 [INFO] Reactor Build Order:
#14 24.82 [INFO]
#14 24.84 [INFO] Reference Application Distribution                                 [pom]
#14 24.84 [INFO] Reference Application Distribution Package                         [jar]
#14 24.97 [INFO]
#14 24.98 [INFO] --------------< org.openmrs.distro:referenceapplication >---------------
#14 24.98 [INFO] Building Reference Application Distribution 2.14.0-SNAPSHOT        [1/2]
#14 24.99 [INFO]   from pom.xml
#14 24.99 [INFO] --------------------------------[ pom ]---------------------------------
#14 25.39 [INFO]
#14 25.40 [INFO] --- maven-install-plugin:2.4:install (default-install) @ referenceapplication ---
#14 26.85 [INFO] Installing /app/pom.xml to /usr/share/maven/ref/repository/org/openmrs/distro/referenceapplication/2.14.0-SNAPSHOT/referenceapplication-2.14.0-SNAPSHOT.pom
#14 26.94 [INFO]
#14 26.94 [INFO] ----------< org.openmrs.distro:referenceapplication-package >-----------
#14 26.94 [INFO] Building Reference Application Distribution Package 2.14.0-SNAPSHOT [2/2]
#14 26.94 [INFO]   from package/pom.xml
#14 26.95 [INFO] --------------------------------[ jar ]---------------------------------
#14 CANCELED

#17 [linux/amd64 dev 4/4] RUN mvn -s /usr/share/maven/ref/settings-docker.xml install
#17 18.61 Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/api/openmrs-api/2.7.0-alpha/openmrs-api-2.7.0-alpha.pom
#17 19.05 [WARNING] The POM for org.openmrs.api:openmrs-api:jar:2.7.0-alpha is missing, no dependency information available
#17 19.05 [WARNING] The POM for org.openmrs.api:openmrs-api:jar:tests:2.7.0-alpha is missing, no dependency information available
#17 19.06 Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/test/openmrs-test/2.7.0-alpha/openmrs-test-2.7.0-alpha.pom
#17 20.07 Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/test/openmrs-test/2.7.0-alpha/openmrs-test-2.7.0-alpha.pom
#17 20.18 [WARNING] The POM for org.openmrs.test:openmrs-test:pom:2.7.0-alpha is missing, no dependency information available
#17 20.19 Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/api/openmrs-api/2.7.0-alpha/openmrs-api-2.7.0-alpha.jar
#17 20.19 Downloading from openmrs-repo: https://mavenrepo.openmrs.org/public/org/openmrs/api/openmrs-api/2.7.0-alpha/openmrs-api-2.7.0-alpha-tests.jar
#17 21.60 Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/api/openmrs-api/2.7.0-alpha/openmrs-api-2.7.0-alpha.jar
#17 21.61 Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/api/openmrs-api/2.7.0-alpha/openmrs-api-2.7.0-alpha-tests.jar
#17 21.86 [INFO] ------------------------------------------------------------------------
#17 21.86 [INFO] Reactor Summary for Reference Application Distribution 2.14.0-SNAPSHOT:
#17 21.86 [INFO]
#17 21.86 [INFO] Reference Application Distribution ................. SUCCESS [  0.508 s]
#17 21.86 [INFO] Reference Application Distribution Package ......... FAILURE [ 17.206 s]
#17 21.86 [INFO] ------------------------------------------------------------------------
#17 21.87 [INFO] BUILD FAILURE
#17 21.87 [INFO] ------------------------------------------------------------------------
#17 21.87 [INFO] Total time:  17.988 s
#17 21.87 [INFO] Finished at: 2024-11-05T22:31:22Z
#17 21.87 [INFO] ------------------------------------------------------------------------
#17 21.88 [ERROR] Failed to execute goal on project referenceapplication-package: Could not resolve dependencies for project org.openmrs.distro:referenceapplication-package:jar:2.14.0-SNAPSHOT: The following artifacts could not be resolved: org.openmrs.api:openmrs-api:jar:2.7.0-alpha, org.openmrs.api:openmrs-api:jar:tests:2.7.0-alpha, org.openmrs.test:openmrs-test:pom:2.7.0-alpha: Could not find artifact org.openmrs.api:openmrs-api:jar:2.7.0-alpha in openmrs-repo (https://mavenrepo.openmrs.org/public) -> [Help 1]
#17 21.88 [ERROR]
#17 21.88 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#17 21.88 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#17 21.88 [ERROR]
#17 21.88 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#17 21.89 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
#17 21.89 [ERROR]
#17 21.89 [ERROR] After correcting the problems, you can resume the build with the command
#17 21.89 [ERROR]   mvn <args> -rf :referenceapplication-package
#17 ERROR: process "/bin/sh -c mvn $MVN_ARGS_SETTINGS $MVN_ARGS" did not complete successfully: exit code: 1
------
> [linux/amd64 dev 4/4] RUN mvn -s /usr/share/maven/ref/settings-docker.xml install:
#17 21.88 [ERROR] Failed to execute goal on project referenceapplication-package: Could not resolve dependencies for project org.openmrs.distro:referenceapplication-package:jar:2.14.0-SNAPSHOT: The following artifacts could not be resolved: org.openmrs.api:openmrs-api:jar:2.7.0-alpha, org.openmrs.api:openmrs-api:jar:tests:2.7.0-alpha, org.openmrs.test:openmrs-test:pom:2.7.0-alpha: Could not find artifact org.openmrs.api:openmrs-api:jar:2.7.0-alpha in openmrs-repo (https://mavenrepo.openmrs.org/public) -> [Help 1]
#17 21.88 [ERROR]
#17 21.88 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
#17 21.88 [ERROR] Re-run Maven using the -X switch to enable full debug logging.
#17 21.88 [ERROR]
#17 21.88 [ERROR] For more information about the errors and possible solutions, please read the following articles:
#17 21.89 [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
#17 21.89 [ERROR]
#17 21.89 [ERROR] After correcting the problems, you can resume the build with the command
#17 21.89 [ERROR]   mvn <args> -rf :referenceapplication-package
------
Dockerfile:14
--------------------
  12 |     
  13 |     # Build the distro
  14 | >>> RUN mvn $MVN_ARGS_SETTINGS $MVN_ARGS
  15 |     
  16 |     ### Run Stage
--------------------
error: failed to solve: process "/bin/sh -c mvn $MVN_ARGS_SETTINGS $MVN_ARGS" did not complete successfully: exit code: 1