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.
Marek
On 19.6.2015 12:38, Stian Thorgersen wrote:
----- Original Message -----
> From: "John" <vainnkiitta(a)gmail.com>
> To: "Stian Thorgersen" <stian(a)redhat.com>
> Cc: keycloak-dev(a)lists.jboss.org
> Sent: Friday, 19 June, 2015 12:24:26 PM
> Subject: Re: [keycloak-dev] Error while building Keycloak 1.3.1 sources.
>
> Hi,
>
> 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.
>
> Thanks,
> John
>
>
> On Thu, Jun 18, 2015 at 8:03 PM, John <vainnkiitta(a)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:
>> "unix"
>>
>>
>>
>>
>> On Thu, Jun 18, 2015 at 7:39 PM, Stian Thorgersen <stian(a)redhat.com>
>> wrote:
>>> What are the exact commands you're running?
>>>
>>> ----- Original Message -----
>>>> From: "John" <vainnkiitta(a)gmail.com>
>>>> To: keycloak-dev(a)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]
>>>> ------------------------------------------------------------------------
>>>> [INFO] BUILD FAILURE
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [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-con...
>>>> [INFO]
>>>> ------------------------------------------------------------------------
>>>> [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
>>>> jboss-earlyaccess-repository
>>>> (
http://maven.repository.redhat.com/earlyaccess/all/) -> [Help 1]
>>>>
>>>> Any help appreciated.
>>>>
>>>> Thanks,
>>>> John
>>>> _______________________________________________
>>>> keycloak-dev mailing list
>>>> keycloak-dev(a)lists.jboss.org
>>>>
https://lists.jboss.org/mailman/listinfo/keycloak-dev
>>>>
_______________________________________________
keycloak-dev mailing list
keycloak-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/keycloak-dev