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]
Solution:
Modify the root directory pom.xml as follows, the original guice repository has expired.
Remove the original repository
<repository> <id>guice</id> <url>http://guice-maven.googlecode.com/svn/trunk/</url> </repository>
add new repository,
<repository> <id>thirdparty-uploads</id> <name>JBoss Thirdparty Uploads</name> <url>https://repository.jboss.org/nexus/content/repositories/thirdparty-uploads</url> </repository>
After that, I also encountered an inexplicable problem. I need to add quotation marks to the POM.xml below.
planet-business/pom.xml weblogger-business/pom.xml weblogger-web / pom.xml weblogger-webapp/pom.xml
Find the line below each POM above
<argLine>-javaagent:${user.home}/.m2/repository/org/apache/openjpa/openjpa/2.0.1/openjpa-2.0.1.jar</argLine>
Modify as follows
<argLine>-javaagent:"${user.home}/.m2/repository/org/apache/openjpa/openjpa/2.0.1/openjpa-2.0.1.jar"</argLine>
The new version is estimated to solve this bug.
After executing 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