This seems to only happen in Git Bash on Windows. My coworkers with Macs don’t have the issue.
My error:
[ERROR] Failed to execute goal io.apigee.build-tools.enterprise4g:apigee-edge-maven-plugin:1.0.1:deploy (default-cli) on project reporting: MojoExecutionException: com.google.api.client.http.HttpResponseException: 400 Bad Request
[ERROR] {
[ERROR] "code" : "messaging.config.beans.InvalidResourceURLRef",
[ERROR] "message" : "Invalid resource url ref jsc://js_validateReportingWriteScope3.js in policy js_validateReportingWriteScope3 in cambiahealth-nonprod",
[ERROR] "contexts" : [ ],
[ERROR] "cause" : {
[ERROR] "code" : "messaging.config.beans.ResourceDoesNotExist",
[ERROR] "message" : "Resource with name js_validateReportingWriteScope3.js and type jsc does not exist",
Things I’ve tried:
- mvn clean
- mvn dependency:purge-local-repository
- IntelliJ invalidate caches and restart
- Deleting all the local files and cloning from the remote repo
- I tried renaming the file to a new name, in hopes it would pick up the new filename (hence why you see “3” in the filenames)
- Switching to a different WiFi network
The exact command that fails is:
mvn apigee-enterprise:deploy -P$environment -Dusername=$username -Dpassword=$password
The command that works (but we don’t want to use, because it wipes the current deploy and replaces it, losing historical info):
mvn apigee-enterprise:deploy -P$environment -Dapigee.options=clean -Dusername=$username -Dpassword=$password
Any ideas? I’m stumped.