Ninja 框架包括外部 Jar

Ninja Framework Include External Jar

我有一个外部 jar,我想添加到我的 ninja framework 应用程序中。

我已经将文件包含在根目录中,但没有用。

我还尝试使用 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]

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

谢谢

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

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

Maven: Add local dependencies to jar

还有这里:

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