[keycloak-dev] "mvn install" fails on a fresh clone of Keycloak

Marek Posolda mposolda at redhat.com
Mon Oct 2 07:22:44 EDT 2017


On 02/10/17 12:44, carl-kristian.eriksen at telia.no wrote:
> The build works fine without the tests: mvn install -Dmaven.test.skip=true
>
> But when running with the tests: mvn install
> I get the following errors:
> Failed tests:
>    JaxrsFilterTest.testCors:285 expected:<200> but was:<403>
>    JaxrsFilterTest.testRelativeUriAndPublicKey:171 expected:<500> but was:<401>
> Tests in error:
>    JaxrsBasicAuthTest.testBasic:140 » ClientError HTTP 403 Forbidden
>    JaxrsFilterTest.testBasic:140 » ClientError HTTP 403 Forbidden
>    JaxrsFilterTest.testResourceRoleMappings:235 » ClientError HTTP 403 Forbidden
>
> Tests run: 462, Failures: 2, Errors: 3, Skipped: 35
>
> According to https://github.com/keycloak/keycloak/ this is supposed to work.
> Am I missing something here?
It's not supposed to work and I am not seeing "-Dmaven.test.skip=true" 
mentioned in that README. Anyway, I think this will work: mvn clean 
install -DskipTests=true

Marek
>
> Carl Kristian Eriksen
> _______________________________________________
> keycloak-dev mailing list
> keycloak-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/keycloak-dev




More information about the keycloak-dev mailing list