Uploaded image for project: 'OpenMRS SDK'
  1. OpenMRS SDK
  2. SDK-266

Openmrs-sdk:run fails when watching serialization.xstream and atlas modules

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Needs Assessment
    • Priority: TBD
    • Resolution: Unresolved
    • Affects Version/s: 3.13.6
    • Fix Version/s: None
    • Component/s: SDK
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      I am running reference application distribution 2.10.0 using the SDK. I have watched all 43 projects locally because I need to do some experimentation of my own. However, all the projects are at the release branch specified by reference application distro:2-10-0 and no change has been made after that in the code. However, when I run openmrs-sdk run all projects builds successfully but fails at configuring `org.openmrs.module:serialization.xstream-omod:jar:0.2.14` with this error message:

      [ *INFO* ] artifact org.openmrs.module:serialization.xstream-omod: checking for updates from openmrs-repo [ *INFO* ] artifact org.openmrs.module:serialization.xstream-omod: checking for updates from openmrs-repo-thirdparty [ *INFO* ] artifact org.openmrs.module:serialization.xstream-omod: checking for updates from openmrs-bintray-repo [ *INFO* ] artifact org.openmrs.module:serialization.xstream-omod: checking for updates from central [ *INFO* ] Configured Artifact: org.openmrs.module:serialization.xstream-omod:0.2.14:jar Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/serialization.xstream-omod/0.2.14/serialization.xstream-omod-0.2.14.jar Downloading from openmrs-repo-thirdparty: http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty/org/openmrs/module/serialization.xstream-omod/0.2.14/serialization.xstream-omod-0.2.14.jar Downloading from openmrs-bintray-repo: https://dl.bintray.com/openmrs/maven/org/openmrs/module/serialization.xstream-omod/0.2.14/serialization.xstream-omod-0.2.14.jar Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/module/serialization.xstream-omod/0.2.14/serialization.xstream-omod-0.2.14.jar [ *INFO* ] *-----------------------------------------------------------------------* [ *INFO* ] *BUILD FAILURE* [ *INFO* ] *----------------------------------------------------------------------* [ *INFO* ] Total time: 50:02 min [ *INFO* ] Finished at: 2020-09-08T23:40:37-04:00 [ *INFO* ] *-----------------------------------------------------------------------* [ *ERROR* ] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.6:run *(default-cli)* on project standalone-pom: *Unable to execute mojo* : Unable to find artifact. Could not find artifact org.openmrs.module:serialization.xstream-omod:jar:0.2.14 in openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public) [ *ERROR* ] [ *ERROR* ] Try downloading the file manually from the project website. [ *ERROR* ] [ *ERROR* ] Then, install it using the command: [ *ERROR* ] mvn install:install-file -DgroupId=org.openmrs.module -DartifactId=serialization.xstream-omod -Dversion=0.2.14 -Dpackaging=jar -Dfile=/path/to/file [ *ERROR* ] [ *ERROR* ] Alternatively, if you host your own repository you can deploy the file there: [ *ERROR* ] mvn deploy:deploy-file -DgroupId=org.openmrs.module -DartifactId=serialization.xstream-omod -Dversion=0.2.14 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ *ERROR* ] [ *ERROR* ] [ *ERROR* ] org.openmrs.module:serialization.xstream-omod:jar:0.2.14 [ *ERROR* ] [ *ERROR* ] from the specified remote repositories: [ *ERROR* ] openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public, releases=true, snapshots=true), [ *ERROR* ] openmrs-repo-thirdparty (http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty, releases=true, snapshots=true), [ *ERROR* ] openmrs-bintray-repo (https://dl.bintray.com/openmrs/maven/, releases=true, snapshots=true), [ *ERROR* ] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) [ *ERROR* ] -> *[Help 1]* [ *ERROR* ] [ *ERROR* ] To see the full stack trace of the errors, re-run Maven with the *-e* switch. [ *ERROR* ] Re-run Maven using the *-X* switch to enable full debug logging. [ *ERROR* ] [ *ERROR* ] For more information about the errors and possible solutions, please read the following articles: [ *ERROR* ] *[Help 1]* http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

       

      If I unwatch this module, then the run fails at `atlas` module:

       [ **INFO** ] Configured Artifact: org.openmrs.module:atlas-omod:2.2:jar Downloading from openmrs-repo: http://mavenrepo.openmrs.org/nexus/content/repositories/public/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.jar Downloading from openmrs-repo-thirdparty: http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.jar Downloading from openmrs-bintray-repo: https://dl.bintray.com/openmrs/maven/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.jar Downloading from central: https://repo.maven.apache.org/maven2/org/openmrs/module/atlas-omod/2.2/atlas-omod-2.2.jar [ **INFO** ] **------------------------------------------------------------------------** [ **INFO** ] **BUILD FAILURE** [ **INFO** ] **------------------------------------------------------------------------** [ **INFO** ] Total time: 09:31 min [ **INFO** ] Finished at: 2020-09-09T23:09:31-04:00 [ **INFO** ] **------------------------------------------------------------------------** [ **ERROR** ] Failed to execute goal org.openmrs.maven.plugins:openmrs-sdk-maven-plugin:3.13.6:run **(default-cli)** on project standalone-pom: **Unable to execute mojo** : Unable to find artifact. Could not find artifact org.openmrs.module:atlas-omod:jar:2.2 in openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public) [ **ERROR** ] [ **ERROR** ] Try downloading the file manually from the project website. [ **ERROR** ] [ **ERROR** ] Then, install it using the command: [ **ERROR** ] mvn install:install-file -DgroupId=org.openmrs.module -DartifactId=atlas-omod -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file [ **ERROR** ] [ **ERROR** ] Alternatively, if you host your own repository you can deploy the file there: [ **ERROR** ] mvn deploy:deploy-file -DgroupId=org.openmrs.module -DartifactId=atlas-omod -Dversion=2.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] [ **ERROR** ] [ **ERROR** ] [ **ERROR** ] org.openmrs.module:atlas-omod:jar:2.2 [ **ERROR** ] [ **ERROR** ] from the specified remote repositories: [ **ERROR** ] openmrs-repo (http://mavenrepo.openmrs.org/nexus/content/repositories/public, releases=true, snapshots=true), [ **ERROR** ] openmrs-repo-thirdparty (http://mavenrepo.openmrs.org/nexus/content/repositories/thirdparty, releases=true, snapshots=true), [ **ERROR** ] openmrs-bintray-repo (https://dl.bintray.com/openmrs/maven/, releases=true, snapshots=true), [ **ERROR** ] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false) [ **ERROR** ] -> **[Help 1]** [ **ERROR** ] [ **ERROR** ] To see the full stack trace of the errors, re-run Maven with the **-e** switch. [ **ERROR** ] Re-run Maven using the **-X** switch to enable full debug logging. [ **ERROR** ] [ **ERROR** ] For more information about the errors and possible solutions, please read the following articles: [ **ERROR** ] **[Help 1]** http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

      If I unwatch these two modules, then the application runs successfully. 
      (Conversation on this topic started here)
       

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              nasif Nasif Imtiaz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: