Maven Release plugin: Unable to deploy Chart Search on Maven repo (from Bamboo as well as locally)

Tags: #<Tag:0x00007f1f7f881b48> #<Tag:0x00007f1f7f881990>

Hi guys,

I am trying hard to release Chart Search in version 1.8 (branch 1.x) :tired_face:

  • from Bamboo (with “Release to Maven (no update of distro)”: job CSM-CSM0-RTM-10/log
  • as well as with the Maven Release plugin (mvn release:perform)

but have this Maven error:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project chartsearch: Failed to deploy artifacts: Could not find artifact org.openmrs.module:chartsearch:pom:1.8 in openmrs-repo-modules (http://mavenrepo.openmrs.org/nexus/content/repositories/modules/) -> [Help 1]

build	03-Mar-2017 10:25:02	[INFO] [INFO] Reactor Summary:
build	03-Mar-2017 10:25:02	[INFO] [INFO] 
build	03-Mar-2017 10:25:02	[INFO] [INFO] Chart Search Module ................................ FAILURE [ 46.638 s]
build	03-Mar-2017 10:25:02	[INFO] [INFO] Chart Search Module Server ......................... SKIPPED
build	03-Mar-2017 10:25:02	[INFO] [INFO] Chart Search Module API ............................ SKIPPED
build	03-Mar-2017 10:25:02	[INFO] [INFO] Chart Search Module OMOD ........................... SKIPPED
build	03-Mar-2017 10:25:02	[INFO] [INFO] ------------------------------------------------------------------------
build	03-Mar-2017 10:25:02	[INFO] [INFO] BUILD FAILURE
build	03-Mar-2017 10:25:02	[INFO] [INFO] ------------------------------------------------------------------------
build	03-Mar-2017 10:25:02	[INFO] [INFO] Total time: 47.165 s
build	03-Mar-2017 10:25:02	[INFO] [INFO] Finished at: 2017-03-03T10:25:02+00:00
build	03-Mar-2017 10:25:02	[INFO] [INFO] Final Memory: 23M/260M
build	03-Mar-2017 10:25:02	[INFO] [INFO] ------------------------------------------------------------------------
build	03-Mar-2017 10:25:02	[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project chartsearch: Failed to deploy artifacts: Could not find artifact org.openmrs.module:chartsearch:pom:1.8 in openmrs-repo-modules (http://mavenrepo.openmrs.org/nexus/content/repositories/modules/) -> [Help 1]
build	03-Mar-2017 10:25:02	[INFO] [ERROR] 
build	03-Mar-2017 10:25:02	[INFO] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

Complete log: http://paste.ubuntu.com/24101316/

Any idea?

Thanks

Well.

Could it be because https://openmrs.jfrog.io/openmrs/modules/org/openmrs/module/chartsearch/1.8/ already exist? I thought it didn’t before…

Yes, it exists for /chartsearch directory, but there is nothing in /chartsearch-api and /chartsearch-omod sub modules. So you think that is what prevents the build to work?

How could I delete this directory to try to release again?

@mksrom what i have always done in such circumstances is to delete those artifacts and then try to release again.

@mksrom i have just been talking to @raff about this and he says it is not good to delete artifacts, even if they are incompletely uploaded. So he recommends that you just release version 1.8.1

OK I’ll try that

It worked. Now released as 1.8.1. Thanks everyone