[keycloak-user] mvn build of keycloak/6.0.1, with tests DISabled -- fails at tests ... missing flag? or bug?
PGNet Dev
pgnet.dev at gmail.com
Wed Aug 21 19:50:45 EDT 2019
On 8/21/19 3:39 PM, Bruno Oliveira wrote:
> Just try: mvn clean install -Pdistribution -DskipTests=true && cd
> distribution/server-dist/target.
>
> The distribution should be there.
Your suggestion
mvn clean install -Pdistribution -DskipTests=true
aka,
mvn --activate-profiles distribution -DskipTests=true clean install
, where
-DskipTests
*compiles* the tests, but does *not* run them,
FAILd here as well.
That, as well as my original usage,
mvn --activate-profiles distribution -Dmaven.test.skip=true clean install
, where
-Dmaven.test.skip=true
*neither* compiles, nor runs, tests,
_should_ BOTH work :-/
On a whim, noting in
cat .travis.yml
...
export MAVEN_OPTS="-Xms512m -Xmx1536m"
...
I explicitly set
export MAVEN_OPTS="-Xms1024m -Xmx3072m"
and ...
... bingo!
both forms work. in particular, with my orig
-Dmaven.test.skip=true
noting,
...
[INFO] --- maven-resources-plugin:3.1.0:testResources (default-testResources) @ keycloak-core ---
>> [INFO] Not copying test resources
[INFO]
[INFO] --- maven-compiler-plugin:3.7.0:testCompile (default-testCompile) @ keycloak-core ---
>> [INFO] Not compiling test sources
[INFO]
[INFO] --- maven-surefire-plugin:2.22.0:test (default-test) @ keycloak-core ---
>> [INFO] Tests are skipped.
[INFO]
...
If this^ is a build-time memory alloc issue, I would've expected to see some form of heap memory warning/error.
I don't see a thing.
Don't know if that's due to wrong log, loglevel, or a bug. And, no clue why tests start building, ignoring the -D*, when MAVEN_OPTS is unset / @ default.
in any case, sorted for now.
More information about the keycloak-user
mailing list