从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

解决方案 »

  1.   

    咋没人搭理呢?是不是少有人研究jetspeed?
      

  2.   

    POM里面这个插件配了吗?<plugin>
      <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>
      

  3.   

     <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>
      

  4.   

      <build>
        <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>
      

  5.   

    这是我从官网上下的代码没做任何修改 但是Maven就是过不去
    后来我把重复的一些<dependency>删掉了,再Maveninstall 到了这儿又过不去了
    我对Maven不了解,很是头疼!!!
      

  6.   

    既然是官网下的,建议不要修改。
    你在命令行环境下用mvn install试试看。
    国内网络不是很好,耐心多试几次吧。
      

  7.   

    在命令行也还是么通过
    不过报了不同的错误:
    后来我把Maven安装目录删了重新解压一下后结果通过了
    可能是我在lib文件夹下放了写不必要的jar报的原因。不过Maven通过之后,该怎么部署呢,又是个头大的问题,还要继续研究!!
    感谢:
    magong
     
    (行者67685C1196C4) 指点!!受益匪浅!!!
      

  8.   

    下载了jetspeed2的源码后,我是用maven管理的,用maven生成门户,在此基础上实现二次开发。现在遇到的问题是每次修改程序,都要maven重新构建项目,真的很麻烦。不知道有什么解决方案?求高人赐教……