Open lelvisl opened 4 years ago
As already mentioned by #35 , you need to build cloudtrust-parent
first since it is not deployed on maven central.
As @fperot74 told in the other issue, do run:
git clone git@github.com:cloudtrust/cloudtrust-parent.git
cd cloudtrust-parent
mvn clean install
Then you should be able to have this repo compile. Feel free to come back to us if this does not solve your issue.
I'll add this in the README.md
@vloup as you see in first post, i can't build cloudtrust-parent
to.
[FATAL] Non-resolvable parent POM for io.cloudtrust:kc-cloudtrust-testsuite:8.0.1: Could not find artifact org.keycloak.testsuite:integration-arquillian-tests:pom:8.0.1 in central (https://repo.maven.apache.org/maven2) and 'parent.relativePath' points at no local POM @ line 5, column 13
Ok... Not all modules from Keycloak are built by default...
Build Keycloak with mvn install -Pconsole-ui-tests -DskipTests -Dbrowser=chrome
(hmm... that's what I have in my notes but actually, I'm not sure it make sens to specify -Dbrowser as tests are skipped)
Hi! Another problems with deps:
1) kc-cloudtrust-module needs maven-pmd-plugin
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
</plugin>
It's here https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/ Version of plugin is not specified in pom.xml. Maven trying to get latest module.
In https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-pmd-plugin/maven-metadata.xml latest is
<latest>3.13.0</latest>
but there isnt't 3.13.0 there
2) kc-cloudtrust-testsuite module needs io.cloudtrust:kc-cloudtrust-testsuite:8.0.1 I found only one maven repo with it https://repository.jboss.org/nexus/content/repositories/ea/org/keycloak/testsuite/integration-arquillian-tests/
All versions are empty
- kc-cloudtrust-module needs maven-pmd-plugin Version of plugin is not specified in pom.xml. Maven trying to get latest module.
Actually, version is specified in line 30 :
- kc-cloudtrust-testsuite module needs io.cloudtrust:kc-cloudtrust-testsuite:8.0.1 I found only one maven repo with it https://repository.jboss.org/nexus/content/repositories/ea/org/keycloak/testsuite/integration-arquillian-tests/
kc-cloudtrust-testsuite needs itself ? I guess there was a confusion when copying artifacts names and you wanted to tell that kc-cloudtrust-testsuite needs org.keycloak.testsuite:integration-arquillian-tests. For that point, please check my previous comment.
Actually, version is specified in line 30 :
3.12.0</version.pmd.plugin>
it's my mistake. Version of maven-pmd-plugin is not set in cloudtrust-common/pom.xml, not in kc-cloudtrust-module
Sorry but I don't see any problem with PMD plugin. It works fine with maven 3.6.0... If you run the command to build Keycloak with console-ui-tests, I should be fine
i disabled <!-- <module>keycloak-wsfed-tests</module> -->
in keycloak-wsfed and <!-- <module>kc-cloudtrust-testsuite</module> -->
in cloudtrust-parent and build jar.
but i don't think that it is good decision.
As previously suggested, did you try to first build the missing module from keycloak? (org.keycloak.testsuite:integration-arquillian-tests:pom)
You have to get Keycloak (8.0.1) then build with mvn install -Pconsole-ui-tests -DskipTests
(Keycloak team doesn't publish this module in its processes)
If built correctly, you should be able to build keycloak-wsfed without any change
If you want to build without tests, you can build keycloak-wsfed with mvn clean install -DskipTests
. You don't need to update the pom.xml (they are used to ensure that unit tests are passing but you're right: for code already merged on master, tests are supposed to have been already successfully executed in our CI)
I had tried -DskipTests
, but
/tmp/keycloak-wsfed::$ mvn clean install -DskipTests
[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for io.cloudtrust:keycloak-wsfed-tests:8.0.1: Failure to find io.cloudtrust:kc-cloudtrust-testsuite:pom:8.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 no local POM @ line 5, column 13
Tomorrow i'll try to build module from keycloak.
how i can build jar?