Open bsener opened 5 years ago
It should be fairly straightforward to build the latest release from source:
git clone https://github.com/cloudtrust/keycloak-wsfed.git
cd keycloak-wsfed
mvn clean package
what am I doing wrong?
git clone https://github.com/cloudtrust/keycloak-wsfed.git cd keycloak-wsfed mvn clean package
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.quest:keycloak-wsfed:6.0.1: Failure to find org.keycloak.testsuite:integration-arquillian-tests:pom:6.0.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 13
@
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.quest:keycloak-wsfed:6.0.1 (C:\Repos\keycloak-wsfed\pom.xml) has 1 error
[ERROR] Non-resolvable parent POM for com.quest:keycloak-wsfed:6.0.1: Failure to find org.keycloak.testsuite:integration-arquillian-tests:pom:6.0.1 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
Ahhh, it seems the project's been updated and now depends on keycloak test suite, among other things, so you are going to have to clone and build keycloak before building the extension:
git clone https://github.com/keycloak.git
cd keycloak
mvn clean install -DskipTests -Dmaven.repo.local=../local-repo
...
git clone https://github.com/cloudtrust/keycloak-wsfed.git
cd keycloak-wsfed
mvn clean package -Dmaven.repo.local=../local-repo
The packages will be deployed to ../local-repo. Once you have the binaries, you can safely delete ../local-repo directory.
@beatscholl Did you succeed building the project? Since latest changes, you will also have to build cloudtrust-parent.
git clone git@github.com:cloudtrust/cloudtrust-parent.git
cd cloudtrust-parent
mvn clean install
@fperot74 thanks for the explanations!
Back then I had chosen a different approach and got the whole thing working on KC 7.0
Now I need to update to KC 11.0.2 and I'm in the same situation - again.
I can build the jars with all the steps described here, but - as to be expected - the module is not working with KC 11.0.2 I'm not an experienced java developer and I seem to fail to understand what it needs to update this module to be compatible with KC 11.0.2
@vloup So my next questions will be:
We just evaluated the cost of upgrading to Keycloak 11.0.2... I guess we should upgrade it soon. This module won't be officially in our scope but as it seems it is quite easy to do, I think I'll upgrade it anyway.
@fperot74 that is wonderful news! do you have a timeframe in mind? (how soon is 'soon'?)
Where can we download jars for the new releases? Release page only have until version 3.4.3. If we can not download, is there any build instructions to build the latest jars?