我正在尝试使用java程序中的maven-embedder 3.0.4将一个文件部署到本地存储库,但我得到了以下错误:
Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file
(default-cli) on project test: Failed to deploy artifacts/metadata: No connector available
to access repository local (file://~/.m2/repository) of type default
using the available factories我试图用MavenCli.doMain(String[],String,PrintStream,PrintStream)函数来实现这一点,但似乎我不能让它工作。
任何帮助都将不胜感激。另外,如果有从java程序部署文件的其他方法,请告诉我。
https://stackoverflow.com/questions/13647427
复制相似问题