You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Kiley Sok (Jira)" <ji...@apache.org> on 2020/09/14 18:23:00 UTC

[jira] [Assigned] (BEAM-8024) Project importing Beam that uses Java 11 and JPMS cannot compile

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

Kiley Sok reassigned BEAM-8024:
-------------------------------

    Assignee: Kiley Sok

> Project importing Beam that uses Java 11 and JPMS cannot compile
> ----------------------------------------------------------------
>
>                 Key: BEAM-8024
>                 URL: https://issues.apache.org/jira/browse/BEAM-8024
>             Project: Beam
>          Issue Type: Sub-task
>          Components: build-system
>            Reporter: Lukasz Gajowy
>            Assignee: Kiley Sok
>            Priority: P3
>              Labels: java11
>
> This was suggested on the devlist in a [thread about Java 11 compatibility|https://lists.apache.org/thread.html/065e7cb9f25a4312ce5f0045ee2946c1d93c04615e37351f1e25a9b8@%3Cdev.beam.apache.org%3E]. 
> I confirmed it in my sandbox project. Source code: [https://github.com/lgajowy/beamJava11Compatibility]
> When building this sample project and importing 3 beam dependencies: 
> {code:java}
> dependencies {
>   compile group: 'org.apache.beam', name: 'beam-sdks-java-core', version: '2.14.0'
>   compile group: 'org.apache.beam', name: 'beam-runners-direct-java', version: '2.14.0'
>   compile group: 'org.apache.beam', name: 'beam-sdks-java-extensions-google-cloud-platform-core', version: '2.14.0'
> } {code}
>  
> It is impossible to compile the project due to split-package problems: 
> {code:java}
>  error: the unnamed module reads package com.google.common.flogger from both flogger and google.extensions
> error: module beam.sdks.java.extensions.google.cloud.platform.core reads package com.google.common.flogger from both flogger and google.extensions
> error: module beam.model.pipeline reads package com.google.common.flogger from both flogger and google.extensions
> error: module beam.model.job.management reads package com.google.common.flogger from both flogger and google.extensions
> error: module beam.vendor.guava.20.0 reads package com.google.common.flogger from both flogger and google.extensions
> error: module com.fasterxml.jackson.databind reads package com.google.common.flogger from both flogger and google.extensions
> error: module google.auth.library.oauth2.http reads package com.google.common.flogger from both flogger and google.extensions
> error: module google.api.services.cloudresourcemanager.v1.rev20181015 reads package com.google.common.flogger from both flogger and google.extensions
> error: module gcsio reads package com.google.common.flogger from both flogger and google.extensions
> error: module util reads package com.google.common.flogger from both flogger and google.extensions
> ...{code}
>  
> as stated in the devlist thread, more dependencies can cause problems.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)