zxing jigsaw modules package name conflict

54 views
Skip to first unread message

daniel ritter

unread,
Jan 15, 2018, 7:43:17 AM1/15/18
to zxing
I've got a problem to use the modules 'core' & 'javase' in the same application module cause both modules have the package 'com.google.zxing'. So my IDE shows a warning(see attachment). Here is my maven import for zxing:

<!-- https://mvnrepository.com/artifact/com.google.zxing/core -->
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>core</artifactId>
<version>3.3.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.google.zxing/javase -->
<dependency>
<groupId>com.google.zxing</groupId>
<artifactId>javase</artifactId>
<version>3.3.1</version>
</dependency>

Is there a smart way to solve this package name conflict?

zxing_module_error.png

Sean Owen

unread,
Jan 30, 2018, 11:07:43 PM1/30/18
to zxing
Sorry to say that the project is not going to be compatible with the Java 9 module requirements for exactly this reason. Several artifacts declare classes in the same package, and that's not allowed. If we put it together today of course we couldn't do that, but it can't be changed without breaking compatibility, and it's not worthwhile. The project still works fine in Java 9, just can't use its module declarations.
Reply all
Reply to author
Forward
0 new messages