You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
8000
Repository navigation
Building custom SPIs: how do I manage my dependencies?
#19100
UPDATE: Ok! I just realized they are, in fact, added to the POM. Things are not magic, after all! I cross posted this from the Discourse and I was pretty tired when I wrote, so I did a couple of wrong searches on my POM, finding nothing. Thanks for the attention!
Hello, everyone!
It has been almost 10 years since last time I did any work with Java, so I’m a little rusty in some areas. One being automating the compilation and building process using Maven.
In Netbeans, if I need to add an external dependency, I can do that inside the IDE and look for my external library and add it there (e.g. ~/exemple/.m2/repository/org/keycloak/keycloak-server-spi/1.0-SNAPSHOT/keycloak-server-spi-1.0-SNAPSHOT.jar). Then, I add anything else that I need into my POM and everything is sorted out!
This manually added library, however, is not a Maven entry in my pom.xml, so there will be no look-up in repositories when I run my build task - if I got it right.
Inside IDE and in my personal workstation, this process works flawless, but I do not know how and where to put keycloak-server-spi-1.0-SNAPSHOT.jar in if I plan to automate this process when working with CI/CD.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
UPDATE: Ok! I just realized they are, in fact, added to the POM. Things are not magic, after all! I cross posted this from the Discourse and I was pretty tired when I wrote, so I did a couple of wrong searches on my POM, finding nothing. Thanks for the attention!
Hello, everyone!
It has been almost 10 years since last time I did any work with Java, so I’m a little rusty in some areas. One being automating the compilation and building process using Maven.
In Netbeans, if I need to add an external dependency, I can do that inside the IDE and look for my external library and add it there (e.g. ~/exemple/.m2/repository/org/keycloak/keycloak-server-spi/1.0-SNAPSHOT/keycloak-server-spi-1.0-SNAPSHOT.jar). Then, I add anything else that I need into my POM and everything is sorted out!
This manually added library, however, is not a Maven entry in my pom.xml, so there will be no look-up in repositories when I run my build task - if I got it right.
Inside IDE and in my personal workstation, this process works flawless, but I do not know how and where to put
keycloak-server-spi-1.0-SNAPSHOT.jarin if I plan to automate this process when working with CI/CD.Thank you in advance!
All reactions