Hi Marek,

Even I am used to build with mvn clean install -DskipTests=true but this issue happen
only for first time build after extracting sources tarball and empty .m2/repository.
Once it is built successfully with mvn install, after that I can build with mvn clean install -DskipTests=true every next time.

For maven version surely I will create JIRA as this should mentioned somewhere because Ubuntu14.04 LTS has very old version of maven in repo than mvn_3.3.x

Thanks for response and happy to see LDAP mappers

On Fri, Jun 19, 2015 at 4:47 PM, Marek Posolda <mposolda@redhat.com> wrote:
Will it help if you use:
mvn clean install -DskipTests=true

instead of "maven.test.skip" ?

AFAIK the "skipTests" won't run the tests, but it will still build all test dependencies, so it should be fine. At least I am using it quite often and not seeing issues.

When "maven.test.skip" won't run the tests and won't build dependencies, which I understand that doesn't work as various modules have dependency on "keycloak-testsuite-integration" , which contains all the base test classes used in tests of other modules.


On 19.6.2015 12:38, Stian Thorgersen wrote:

----- Original Message -----
From: "John" <vainnkiitta@gmail.com>
To: "Stian Thorgersen" <stian@redhat.com>
Cc: keycloak-dev@lists.jboss.org
Sent: Friday, 19 June, 2015 12:24:26 PM
Subject: Re: [keycloak-dev] Error while building Keycloak 1.3.1 sources.


After spending hours finally manged to get this working.
There were two issue found.

1) For the first time run mvn install without skipping tests
"-Dmaven.test.skip=true"  Later on you may skip tests
That shouldn't be required - please create a jira and we'll fix it

2) To build distribution it needs maven version 3.3.3 else gives error
java.lang.ClassNotFoundException: org.eclipse.aether.RepositorySystem
We have a hacking on Keycloak doc [1], but it doesn't specify required maven version. We do require 3.3.x+. Please create a jira and we'll update this as well.

[1] https://github.com/keycloak/keycloak/blob/master/misc/HackingOnKeycloak.md

Even better it would be great if you sent PRs for these issues as well as the JIRAs ;)

Can we have documentation for building from sources.


On Thu, Jun 18, 2015 at 8:03 PM, John <vainnkiitta@gmail.com> wrote:

Using  mvn install -Dmaven.test.skip=true

My maven version
Apache Maven 3.0.5
Maven home: /usr/share/maven
Java version: 1.7.0_79, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-55-generic", arch: "amd64", family:

On Thu, Jun 18, 2015 at 7:39 PM, Stian Thorgersen <stian@redhat.com>
What are the exact commands you're running?

----- Original Message -----
From: "John" <vainnkiitta@gmail.com>
To: keycloak-dev@lists.jboss.org
Sent: Thursday, 18 June, 2015 3:47:13 PM
Subject: [keycloak-dev] Error while building Keycloak 1.3.1 sources.

Hi All,

I have downloaded source of keycloak 1.3.1 ver.

I am doing mvn install but getting following error.

[INFO] Total time: 45.121s
[INFO] Finished at: Thu Jun 18 19:02:12 IST 2015
[INFO] Final Memory: 215M/865Mhttps://github.com/keycloak/keycloak/tree/master/examples/js-console
[ERROR] Failed to execute goal on project
keycloak-testsuite-security-proxy: Could not resolve dependencies for
project org.keycloak:keycloak-testsuite-security-proxy:jar:1.3.1.Final:
Could not find artifact
org.keycloak:keycloak-testsuite-integration:jar:tests:1.3.1.Final in
(http://maven.repository.redhat.com/earlyaccess/all/) -> [Help 1]

Any help appreciated.

keycloak-dev mailing list

keycloak-dev mailing list