Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-81339

Expected portlet-3.0 package not available when deploying NPM Project Templates

    Details

      Description

      Getting a semantic versioning when deploying NPM Project Templates:

      Deployment error

       [exec] 06:22:18,485 INFO  [fileinstall-/opt/dev/projects/github/liferay-portal/bundles/osgi/war][BaseAutoDeployListener:50] Themes for /opt/dev/projects/github/liferay-portal/bundles/tomcat-9.0.6/temp/20180516062217996RQICPJYR/fjord-theme.war copied successfully
           [exec] 06:22:19,206 ERROR [fileinstall-/opt/dev/projects/github/liferay-portal/bundles/osgi/modules][org_apache_felix_fileinstall:112] Exiting the JVM 
           [exec] org.osgi.framework.BundleException: Could not resolve module: com.test [848]
           [exec]   Unresolved requirement: Import-Package: javax.portlet; version="[2.0.0,3.0.0)"
           [exec] 
           [exec] 	at org.eclipse.osgi.container.Module.start(Module.java:429)
           [exec] 	at org.eclipse.osgi.internal.framework.EquinoxBundle.start(EquinoxBundle.java:402)
           [exec] 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundle(DirectoryWatcher.java:1258)
           [exec] 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.startBundles(DirectoryWatcher.java:1230)
           [exec] 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.doProcess(DirectoryWatcher.java:512)
           [exec] 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.process(DirectoryWatcher.java:361)
           [exec] 	at org.apache.felix.fileinstall.internal.DirectoryWatcher.run(DirectoryWatcher.java:312)
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/jps_output
           [echo] The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:299: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:842: /opt/dev/projects/github/liferay-portal/build-test-batch.xml:846: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:46: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-tomcat.xml:54: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:9671: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:3367: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:3484: 
           [echo] exec returned: 1
           [echo] The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:3949: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:4090: Unable to find startup message after 30 minutes.
      

      Building NPM Angular

      
      

      [exec] [INFO] Archetype repository not defined. Using the one from [com.liferay:com.liferay.project.templates.npm.angular.portlet:1.0.4] found in catalog remote
      [exec] [INFO] Downloading: http://repo.maven.apache.org/maven2/com/liferay/com.liferay.project.templates.npm.angular.portlet/1.0.4/com.liferay.project.templates.npm.angular.portlet-1.0.4.pom
      [exec] [INFO] Downloaded: http://repo.maven.apache.org/maven2/com/liferay/com.liferay.project.templates.npm.angular.portlet/1.0.4/com.liferay.project.templates.npm.angular.portlet-1.0.4.pom (2 KB at 67.0 KB/sec)
      [exec] [INFO] Downloading: http://repo.maven.apache.org/maven2/com/liferay/com.liferay.project.templates.npm.angular.portlet/1.0.4/com.liferay.project.templates.npm.angular.portlet-1.0.4.jar
      [exec] [INFO] Downloaded: http://repo.maven.apache.org/maven2/com/liferay/com.liferay.project.templates.npm.angular.portlet/1.0.4/com.liferay.project.templates.npm.angular.portlet-1.0.4.jar (17 KB at 1018.1 KB/sec)
      [exec] [INFO] ----------------------------------------------------------------------------
      [exec] [INFO] Using following parameters for creating project from Archetype: com.liferay.project.templates.npm.angular.portlet:1.0.4
      [exec] [INFO] ----------------------------------------------------------------------------
      [exec] [INFO] Parameter: groupId, Value: com.test
      [exec] [INFO] Parameter: artifactId, Value: com.npm.angular
      [exec] [INFO] Parameter: version, Value: 1.0.0
      [exec] [INFO] Parameter: package, Value: com.test
      [exec] [INFO] Parameter: packageInPathFormat, Value: com/test
      [exec] [INFO] Parameter: liferayVersion, Value: 7.1
      [exec] [INFO] Parameter: author, Value: liferay
      [exec] [INFO] Parameter: groupId, Value: com.test
      [exec] [INFO] Parameter: version, Value: 1.0.0
      [exec] [INFO] Parameter: projectType, Value: standalone
      [exec] [INFO] Parameter: className, Value: Foo
      [exec] [INFO] Parameter: package, Value: com.test
      [exec] [INFO] Parameter: packageJsonVersion, Value: 1.0.0
      [exec] [INFO] Parameter: buildType, Value: maven
      [exec] [INFO] Parameter: artifactId, Value: com.npm.angular
      [exec] [INFO] Project created from Archetype in dir: /opt/dev/projects/github/liferay-portal/modules/sdk/project-templates/project-templates-npm-angular-portlet/com.npm.angular
      [exec] [INFO] ------------------------------------------------------------------------
      [exec] [INFO] BUILD SUCCESS
      [exec] [INFO] ------------------------------------------------------------------------
      [exec] [INFO] Total time: 4.590s
      [exec] [INFO] Finished at: Wed May 16 06:18:25 UTC 2018
      [exec] [INFO] Final Memory: 14M/245M
      [exec] [INFO] ------------------------------------------------------------------------
      [exec] [INFO] Scanning for projects...
      [exec] [INFO]
      [exec] [INFO] ------------------------------------------------------------------------
      [exec] [INFO] Building com.npm.angular 1.0.0
      [exec] [INFO] ------------------------------------------------------------------------

      
      

      Reproduced on
      Tomcat 9.0.6 + MySQL 5.7.19
      Portal master GIT ID: 0e991e1daf06823a9f404ecab4decd93f0e36499.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lawrence.lee Lawrence Lee
                Reporter:
                albert.lee Albert Lee
                Participants of an Issue:
                Recent user:
                Michael Saechang
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 8 weeks ago

                  Packages

                  Version Package
                  7.1.0 Beta 2
                  7.1.X
                  Master