Uploaded image for project: 'PUBLIC - Liferay Maven'
  1. PUBLIC - Liferay Maven
  2. MAVEN-130

liferay-maven-plugin:6.2.10.9:build-ext fails during compile or test phases

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 6.2.X
    • Fix Version/s: Master
    • Component/s: Plugins
    • Labels:
      None
    • Environment:
      Mac OS

      Description

      My project contains ext plugin.
      Which I created using liferay archetype.
      If I run mvn compile or mvn test it fails in ext plugin:

      [INFO] — liferay-maven-plugin:6.2.10.9:build-ext (default) @ strange2-portal-ext —
      [INFO] ------------------------------------------------------------------------
      [INFO] Reactor Summary:
      [INFO]
      [INFO] strange2-portal ................................... SUCCESS [0.001s]
      [INFO] strange2-portal Ext Lib Global .................... SUCCESS [0.001s]
      [INFO] strange2-portal Ext Lib Portal .................... SUCCESS [0.000s]
      [INFO] strange2-portal Ext Service ....................... SUCCESS [0.690s]
      [INFO] strange2-portal Ext Util Bridges .................. SUCCESS [0.025s]
      [INFO] strange2-portal Ext Util Java ..................... SUCCESS [0.020s]
      [INFO] strange2-portal Ext Util Taglib ................... SUCCESS [0.017s]
      [INFO] strange2-portal Ext Impl .......................... SUCCESS [0.030s]
      [INFO] strange2-portal Ext Web ........................... SUCCESS [0.017s]
      [INFO] strange2-portal Ext ............................... FAILURE [0.677s]
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 1.674s
      [INFO] Finished at: Sun Oct 19 20:16:39 GST 2014
      [INFO] Final Memory: 9M/228M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal com.liferay.maven.plugins:liferay-maven-plugin:6.2.10.9:build-ext (default) on project strange2-portal-ext: Source '/private/tmp/strange-portal/strange2-portal/strange2-portal-ext-impl/target/classes' exists but is a directory -> [Help 1]

      If I go inside "strange2-portal Ext" submodule and run mvn test compile it runs OK. But if I'm in parent it fails.

      I have attached exception from this build. I saw in source code, that it expects artifact for ext-impl to be jar or war but while it builds it resolves to target/classes directory.

      http://grepcode.com/file/repo1.maven.org/maven2/com.liferay.maven.plugins/liferay-maven-plugin/6.2.1/com/liferay/maven/plugins/ExtBuilderMojo.java#41

        Attachments

          Activity

            People

            • Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                4 years, 34 weeks, 2 days ago

                Packages

                Version Package
                Master