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/27 06:58:00 UTC
[jira] [Created] (LENS-1490) Unable to use lombok generated builder
methods with apache-release profile
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)