roller5.0.1 maven install juice 报错解决

roller5.0.1下载后,根目录执行mvn install始终报:
INFO] Reactor Summary:
[INFO] 
[INFO] Apache Roller Project ............................. SUCCESS [0.783s]
[INFO] Apache Roller Core Module ......................... SUCCESS [3.487s]
[INFO] Apache Roller Test Utilities ...................... SUCCESS [1.790s]
[INFO] Apache Roller Planet Business Module .............. FAILURE [13.593s]
[INFO] Apache Roller Weblogger Business Module ........... SKIPPED
[INFO] Apache Roller Weblogger Web Module ................ SKIPPED
[INFO] Apache Roller Weblogger Web Application ........... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.104s
[INFO] Finished at: Thu Jul 11 15:12:01 CST 2013
[INFO] Final Memory: 9M/140M
[INFO] ------------------------------------------------------------------------
ERROR] Failed to execute goal on project roller-planet-business: Could not resolve dependencies for project org.apache.roller:roller-planet-business:jar:5.0.1: Could not find artifact com.google.code.guice:guice:jar:3.0 in central (http://repo1.maven.org/maven2) -> [Help 1]

解决方法:
修改根目录pom.xml如下,原guice repository已经失效了。
去掉原repository
 <repository>
            <id>guice</id>
            <url>http://guice-maven.googlecode.com/svn/trunk/</url>
        </repository>


添加新的repository,
       <repository>
            <id>thirdparty-uploads</id>
       	    <name>JBoss Thirdparty Uploads</name>
       	    <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-uploads</url>
     	 </repository>


之后还遇到一个莫名其妙的问题需要在下列到POM.xml添加引号
   planet-business/pom.xml
   weblogger-business/pom.xml
   weblogger-web/pom.xml
   weblogger-webapp/pom.xml

找到上面每一个POM的下面一行
<argLine>-javaagent:${user.home}/.m2/repository/org/apache/openjpa/openjpa/2.0.1/openjpa-2.0.1.jar</argLine>

修改如下
<argLine>-javaagent:"${user.home}/.m2/repository/org/apache/openjpa/openjpa/2.0.1/openjpa-2.0.1.jar"</argLine>

新到版本估计能解决这个bug.

在执行mvn install -Dmaven.test.skip=true
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Apache Roller Project ............................. SUCCESS [0.810s]
[INFO] Apache Roller Core Module ......................... SUCCESS [3.501s]
[INFO] Apache Roller Test Utilities ...................... SUCCESS [1.812s]
[INFO] Apache Roller Planet Business Module .............. SUCCESS [19.485s]
[INFO] Apache Roller Weblogger Business Module ........... SUCCESS [1:04.376s]
[INFO] Apache Roller Weblogger Web Module ................ SUCCESS [19.551s]
[INFO] Apache Roller Weblogger Web Application ........... SUCCESS [8.552s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1:58.483s
[INFO] Finished at: Thu Jul 11 17:09:52 CST 2013
[INFO] Final Memory: 22M/190M

你可能感兴趣的:(Install)