为eclipse liferay 6.2设置maven支持

时间:2016-08-23 05:46:21

标签: maven liferay maven-3 maven-plugin liferay-6.2

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

  1. liferay-maven-plugin下载并生成了ant install - done
  2. liferay-maven-support-6.2.10.15已下载并尝试运行mvn install但出现以下错误:
  3. 任何人都可以帮助我吗?

    日志:

         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
    

1 个答案:

答案 0 :(得分:0)

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