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

Maven direct-deploy is not working

    Details

      Description

      when running mvn liferay:direct-deploy it fails with the following issue. I've done with with a clean fresh portlet and cleint code as well with the same result.

      [FATAL ERROR] Container realm = plexus.core
      urls[0] = file:/usr/share/apache-maven-2.2.1/lib/maven-2.2.1-uber.jar
      [INFO] ------------------------------------------------------------------------
      [ERROR] FATAL ERROR
      [INFO] ------------------------------------------------------------------------
      [INFO] null
      [INFO] ------------------------------------------------------------------------
      [INFO] Trace
      java.lang.ExceptionInInitializerError
      at com.liferay.portal.util.PrefsPropsUtil.getPreferences(PrefsPropsUtil.java:256)
      at com.liferay.portal.util.PrefsPropsUtil.getPreferences(PrefsPropsUtil.java:246)
      at com.liferay.portal.util.PrefsPropsUtil.getBoolean(PrefsPropsUtil.java:80)
      at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:717)
      at com.liferay.portal.tools.deploy.BaseDeployer.deployFile(BaseDeployer.java:866)
      at com.liferay.portal.tools.deploy.BaseDeployer.deploy(BaseDeployer.java:500)
      at com.liferay.portal.tools.deploy.BaseDeployer.<init>(BaseDeployer.java:129)
      at com.liferay.portal.tools.deploy.PortletDeployer.<init>(PortletDeployer.java:87)
      at com.liferay.maven.plugins.PluginDirectDeployerMojo.deployPortlet(PluginDirectDeployerMojo.java:180)
      at com.liferay.maven.plugins.PluginDirectDeployerMojo.doExecute(PluginDirectDeployerMojo.java:109)
      at com.liferay.maven.plugins.PluginDirectDeployerMojo.execute(PluginDirectDeployerMojo.java:63)
      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
      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: java.lang.NullPointerException
      at com.liferay.portal.kernel.cache.MultiVMPoolUtil.getCache(MultiVMPoolUtil.java:45)
      at com.liferay.portal.service.impl.PortletPreferencesLocalUtil.<clinit>(PortletPreferencesLocalUtil.java:63)
      ... 30 more

        Attachments

          Activity

            People

            • Assignee:
              barrie.selack Barrie Selack (Inactive)
              Reporter:
              barrie.selack Barrie Selack (Inactive)
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                8 years, 20 weeks, 1 day ago

                Packages

                Version Package
                6.2.0 GA1
                6.1.1 GA2
                6.1.20 EE GA2