Problem when rebooting keycloak with custom .jar

Hi,

I am using a custom .jar class of Token Exchange protocol on keycloak, the problem im facing is that when i drop the .jar in the /deployments folder while keycloak is running it charges correctly, but if i do the same while keycloak is stopped when i start Keycloak It charges the default configuration and not the custom one that i did for token exchange,

That menas that everytime I restart the server i need to manually deploy the .jar file. How can i change that?

Thaks in advance.