alan-morey / force-meta-backup

A tool to help download Salesforce.com Metadata
43 stars 22 forks source link

Unsolved Dependacy error #74

Open Lauren-Buchholz-Moxe opened 4 years ago

Lauren-Buchholz-Moxe commented 4 years ago

Probably a stupid user issue, but I am seeing this when I try and run the ant job.

generatePackageXmlAndBuildXml: [exec] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: [exec] General error during conversion: Error grabbing Grapes -- [unresolved dependency: com.force.api#force-metadata-api;48.1.0: not found, unresolved dependency: com.force.api#force-partner-api;48.1.0: not found] [exec] [exec] java.lang.RuntimeException: Error grabbing Grapes -- [unresolved dependency: com.force.api#force-metadata-api;48.1.0: not found, unresolved dependency: com.force.api#force-partner-api;48.1.0: not found]

Any suggestions on where to look to debug?

alan-morey commented 4 years ago

Both jars exist in the Maven Central repository

https://search.maven.org/artifact/com.force.api/force-metadata-api/48.1.0/jar https://search.maven.org/artifact/com.force.api/force-partner-api/48.1.0/jar

You could try removing local repository caches for maven and groovy grapes:

Linux/Mac

rm -rf ~/.m2/repository ~/.groovy/grapes

Windows

del /s "%USERPROFILE%/.m2/repository/*" "%USERPROFILE%/.groovy/grapes/*"

Then try running ant again to see if dependencies can be resolved.

Other things to consider