【问题标题】:Ninja Framework Include External JarNinja 框架包括外部 Jar
【发布时间】:2015-06-01 01:22:29
【问题描述】:

我有一个外部 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]

谁能提出其他建议?

谢谢

【问题讨论】:

    标签: java maven heroku intellij-idea ninjaframework


    【解决方案1】:

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

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

    Maven: Add local dependencies to jar

    还有这里:

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

    【讨论】:

      猜你喜欢
      • 2017-07-31
      • 2013-06-22
      • 2019-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-20
      • 2015-05-16
      • 1970-01-01
      相关资源
      最近更新 更多