ida*_*alz 6 scala sbt sbt-assembly
我正在使用 sbt 程序集创建一个库,用于内部目的。
我正在将此 jar 发布到本地工件安装,并且运行良好。
但是,我还没有弄清楚如何将源代码添加到程序集创建过程中,所以当我在intellij中导入它时,它也将可用(用于调试等)
谢谢!
小智 -2
cache directory据我了解,当你进行组装时,它会在ie中查找所有罐子、源代码等/$HOME/.ivy2/cache/ if your name-version-source.jar is available in cache then in your final assembled jar will have source.jar
In your case you publishing it as local so your source,javadoc jars are generated in local directory i.e /$HOME/.ivy2/local/
Run Code Online (Sandbox Code Playgroud)
所以你就这样publish the jar to central repository not as publishLocal或者hack In your /$HOME/.ivy2/local/artifact-id/group-id/version/ directory docs,jars,ivys,pom,srcs copy those directory to /$HOME/.ivy2/cache/artifact-id/ paste it here
然后尝试在我的情况下进行组装对我有用
| 归档时间: |
|
| 查看次数: |
490 次 |
| 最近记录: |