HanSolo/tilesfx

Split module issues when trying to integrate into a Maven application

astrocoder opened this issue · 5 comments

I am attempting to incorporate your awesome library into my existing Maven (Eclipse) application and having issues with the modules seemingly exporting conflicting package names.

Here is the snippet from my pom.xml file:


<!-- https://mvnrepository.com/artifact/eu.hansolo/tilesfx -->
<dependency>
    <groupId>eu.hansolo</groupId>
    <artifactId>tilesfx</artifactId>
    <version>17.1.4</version>
</dependency>

The application compiles fine, but on startup I get the following error:

Error occurred during initialization of boot layer
java.lang.module.ResolutionException: Module eu.hansolo.toolbox contains package eu.hansolo.jdktools.versioning, module eu.hansolo.jdktools exports package eu.hansolo.jdktools.versioning to eu.hansolo.toolbox 

Any help would be appreciated.
Thanks!

Hey! I had a very similar problem! The root of the problem (I think, I could be totally wrong) is that for some reason, Toolbox 17.0.12 actually includes a jdktools package, despite also requiring jdktools as a dependency, resulting in two packages/modules with the same name and application confusion. Reverting to version 17.0.6 of Toolbox in my pom.xml fixed this problem for me.

Yep that seems to be the reason, I've also stumbled upon that problem but did not find the time to fix it...will do asap, sorry for the hassle...

I've made modifications to jdktools, toolbox and toolboxfx and finally released a new version of tilesfx...would you mind giving it another try with the latest release?

Works like a dream! Thank you for the lightning-fast turnaround!

Great 👍🏻