Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Java 11 conflicting packages

You could look at https://github.com/eclipse/tycho/issues/93 to use 'limit-modules' to remove the javax.xml module from JDK from the build path. Tycho will support this in the next version. A workaround to be used in the meantime is listed there as well.

Regards,
Dennis


Van: tycho-user <tycho-user-bounces@xxxxxxxxxxx> namens Muhammad Umair Sair <umair_sair@xxxxxxxxxxx>
Verzonden: dinsdag 1 juni 2021 05:16
Aan: tycho-user@xxxxxxxxxxx <tycho-user@xxxxxxxxxxx>
Onderwerp: [tycho-user] Java 11 conflicting packages
 
Hello everyone,

I am building product using Java 11 with following scenario.
  1. Including p2 repository for BIRT. This contains a plugin named javax.xml.
  2. linuxtools plugins are also included in build.
Now build of org.eclipse.linuxtools.docker.core fails with many similar errors like below.

[ERROR] import javax.xml.parsers.DocumentBuilder;
[ERROR] ^^^^^^^^^^^^^^^^^
[ERROR] The package javax.xml.parsers is accessible from more than one module: <unnamed>, java.xml

How can I exclude the particular plugin import from the BIRT repo so that the javax.xml plugin is not available during build of org.eclipse.linuxtools.docker.core and the required package is used from JDK.

Regards,
Umair Sair

Back to the top