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

"ant setup-eclipse" does not include the JAR necessary to use com.liferay.portal.settings.Settings into .classpath

    Details

      Description

      "ant setup-eclipse" does not include the JAR necessary to use com.liferay.portal.settings.Settings into .classpath, which results in compiler error messages in ceclipse.

      Steps to reproduce

      Note that we have three "things" to handle here: the liferay-portal repository, the liferay-plugins repository and a Liferay bundle. When compiled, the liferay-portal source code should update this bundle; also, the liferay-plugins build.${user}.properties should point to this bundle as well.

      Now, how to test it:

      1. In the liferay-plugins repository, run "ant all".
      2. After "ant all" is complete, go into the calendar-portlet directory in the liferay-plugins repository (at $LIFERAY_PLUGINS_SDK/portlets/calendar-portlet).
      3. There, run "ant setup-eclipse"
      4. In Eclipse, open the "calendar-portlet" project:
        1. Click on "File > New > Other..."
        2. Choose "Java Project"
        3. On the new Java Project screen, uncheck the "Use default location" checkbox
        4. On "Location," type the path for the calendar portlet ($LIFERAY_PLUGINS_SDK/portlets/calendar-portlet)
        5. On "Name," type "calendar-portlet".
        6. Click on "Finish"
      5. See the errors listed in the "Markers" view.

      If you will, instead of repeatedly recreate the calendar-portlet project, you can close and reopen it, or even just rebuild it (although the rebuild behavior was a bit random here.)

      Expected results

      • No error message would be displayed

      Actual results

      • The following error is displayed in the "Markers" view:
        The type com.liferay.portal.settings.Settings cannot be resolved. It is indirectly referenced from required .class files
        

        Attachments

        1. failed.jpg
          failed.jpg
          2.29 MB
        2. LPS45707.png
          LPS45707.png
          45 kB
        3. reproduced.jpg
          reproduced.jpg
          201 kB
        4. wrong-classpath-portlet.zip
          23 kB

          Issue Links

            Activity

              People

              Assignee:
              shitian.zhang Shitian "Shelton" Zhang (Inactive)
              Reporter:
              adam.brandizzi Adam Brandizzi
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 27 weeks, 3 days ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.2 CE GA3
                  6.2.X EE
                  7.0.0 M1