Raju Bairishetti created LENS-1490:
--------------------------------------
Summary: 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)