.sbt文件中的pomOnly()有什么作用? [英] what does pomOnly() do in .sbt files?

查看:109
本文介绍了.sbt文件中的pomOnly()有什么作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.sbt文件中pomOnly()有什么作用?

what does pomOnly() do in .sbt files?

例如,

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

推荐答案

实际上,SBT参考指南似乎并未提供有关pomOnly()的大量信息.

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

根据 mvnrepository ,依赖项"com.github .fommil.netlib:all"对应于聚合pom.xml:

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>

build.sbt中对pomOnly()的调用向依赖项管理处理程序表明,他们不应为此依赖项查找jar库/工件,而只能从聚合pom中加载元数据.

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.

这篇关于.sbt文件中的pomOnly()有什么作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆