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

Plugin test-event-portlet failed to compile

    Details

      Description

      Steps to Reproduce:

      1. Try to build and deploy test-event-portlet from liferay-plugins repo to master.

      Expected Result:
      Plugin test-event-portlet deployed to master successfully.

      Actual Result:
      Build failed with error:

           [copy] Copying 1 file to /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-event-portlet/docroot/WEB-INF/lib
          [mkdir] Created dir: /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-event-portlet/docroot/WEB-INF/classes
           [copy] Copying 4 files to /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-event-portlet/docroot/WEB-INF/lib
           [copy] Copying 2 files to /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-event-portlet/docroot/WEB-INF/classes
           [copy] Copied 5 empty directories to 4 empty directories under /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-event-portlet/docroot/WEB-INF/classes
          [javac] Compiling 2 source files to /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-event-portlet/docroot/WEB-INF/classes
          [javac] /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-event-portlet/docroot/WEB-INF/src/com/liferay/testevent/portlet/EventProducer.java:17: error: package com.liferay.portal.kernel.util does not exist
          [javac] import com.liferay.portal.kernel.util.ContentTypes;
          [javac]                                      ^
          [javac] /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-event-portlet/docroot/WEB-INF/src/com/liferay/testevent/portlet/EventProducer.java:42: error: cannot find symbol
          [javac] 		renderResponse.setContentType(ContentTypes.TEXT_HTML);
          [javac] 		                              ^
          [javac]   symbol:   variable ContentTypes
          [javac]   location: class EventProducer
          [javac] Note: /opt/dev/projects/github/liferay-plugins-7.0.x/portlets/test-event-portlet/docroot/WEB-INF/src/com/liferay/testevent/portlet/EventConsumer.java uses unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
          [javac] 2 errors
      

      Reproduced on:
      Tomcat 9.0.43 + MySQL 5.7. Portal master DXP GIT ID: 850fb8025300f4e449314e98ec97c4bfd3bf06c0.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              victor.ware Victor Ware
              Reporter:
              summer.zhang Summer Zhang
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                4 weeks, 3 days ago

                  Packages

                  Version Package