pomOnly() 在 .sbt 文件中做什么?
what does pomOnly() do in .sbt files?
pomOnly() 在 .sbt 文件中做什么?
例如,
"com.github.fommil.netlib" % "all" % "1.0" pomOnly()
事实上,SBT 参考指南似乎没有提供太多关于 pomOnly()
的信息。
根据 mvnrepository,依赖项 "com.github.fommil.netlib:all" 对应于聚合 pom.xml:
<dependency>
<groupId>com.github.fommil.netlib</groupId>
<artifactId>all</artifactId>
<version>1.0</version>
<type>pom</type>
</dependency>
build.sbt
中对 pomOnly()
的调用向依赖管理处理程序表明它们不应为此依赖项查找 jar libs/artifacts,而仅从聚合 pom 中加载元数据.
pomOnly() 在 .sbt 文件中做什么?
例如,
"com.github.fommil.netlib" % "all" % "1.0" pomOnly()
事实上,SBT 参考指南似乎没有提供太多关于 pomOnly()
的信息。
根据 mvnrepository,依赖项 "com.github.fommil.netlib:all" 对应于聚合 pom.xml:
<dependency>
<groupId>com.github.fommil.netlib</groupId>
<artifactId>all</artifactId>
<version>1.0</version>
<type>pom</type>
</dependency>
build.sbt
中对 pomOnly()
的调用向依赖管理处理程序表明它们不应为此依赖项查找 jar libs/artifacts,而仅从聚合 pom 中加载元数据.