码迷,mamicode.com
首页 > 其他好文 > 详细

maven错误

时间:2015-04-29 17:44:01      阅读:121      评论:0      收藏:0      [点我收藏+]

标签:

错误:The POM for 
org.apache.cocoon.stringtemplate:cocoon-stringtemplate:jar 

[WARNING] The POM for 

org.apache.cocoon.servlet:cocoon-servlet:jar:3.0.0-beta-1- 
SNAPSHOT is missing, no dependency information available 
[WARNING] The POM for 
org.apache.cocoon.stringtemplate:cocoon-stringtemplate:jar 
:3.0.0-beta-1-SNAPSHOT is missing, no dependency information available 
[INFO] 
------------------------------------------------------------------------ 
[INFO] Reactor Summary: 
[INFO] 
[INFO] theParent ......................................... SUCCESS [0.750s] 
[INFO] e-17-pub ................................. FAILURE [0.234s] 
[INFO] theWebapp ......................................... SKIPPED 
[INFO] 
------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] 
------------------------------------------------------------------------ 
[INFO] Total time: 1.188s 
[INFO] Finished at: Fri Mar 23 07:35:19 CDT 2012 
[INFO] Final Memory: 4M/9M 
[INFO] 
------------------------------------------------------------------------ 
[ERROR] Failed to execute goal on project e-17-pub: Could not resolve d 
ependencies for project org.sil:e-17-pub:jar:1.0-SNAPSHOT: The followin 
g artifacts could not be resolved: 
org.apache.cocoon.servlet:cocoon-servlet:jar: 
3.0.0-beta-1-SNAPSHOT, 
org.apache.cocoon.stringtemplate:cocoon-stringtemplate:ja 
r:3.0.0-beta-1-SNAPSHOT: Failure to find 
org.apache.cocoon.servlet:cocoon-servle 
t:jar:3.0.0-beta-1-SNAPSHOT in  http://download.java.net/maven/2/  was 
cached in t 
he local repository, resolution will not be reattempted until the update 
interva 
l of maven2-repository.java.net has elapsed or updates are forced -> 

[Help 1] 

解决: <repositories>
    <repository>
      <id>maven2-repository.java.net</id>
      <name>Java.net Repository for Maven</name>
      <url>http://download.java.net/maven/2/</url>
      <layout>default</layout>
    </repository>
  </repositories>

Change this to

  <repositories>
    <repository>
      <id>maven2-repository.java.net</id>
      <name>Java.net Repository for Maven</name>
      <url>http://download.java.net/maven/2/</url>
      <layout>default</layout>
    </repository>
    <repository>
      <id>apache.snapshots</id>
      <name>Apache Snapshot Repository</name>
      <url>http://repository.apache.org/snapshots</url>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>
  </repositories>

maven错误

标签:

原文地址:http://my.oschina.net/liting/blog/408065

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!