eclipse集成dspace

原文地址:

 

https://wiki.duraspace.org/display/DSPACE/IDE+Integration+-+DSpace%2C+Eclipse+and+Tomcat

 

错误:......[ERROR] The build could not read 1 project -> [Help 1]
               [ERROR]   The project org.dspace:dspace-sword-api:1.5.2 (C:/Java/dspace-1.5.2/dspace-sword/dspace-sword-api/pom.xml) has 2 errors
               [ERROR]     'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.servlet:servlet-api:jar -> version (?) vs 2.4
              [ERROR]     'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: xom:xom:jar -> duplicate declaration of version 1.1

 

改正:涉及{dspace-1.6.2-src-release}/dspace-sword/dspace-sword-api/pom.xml 中“javax.servlet”及“xom”节的文件修改。

 

 

在集成maven的时候,如果用help->Install new solftware->add  其URL要改为“http://m2eclipse.sonatype.org/sites/m2e”,安装成功i后,会出现/dspace mvn package 失败的情况,原因可能是缺少plug,我的解决办法是手动下载一个maven,解压到本地目录,然后修改 windows->prefernces->maven->installations中的launch目录为maven的解压目录。

你可能感兴趣的:(eclipse,maven,tomcat,jar,url,Build)