公告
财富商城
积分规则
提问
发文
2019-06-16 05:05发布
我命由我不由天
what does pomOnly() do in .sbt files?
For example,
"com.github.fommil.netlib" % "all" % "1.0" pomOnly()
Indeed, SBT reference guide does not seem to provide much info about pomOnly().
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.
build.sbt
最多设置5个标签!
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:
The call of
pomOnly()
inbuild.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.