使用mvn install时,下列文件未解决?

问题描述:

问候所有 我一直在使用(春眠)构架 当试图使用命令来建立与maven2的应用MVN安装 我得到一个构建成功与下面的注释Web应用程序:使用mvn install时,下列文件未解决?

下列文件尚未解决:

[INFO] The following files have NOT been resolved: 
[INFO] antlr:antlr:java-source:sources:2.7.7 
[INFO] com.sun.jdmk:jmxtools:java-source:sources:1.2.1 
[INFO] com.sun.jmx:jmxri:java-source:sources:1.2.1 
[INFO] commons-dbcp:commons-dbcp:java-source:sources:1.2.2 
[INFO] commons-httpclient:commons-httpclient:java-source:sources:3.1 
[INFO] commons-logging:commons-logging:java-source:sources:1.1.0.jboss 
[INFO] hibernate-commons-annotations:hibernate-commons-annotations:java-source:sources:3.0.0.GA 
[INFO] hsqldb:hsqldb:java-source:sources:1.8.0.2 
[INFO] javassist:javassist:java-source:sources:3.4.GA 
[INFO] javax.jms:jms:java-source:sources:1.1 
[INFO] net.java.dev.stax-utils:stax-utils:java-source:sources:20040917 
[INFO] org.apache.solr:solr-commons-csv:java-source:sources:1.3.0 
[INFO] org.apache.solr:solr-lucene-analyzers:java-source:sources:1.3.0 
[INFO] org.apache.solr:solr-lucene-core:java-source:sources:1.3.0 
[INFO] org.apache.solr:solr-lucene-highlighter:java-source:sources:1.3.0 
[INFO] org.apache.solr:solr-lucene-queries:java-source:sources:1.3.0 
[INFO] org.apache.solr:solr-lucene-snowball:java-source:sources:1.3.0 
[INFO] org.apache.solr:solr-lucene-spellchecker:java-source:sources:1.3.0 
[INFO] org.apache.velocity:velocity:java-source:sources:1.5 
[INFO] org.tuckey:urlrewritefilter:java-source:sources:3.1.0 
[INFO] quartz:quartz:java-source:sources:1.6.0 
[INFO] stax:stax-api:java-source:sources:1.0.1 

这是什么意思?

+0

你在调试模式下运行Maven吗? – Thomas 2010-09-22 19:03:35

这看起来像来自maven-dependency-plugin和“sources”目标的输出 - 它看起来像有人已经配置了Maven构建来拉取源文物。这个输出意味着Maven无法在任何Maven2存储库中找到源文件。

http://maven.apache.org/plugins/maven-dependency-plugin/sources-mojo.html

没有能够看到它,我假设你的编译和包装是成功的,无论这些消息的。

+1

这听起来像是问题所在。如果sword101发布他的pom.xml或甚至只是maven-dependency-plugin配置部分,我们可以验证这个假设。 – 2011-06-06 18:58:43

它来自maven-dependency-plugin,当您设置执行块时,当您发出maven install命令时包含检查/列出依赖项的目标。

<plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-dependency-plugin</artifactId> 
    <executions> 
     <execution> 
      <id>install</id> 
      <phase>install</phase> 
      <goals> 
       <goal>source</goal> 
      </goals> 
     </execution> 
    </executions> 
</plugin> 

您的错误意味着其中一个依赖不能正确解决。查看所有goals under the maven dependency plugin,其中包含许多其他目标以帮助您管理您在POM中声明的版本。