Repository navigation
Replies: 3 comments 9 replies
That looks like src and main are part of the packages - make sure your source paths are set correctly.
That is not the behavior I see. Please double-check that you have entered the command correct. |
|
I use IntelliJ IDEA, and I just start the Keycloak server in embedded mode --> class You can run the Debug mode for this server, and when you change something in the codebase, just rerun it. This is my XML settings for IDEA: <component name="ProjectRunConfigurationManager">
<configuration default="false" name="Keycloak" type="Application" factoryName="Application">
<option name="MAIN_CLASS_NAME" value="org.keycloak.Keycloak" />
<module name="keycloak-junit5" />
<option name="PROGRAM_PARAMETERS" value="start-dev" />
<option name="VM_PARAMETERS" value="-Djava.util.concurrent.ForkJoinPool.common.threadFactory=io.quarkus.bootstrap.forkjoin.QuarkusForkJoinWorkerThreadFactory" />
<extension name="coverage">
<pattern>
<option name="PATTERN" value="org.keycloak.*" />
<option name="ENABLED" value="true" />
</pattern>
</extension>
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component> |
|
Another contributor helped me in the conversation under a PR I submitted to update documentation (#45806). He suggested running the site from a built-from-source version from the command line with the --debug flag, then attaching the IntelliJ IDEA debugger to it. That appears to have worked, but doesn't seem to match the instructions in https://github.com/keycloak/keycloak/blob/main/quarkus/README.md. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am new to Keycloak and attempting to get debugging working. I am able to build the project and run it from the generated zip file, but debugging is not working for me, following the instructions at https://github.com/keycloak/keycloak/blob/main/quarkus/README.md#running-in-keycloak-development-mode.
When I attempt to run within an IDE, I get build errors and cannot continue. The IDE has hundreds to thousands of errors with red underlines. Eclipse reports:
Error: Could not find or load main class src.main.java.org.keycloak.Keycloak
Caused by: java.lang.ClassNotFoundException: src.main.java.org.keycloak.Keycloak
I have done the "first build" step as described in the readme.
When running the command line command '"../mvnw -f server/pom.xml compile quarkus:dev -Dkc.config.built=true -Dquarkus.args="start-dev"', I get an error "Unknown lifecycle phase ".config.built=true". You must specify a valid lifecycle phase or a goal[...]" Full text here: maven error text.txt
Are the instructions out of date? Is there some other step I am missing?
All reactions