Hmmm.
OK, :-( I read the README, and it says I only need JDK 8,9 and 11
installed.
With JAVA_HOME pointing to JDK 11, I tried
mvn clean compile --toolchains .github/workflows/.toolchains.xml
I get the following errors:
-
[*ERROR*] Misconfigured toolchain.
*org.apache.maven.toolchain.MisconfiguredToolchainException*: *Non-existing
JDK home configuration at
/Users/lrhodes/dev/git/Apache/datasketches-memory2/${env.JAVA10_HOME}*
-
[*ERROR*] Misconfigured toolchain.
*org.apache.maven.toolchain.MisconfiguredToolchainException*: *Non-existing
JDK home configuration at
/Users/lrhodes/dev/git/Apache/datasketches-memory2/${env.JAVA12_HOME}*
I think it is telling me I need 10 and 12 installed too.
So I temporarily removed 10 and 12 from the matrix test (I don't have those
installed),
and I removed 10 and 12 from the toolchain.
Now it gives me this error:
-
[*ERROR*] Failed to execute goal
org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce
*(enforce-banned-dependencies)* on project datasketches-memory-tests:
*Execution enforce-banned-dependencies of goal *
*org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce failed:
org.apache.maven.shared.dependency.graph.DependencyGraphBuilderException:
Could not resolve following dependencies:
[org.apache.datasketches:datasketches-memory-java8-tests:jar:tests:2.0.0-SNAPSHOT
(test)]*:
Could not resolve dependencies for project
org.apache.datasketches:datasketches-memory-tests:jar:2.0.0-SNAPSHOT:
org.apache.datasketches:datasketches-memory-java8-tests:jar:tests:2.0.0-SNAPSHOT
was not found in
https://repository.apache.org/content/groups/snapshots/org/apache/datasketches/
during a previous attempt. This failure was cached in the local
repository and resolution is not reattempted until the update interval of
apache.snapshots has elapsed or updates are forced
Hmm. It should not be trying to locate the 2.0.0-SNAPSHOT from Apache
unless it can't find it locally in my .m2. But I can't create it in .m2
unless I do an mvn install; and before I can do a maven install, I need to
successfully compile. I'm stuck in a do-loop.
Next I tried removing all 9+ versions from both the toolchain and the
matrix. I get the same error.
Lee.
On Fri, Jul 9, 2021 at 12:02 PM leerho <[email protected]> wrote:
> David,
> After the merge of PR#131 and doing a new clone of :
> Setting JAVA_HOME to JDK8
>
> -
>
> *mvn clean compile successful compile of java 8, but fails on java 9 *
>
> *Setting JAVA_HOME to JDK11*
>
> -
> *mvn clean compile *
>
> *Reactor Summary for datasketches-memory-root 2.0.0-SNAPSHOT:*
> -
>
> * [INFO] datasketches-memory-root ........................... SUCCESS [
> 0.912 s] [INFO] datasketches-memory-java8 ..........................
> SUCCESS [ 1.322 s] [INFO] datasketches-memory-java8-tests
> .................... SUCCESS [ 0.087 s] [INFO]
> datasketches-memory-java9
> .......................... SUCCESS [ 0.602 s] [INFO]
> datasketches-memory-java9-tests .................... SUCCESS [ 0.191 s]
> [INFO] datasketches-memory-java11 ......................... SUCCESS [
> 0.701 s] [INFO] datasketches-memory ................................
> SUCCESS [ 0.182 s] [INFO] datasketches-memory-tests
> .......................... FAILURE [ 1.201 s]*
> -
>
> [*ERROR*] Failed to execute goal
> org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce
> *(enforce-banned-dependencies)* on project datasketches-memory-tests:
>
>
>
>
> *Execution enforce-banned-dependencies of goal
> org.apache.maven.plugins:maven-enforcer-plugin:3.0.0-M3:enforce failed:
>
> org.apache.maven.shared.dependency.graph.DependencyGraphBuilderException:
> Could not resolve following dependencies:
>
> [org.apache.datasketches:datasketches-memory-java8-tests:jar:tests:2.0.0-SNAPSHOT
> (test)]*:
> Could not resolve dependencies for project
> org.apache.datasketches:datasketches-memory-tests:jar:2.0.0-SNAPSHOT:
> Could
> not find artifact
>
> org.apache.datasketches:datasketches-memory-java8-tests:jar:tests:2.0.0-SNAPSHOT
> in apache.snapshots (
>
> https://repository.apache.org/content/groups/snapshots/org/apache/datasketches/
> )
>
>
> I'm not sure how to resolve this. I'm wondering if I am missing a
> toolchain in my environment.
>
> Lee.
>
>