Closed pcuriel closed 10 months ago
Hey, @pcuriel.
I'm not getting errors when running the command below without changing the Maven plugin:
mvn clean test -Dtest="ContextIntegrationTest"
Is this how you're building and running the class?
Closed due to inactivity.
Sorry, I did not get notified about your responses.
Yes. I'm installing the oauth-authorization-server with:
mvn clean install
And after that, running keycloak-custom-providers as you say (also tried running via the IDE).
mvn clean test -Dtest="ContextIntegrationTest"
And unless I replace spring-boot-maven-plugin with maven-jar-plugin in oauth-authorization-server as I detail in my first post, the result is the following:
on project keycloak-custom-providers: Compilation failure: Compilation failure:
[ERROR] .../src/test/java/com/baeldung/auth/provider/user/ContextIntegrationTest.java:[26,25] cannot find symbol
[ERROR] symbol: class AuthorizationServerApp
[ERROR] location: package com.baeldung.auth
Hi,
I've come across an issue with the oauth-rest/keycloak-custom-providers project.
When trying to run ContextIntegrationTest, which launches AuthorizationServerApp from oauth-authorization-server project, AuthorizationServerApp class is not actually found.
The reason for this is that oauth-authorization-server is packaged using spring-boot-maven-plugin:
However, changing it to maven-jar-plugin, everything works as expected:
It would be nice to point this out in the project readme and/or in the related article.