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

Build error for a plugin-ext 'test-ext/src/main/webapp/WEB-INF/sql' does not exist

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Master
    • Fix Version/s: 6.1.X, Master, 6.2.X
    • Component/s: Archetypes, Plugins
    • Labels:
    • Environment:
      This is reproduced using the new released version: *6.2.10.4*

      Description

      Steps to reproduce.

      1. Create a plugin-ext from liferay-ext-archetype

      2. Configure your liferay & liferay-maven-plugin version adding the next properties to the main pom.xml

       	<properties>
      		<liferay.version>6.2.10.3</liferay.version>
      		<liferay.maven.plugin.version>6.2.10.4</liferay.maven.plugin.version> 
      	</properties>
      

      3. execute mvn install

      Result: BUILD ERROR

      Output Details:

      [...]
      
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] skip non existing resourceDirectory /home/jcampoy/test/maven-plugin-ext/test/test-ext/src/main/resources
      [INFO] [liferay:build-ext {execution: default}]
      [INFO] ------------------------------------------------------------------------
      [ERROR] BUILD ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] Source '/home/jcampoy/test/maven-plugin-ext/test/test-ext/src/main/webapp/WEB-INF/sql' does not exist
      
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      org.apache.maven.lifecycle.LifecycleExecutionException: Source '/home/jcampoy/test/maven-plugin-ext/test/test-ext/src/main/webapp/WEB-INF/sql' does not exist
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
              at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
              at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
              at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
              at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
              at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
              at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
              at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Source '/home/jcampoy/test/maven-plugin-ext/test/test-ext/src/main/webapp/WEB-INF/sql' does not exist
              at com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:87)
              at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
              at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
              ... 17 more
      Caused by: java.io.FileNotFoundException: Source '/home/jcampoy/test/maven-plugin-ext/test/test-ext/src/main/webapp/WEB-INF/sql' does not exist
              at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:866)
              at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:770)
              at org.apache.commons.io.FileUtils.copyDirectory(FileUtils.java:745)
              at com.liferay.maven.plugins.util.FileUtil.copyDirectory(FileUtil.java:31)
              at com.liferay.maven.plugins.ExtBuilderMojo.doExecute(ExtBuilderMojo.java:203)
              at com.liferay.maven.plugins.AbstractLiferayMojo.execute(AbstractLiferayMojo.java:80)
              ... 19 more
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 14 seconds
      [INFO] Finished at: Wed Apr 23 15:31:26 CEST 2014
      [INFO] Final Memory: 41M/484M
      [INFO] ------------------------------------------------------------------------
      
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 26 weeks, 4 days ago

                Packages

                Version Package
                6.1.X
                Master
                6.2.X