这几天把Roller源码下载下来学习了下,在Eclipse环境下使用Maven插件执行Install目标的时候。出现如下错误:
Error occurred during initialization of VM
agent library failed to init: instrument
Error opening zip file or JAR manifest missing : C:\Documents
解决的方法是修改如下文件:
planet-business/pom.xml
weblogger-business/pom.xml
weblogger-web/pom.xml
weblogger-webapp/pom.xml
将其中的:
<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>
参考:
http://mail-archives.apache.org/mod_mbox/roller-user/201106.mbox/%3C271500.10134.qm@web39807.mail.mud.yahoo.com%3E