what does pomOnly() do in .sbt files?

别来无恙 提交于 2020-01-14 07:24:07

问题


what does pomOnly() do in .sbt files?

For example,

"com.github.fommil.netlib" % "all" % "1.0" pomOnly()

回答1:


Indeed, SBT reference guide does not seem to provide much info about pomOnly().

As per mvnrepository, the dependency "com.github.fommil.netlib:all" corresponds to an aggregate pom.xml:

<dependency>
  <groupId>com.github.fommil.netlib</groupId>
  <artifactId>all</artifactId>
  <version>1.0</version>
  <type>pom</type>
</dependency>

The call of pomOnly() in build.sbt indicates to the dependency management handlers that they should not look for jar libs/artifacts for this dependency, but only load the metadata from the aggregate pom.



来源:https://stackoverflow.com/questions/45608473/what-does-pomonly-do-in-sbt-files

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!