You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Raju Bairishetti (JIRA)" <ji...@apache.org> on 2017/11/29 05:54:00 UTC

[jira] [Resolved] (LENS-1490) Unable to use lombok generated builder methods with apache-release profile

     [ https://issues.apache.org/jira/browse/LENS-1490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Raju Bairishetti resolved LENS-1490.
------------------------------------
    Resolution: Invalid

Closing this as invalid as profile *javadoc* has lombok plugin. We just need to update the release doc on the confluence page for running with apache-release profile.

> Unable to use lombok generated builder methods with apache-release profile
> --------------------------------------------------------------------------
>
>                 Key: LENS-1490
>                 URL: https://issues.apache.org/jira/browse/LENS-1490
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: build
>            Reporter: Raju Bairishetti
>
> Seeing the following errors while building with the *apache-release* profile. 
> {noformat}
> [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
> {noformat}
> 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.
> {noformat} <profile>
>       <id>lombok-needs-tools-jar</id>
>       <activation>
>         <file>
>           <exists>${java.home}/../lib/tools.jar</exists>
>         </file>
>       </activation>
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)