[
https://issues.apache.org/jira/browse/ATLAS-2966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16686262#comment-16686262
]
ASF GitHub Bot commented on ATLAS-2966:
---------------------------------------
GitHub user necosta opened a pull request:
https://github.com/apache/atlas/pull/20
ATLAS-2966: Fixed bug on Java 11 build
Hi, this is my first contribution to this repo, unsure if there is a
template to follow
## Details of the error:
https://issues.apache.org/jira/browse/ATLAS-2966
## How it was tested:
Built against Java 11 -> Fixed error
Built against Java 8 -> Successful build
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/necosta/atlas ATLAS2966
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/atlas/pull/20.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #20
----
commit 8e6a18d5e9b9c8fb575e9f83bd6726edb5e2c3d9
Author: Nelson Costa <nelson.costa85@...>
Date: 2018-11-14T09:29:41Z
ATLAS-2966: Fixed bug on Java 11 build
----
> Unable to build against Java 11
> -------------------------------
>
> Key: ATLAS-2966
> URL: https://issues.apache.org/jira/browse/ATLAS-2966
> Project: Atlas
> Issue Type: Bug
> Affects Versions: trunk
> Reporter: Nelson Costa
> Priority: Major
>
> Steps:
> * git clone ...atlas.git
> * mvn -DskipTests clean install
> With:
> {noformat}
> java 11.0.1 2018-10-16 LTS
> Java(TM) SE Runtime Environment 18.9 (build 11.0.1+13-LTS)
> Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.1+13-LTS, mixed mode)
> {noformat}
> Error:
> {noformat}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile
> (default-compile) on project atlas-common: Compilation failure: Compilation
> failure:
> [ERROR]
> /Users/nelsonc/projects/atlas/common/src/main/java/org/apache/atlas/service/Services.java:[27,24]
> cannot find symbol
> [ERROR] symbol: class PostConstruct
> [ERROR] location: package javax.annotation
> [ERROR]
> /Users/nelsonc/projects/atlas/common/src/main/java/org/apache/atlas/service/Services.java:[28,24]
> cannot find symbol
> [ERROR] symbol: class PreDestroy
> [ERROR] location: package javax.annotation
> [ERROR]
> /Users/nelsonc/projects/atlas/common/src/main/java/org/apache/atlas/service/Services.java:[57,6]
> cannot find symbol
> [ERROR] symbol: class PostConstruct
> [ERROR] location: class org.apache.atlas.service.Services
> [ERROR]
> /Users/nelsonc/projects/atlas/common/src/main/java/org/apache/atlas/service/Services.java:[74,6]
> cannot find symbol
> [ERROR] symbol: class PreDestroy
> [ERROR] location: class org.apache.atlas.service.Services
> [ERROR] -> [Help 1]
> {noformat}
> See:
>
> [https://stackoverflow.com/questions/46502001/how-to-get-access-to-javax-annotation-resource-at-run-time-in-java-9/46502132]
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)