Problem
I would like to create a RESTEasy client that uses the belgif-rest-problem-java-ee library, and then reuse that library in other existing web service projects where belgif-rest-problem-java-ee is not currently used.
The issue is that the library does not contain only client-side classes — it also includes server-side annotated classes, which are automatically activated and cause conflicts.
Suggested fix
Split the library into two separate JARs, each containing the appropriate classes:
belgif-rest-problem-java-ee-client: contains only client-side classes
belgif-rest-problem-java-ee-server: contains only server-side classes
Environment
WildFly: 26.1.3.Final
Resteasy: 4.7.7.Final
Library: belgif-rest-problem-java-ee (latest release as of now)
Java: 17