0

我正在尝试使用以下步骤为 liferay 6.2 生成 Maven 原型:

  1. liferay-maven-plugin 下载并生成 ant install -- 完成
  2. liferay-maven-support-6.2.10.15 下载并尝试运行 mvn install 但出现以下错误:

谁能帮我吗?

日志:

     Using following parameters for creating project from Archetype: liferay-e
     xt-archetype:6.2.10.15
     Parameter: groupId, Value: archetype.it
     Parameter: artifactId, Value: default
     Parameter: version, Value: 1.0.0-SNAPSHOT
     Parameter: package, Value: build.archetype
     Parameter: packageInPathFormat, Value: build/archetype
     Parameter: version, Value: 1.0.0-SNAPSHOT
    Parameter: package, Value: build.archetype
    Parameter: groupId, Value: archetype.it
    Parameter: artifactId, Value: default

    project created from Archetype in dir: C:\liferay_tomcat\liferay6.2\Maven\liferay-maven-support-6.2.10.15\archetypes\liferay-ext-     archetype\target\test-classes\projects\default\project\default

     Comparing generated project with reference content:            C:\liferay_tomcat\liferay6.2\Maven\liferay-maven-support-6.2.10.15\archetypes\liferay-ext-archetype\target\test-classes\projects\default\reference
     Contents of file default-ext\pom.xml are not equal
     Contents of file default-ext\src\main\webapp\WEB-INF\liferay-plugin-package.properties are not equal
         Contents of file default-ext\src\main\webapp\WEB-INF\web.xml are not equal
      Contents of file default-ext-impl\pom.xml are not equal
         Contents of file default-ext-lib-global\pom.xml are not equal
        Contents of file default-ext-lib-portal\pom.xml are not equal
        Contents of file default-ext-service\pom.xml are not equal
        Contents of file default-ext-util-bridges\pom.xml are not equal
        Contents of file default-ext-util-java\pom.xml are not equal
        Contents of file default-ext-util-taglib\pom.xml are not equal
          Contents of file default-ext-web\pom.xml are not equal
       Contents of file default-ext-web\src\main\webapp\WEB-INF\liferay-portl et-ext.xml are not equal
     Contents of file default-ext-web\src\main\webapp\WEB-INF\portlet-ext.xml are not equal


       Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:integration-test (default-integration-test) on project liferay-ext-archetype:

       Archetype IT 'default' failed: Some content are not equals
-> [Help 1]

        To see the full stack trace of the errors, re-run Maven with the -e swit
4

1 回答 1

0

应检查门户和 maven 工件的版本号,以及两者是否都是 CE 或 EE。安装工件时,不匹配的版本通常会导致冲突。

于 2016-08-25T06:56:06.817 回答