[ 
https://issues.apache.org/jira/browse/HADOOP-15941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16742449#comment-16742449
 ] 

Devaraj K commented on HADOOP-15941:
------------------------------------

[~ajisakaa] / [~tasanuma0829] This is still failing for "mvn clean compile" or 
"mvn clean install".

I think these args need to be added for 'maven-compiler-plugin' as initially 
suggested by [~umamaheswararao].
{code:xml}
<arg>--add-exports</arg>
<arg>java.naming/com.sun.jndi.ldap=ALL-UNNAMED</arg>
{code}

> [JDK 11] Compilation failure: package com.sun.jndi.ldap is not visible
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-15941
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15941
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: common
>    Affects Versions: 3.3.0
>            Reporter: Uma Maheswara Rao G
>            Assignee: Takanobu Asanuma
>            Priority: Major
>             Fix For: 3.3.0
>
>         Attachments: HADOOP-15941.1.patch, HADOOP-15941.2.patch
>
>
> With JDK 11: Compilation failed because package com.sun.jndi.ldap is not 
> visible.
>  
> {noformat}
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute 
> goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile 
> (default-compile) on project hadoop-common: Compilation failure
> /C:/Users/umgangum/Work/hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/LdapGroupsMapping.java:[545,23]
>  package com.sun.jndi.ldap is not visible
>  (package com.sun.jndi.ldap is declared in module java.naming, which does not 
> export it){noformat}
>  
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to