ITOO之底层搭建(一)——缺少jar

在搭建底层框架时,maven install itoo-base 和 itoo-tool(Packaging的值是ejb的)时,总是报如下的错误:

maven install  itoo-base:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-ejb-plugin:2.3:ejb (default-ejb) on project itoo-base: Error assembling EJB: META-INF/ejb-jar.xml is required for ejbVersion 2.x -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException  

maven install  itoo-tool:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-ejb-plugin:2.3:ejb (default-ejb) on project itoo-tool: Error assembling EJB: META-INF/ejb-jar.xml is required for ejbVersion 2.x -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException  

初步判定是缺少maven-ejb-plugin:2.3 的jar包。于是我就去我自己搭建的nexus上去搜索该jar包,但是没有任何信息,我又去252服务器上nexus上去查找了该jar包,结果显示有。所以基本断定我自己搭建的nexus是有问题的。通过阅读文档发现自己的nexus没有更新索引,所以central中的jar是不全的。

更新完索引(具体方式,详见:《maven与nexus》),再次install,问题解决了……










你可能感兴趣的:(ITOO之底层搭建(一)——缺少jar)