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

Compilation failed portal-search-elasticsearch6 and portal-search-elasticsearch7

    Details

    • Fix Priority:
      4

      Description

      modules-unit-jdk8 is failing in 7.2.x with:

      Elasticsearch 6 Error
           [exec] > Task :apps:portal-search-elasticsearch6:portal-search-elasticsearch6-impl:compileTestJava FAILED
           [exec] /opt/dev/projects/github/liferay-portal-7.2.x/modules/apps/portal-search-elasticsearch6/portal-search-elasticsearch6-impl/src/test/java/com/liferay/portal/search/elasticsearch6/internal/search/engine/adapter/ElasticsearchSearchEngineAdapterIndexRequestTest.java:235: error: cannot find symbol
           [exec] 		Map<String, String> fieldMappings =
           [exec] 		^
           [exec]   symbol:   class Map
           [exec]   location: class ElasticsearchSearchEngineAdapterIndexRequestTest
           [exec] Note: Some input files use or override a deprecated API.
           [exec] Note: Recompile with -Xlint:deprecation for details.
           [exec] Note: Some input files use unchecked or unsafe operations.
           [exec] Note: Recompile with -Xlint:unchecked for details.
           [exec] 1 error
      Elasticsearch 7 Error
       
           [exec] /opt/dev/projects/github/liferay-portal-7.2.x/modules/apps/portal-search-elasticsearch7/portal-search-elasticsearch7-impl/src/test/java/com/liferay/portal/search/elasticsearch7/internal/search/engine/adapter/ElasticsearchSearchEngineAdapterIndexRequestTest.java:235: error: cannot find symbol
           [exec] 		Map<String, String> fieldMappings =
           [exec] 		^
           [exec]   symbol:   class Map
           [exec]   location: class ElasticsearchSearchEngineAdapterIndexRequestTest
           [exec] Note: Some input files use or override a deprecated API.
           [exec] Note: Recompile with -Xlint:deprecation for details.
           [exec] Note: Some input files use unchecked or unsafe operations.
           [exec] Note: Recompile with -Xlint:unchecked for details.
           [exec] 1 erro
      

      Reproduced on:
      Tomcat 9.0.33 + MySQL 5.7 Portal 7.2.x GIT ID: 55b8a3f83d945c204c2a2fc81d26cee719c53c81

        Attachments

          Activity

            People

            Assignee:
            support-lep@liferay.com SE Support
            Reporter:
            brooke.dalton Brooke Dalton
            Participants of an Issue:
            Recent user:
            Joshua Chong
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 13 weeks, 5 days ago

                Packages

                Version Package