0

我有一个希望添加到我的忍者框架应用程序的外部 jar。

我已将文件包含在根目录中,但不起作用。

我还尝试使用 IntelliJ IDE 将其作为依赖项包含在内。

这也没有奏效。在部署到 heroku 时,编译失败,因为找不到包。

最后,我尝试了这个https://devcenter.heroku.com/articles/local-maven-dependencies#deploy-the-artifact-into-the-repo,但失败并显示以下错误消息:

Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8.2:deploy-file (default-cli) on project 1.0: No transfer protocol found. -> [Help 1]

任何人都可以提出其他建议吗?

谢谢

4

1 回答 1

1

这实际上不是关于 Ninja 的问题,而是关于构建系统的问题——在这种情况下是 Maven。

幸运的是,这个问题已经得到了回答:

Maven:将本地依赖项添加到 jar

还有这里:

https://devcenter.heroku.com/articles/local-maven-dependencies

于 2015-03-28T12:45:17.010 回答