对于无法找到依赖项的存储库,我如何告诉Maven抑制"Unable to find resource“信息消息,而在找到依赖项的存储库中显示这些消息?也就是说,显示命中,但忽略未命中,因为这些会淹没并掩盖命中。
例如,与下面的输出不同:
Downloading: http://download.java.net/maven/2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.pom
[INFO] Unable to find resource 'org.slf4j:slf4j-api:pom:1.5.8' in repository maven.java.net (http://download.java.net/maven/2)
Downloading: http://www.ibiblio.org/maven/mule/dependencies/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.pom
[INFO] Unable to find resource 'org.slf4j:slf4j-api:pom:1.5.8' in repository com.springsource.repository.bundles.release (http://w
ww.ibiblio.org/maven/mule/dependencies/maven2)
Downloading: http://repository.springsource.com/maven/bundles/external/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.pom
[INFO] Unable to find resource 'org.slf4j:slf4j-api:pom:1.5.8' in repository com.springsource.repository.bundles.external (http://
repository.springsource.com/maven/bundles/external)
Downloading: http://repository.jboss.com/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.pom我希望Maven简单地输出以下内容:
Downloading: http://repository.jboss.com/maven2/org/slf4j/slf4j-api/1.5.8/slf4j-api-1.5.8.pom
2K downloaded (slf4j-api-1.5.8.pom)发布于 2010-05-21 06:53:56
我不知道从maven内部做什么,但是您总是可以通过管道将输出传递给grep或sed这样的进程,以删除每个模式的行。
发布于 2012-06-01 01:51:31
您是否尝试过更改settings.xml文件中的代理设置?
https://stackoverflow.com/questions/2878309
复制相似问题