chocoteam / choco-solver

An open-source Java library for Constraint Programming
http://choco-solver.org/
BSD 4-Clause "Original" or "Old" License
690 stars 143 forks source link

[BUG] shaded plugin not correctly configured for `choco-parsers` #986

Closed cprudhom closed 1 year ago

cprudhom commented 1 year ago

Describe the bug Depending on choco-parsers in a maven-based projet with:

<dependency>
    <groupId>org.choco-solver</groupId>
    <artifactId>choco-parsers</artifactId>
    <version>4.10.11-SNAPSHOT</version>
</dependency>

requires also to declare its dependencies, which is not unexpected.

To Reproduce Create a new Maven-based project, declare the dependency to choco-parsers. Create a new class and declare an instance of Model. The object cannot be found.

Possible solution This is due to the shaded plugin configuration which is not correct. The configuration should set the createDependencyReducedPom option to false (see why here).

Environment (please complete the following information):