从apach官网下了个jetspeed源码,在Myeclipse8.6中maven install后出现这个错误:
请指点这是什么原因造成的,谢谢各位老大!!![INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.018s
[INFO] Finished at: Mon Mar 21 13:37:15 CST 2011
[INFO] Final Memory: 19M/34M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-unpack-maven-plugin:2.2.1:unpack (unpack-resources) on project jetspeed-deploy-tools: Either specify artifact or file -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :jetspeed-deploy-tools
请指点这是什么原因造成的,谢谢各位老大!!![INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 44.018s
[INFO] Finished at: Mon Mar 21 13:37:15 CST 2011
[INFO] Final Memory: 19M/34M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.portals.jetspeed-2:jetspeed-unpack-maven-plugin:2.2.1:unpack (unpack-resources) on project jetspeed-deploy-tools: Either specify artifact or file -> [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
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :jetspeed-deploy-tools
解决方案 »
- Java图片显示问题
- spring集成jta中设置readonly
- hibernate的基于外键的多对一,unique="true"怎么没效果
- 求助..关于项目部署问题
- axis的问题
- 郁闷:在“Generating Artifacts”期间发生了内部错误。
- 如果xml文件的内容与DTD格式不相同,SAXParser一定会抛出异常吗??
- org.apache.commons.logging.LogFactory导入失败,进来给分
- 一个servlet里可以同时调用一个会话Bean和一个实体Bean吗?
- web项目一般localhost:8080/项目名,可是spring mvc框架的项目,为什么就直接8080后面加项目里面的一些名字了?
- java.sql.SQLWarning警告,要处理还是不管它?
- 错误信息 请教!
<groupId>org.apache.portals.jetspeed-2</groupId>
<artifactId>jetspeed-unpack-maven-plugin</artifactId>
<version>${org.apache.portals.jetspeed.version}</version>
...
<dependencies>
<dependency>
<groupId>org.apache.portals.jetspeed-2</groupId>
<artifactId>jetspeed-portal-resources</artifactId>
<version>${org.apache.portals.jetspeed.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>${pom.groupId}</groupId>
<artifactId>jetspeed-unpack-maven-plugin</artifactId>
<version>${pom.version}</version>
<executions>
<execution>
<id>unpack-resources</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<unpack>
<targetDirectory>${project.build.directory}/classes/org/apache/jetspeed/tools/deploy</targetDirectory>
<resources>
<resource>
<path>tld</path>
<include>portlet*.tld</include>
</resource>
</resources>
</unpack>
</configuration>
</execution>
</executions>
<plugins>
<plugin>
<groupId>${pom.groupId}</groupId>
<artifactId>jetspeed-unpack-maven-plugin</artifactId>
<version>${pom.version}</version>
<executions>
<execution>
<id>unpack-resources</id>
<goals>
<goal>unpack</goal>
</goals>
<phase>process-resources</phase>
<configuration>
<unpack>
<targetDirectory>${project.build.directory}/classes/org/apache/jetspeed/tools/deploy</targetDirectory>
<resources>
<resource>
<path>tld</path>
<include>portlet*.tld</include>
</resource>
</resources>
</unpack>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>${pom.groupId}</groupId>
<artifactId>jetspeed-portal-resources</artifactId>
<version>${pom.version}</version>
</dependency>
</dependencies>
</plugin>
</plugins>
后来我把重复的一些<dependency>删掉了,再Maveninstall 到了这儿又过不去了
我对Maven不了解,很是头疼!!!
你在命令行环境下用mvn install试试看。
国内网络不是很好,耐心多试几次吧。
不过报了不同的错误:
后来我把Maven安装目录删了重新解压一下后结果通过了
可能是我在lib文件夹下放了写不必要的jar报的原因。不过Maven通过之后,该怎么部署呢,又是个头大的问题,还要继续研究!!
感谢:
magong
(行者67685C1196C4) 指点!!受益匪浅!!!