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

Only delete plugin-service.jar in Plugins SDK if recompile is successful

    Details

      Description

      When developing with the assistance of an IDE, if you use the compiled plugin-service.jar instead of adding the service folder to the build path to avoid the temptation of modifying auto-generated classes (as is the case with the planned upcoming release of Liferay IDE), running build-service when there are still compile errors results in all auto-generated classes going missing from the classpath.

      As a result, this disallows use of something like Organize Imports in Eclipse to find missing classes, because all the model classes will fail to resolve (and thus disappear from a pre-existing imports list when resolving classes that do exist), or resolve erroneously, with the only option to fix the issue being to temporarily re-add the service folder to the build path until the compilation errors are resolved.

      To improve usability, we can update the plugins SDK to reverse the order of the recompile and the service jar deletion. That way, it's possible to only include the plugin-service.jar on the classpath and only update that JAR after a successful compile of the service classes.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              minhchau.dang Minhchau Dang
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                9 years, 24 weeks, 5 days ago

                  Packages

                  Version Package
                  5.2.X EE
                  6.0.12 EE
                  6.1.0 CE RC1