我在 sbt 中有一些错误:
[error] (system/*:update) sbt.ResolveException: unresolved dependency: org.apache.ant#ant-compress;1.4: java.text.ParseException: inconsistent module descriptor file found in 'http://central.maven.org/maven2/org/apache/ant/ant-compress/1.4/ant-compress-1.4.pom': bad module name: expected='ant-compress' found='compress-antlib';
Run Code Online (Sandbox Code Playgroud)
ant-compress的工件 id与模块名称不同
我怎样才能弄清楚这一点?
sbt 是否有一些配置来抑制一致性检查?
我使用的方法参考未解决的依赖项 org.mongodb#bson#2.5,sbt 中的组织不良
"com.example.utils" % "example-lang" % "0.0.3-SNAPSHOT" exclude("org.apache.ant", "ant-compress"),
"org.apache.ant" % "ant-compress" % "1.4" from "http://central.maven.org/maven2/org/apache/ant/ant-compress/1.4/ant-compress-1.4.jar",
Run Code Online (Sandbox Code Playgroud)
但发生了一些其他错误:
[error] (system/*:update) sbt.ResolveException: unresolved dependency: org.apache.ant#ant-compress;1.4: configuration not found in org.apache.ant#ant-compress;1.4: 'master(compile)'. Missing configuration: 'comp
ile'. It was required from com.example.utils#example-lang;0.0.2-SNAPSHOT runtime
Run Code Online (Sandbox Code Playgroud) sbt ×1