Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-1490

Unable to use lombok generated builder methods with apache-release profile

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • None
    • None
    • build
    • None

    Description

      Seeing the following errors while building with the apache-release profile.

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:jar (attach-javadocs) on project lens-cube: MavenReportException: Error while creating archive:
      [ERROR] Exit code: 1 - /Users/rajubairishetti/Desktop/apache/2.7-lens/lens/lens-cube/src/main/java/org/apache/lens/cube/metadata/TimeRange.java:91: error: cannot find symbol
      [ERROR] public TimeRangeBuilder cloneAsBuilder() {
      [ERROR] ^
      [ERROR] symbol:   class TimeRangeBuilder
      [ERROR] location: class TimeRange
      [ERROR] /Users/rajubairishetti/Desktop/apache/2.7-lens/lens/lens-cube/src/main/java/org/apache/lens/cube/parse/UnionCandidate.java:296: error: cannot find symbol
      [ERROR] TimeRange.TimeRangeBuilder builder) {
      [ERROR] ^
      [ERROR] symbol:   class TimeRangeBuilder
      [ERROR] location: class TimeRange
      

      Looks like, lombok-maven-plugin is not part of the apache-release profile. Able to fix this issue by adding to the lombok-maven-plugin to the profile.

      Not sure, whether the following profile is activated by default or not when it is building with some specific profile like building with the apache-release profile.

       <profile>
            <id>lombok-needs-tools-jar</id>
            <activation>
              <file>
                <exists>${java.home}/../lib/tools.jar</exists>
              </file>
            </activation>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            raju.bairishetti Raju Bairishetti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: