Re: New build problem, Java 17

2022-04-06 Thread Phil H
So I just compiled and executed the simplest HTTP program I could find


import java.io.IOException;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

public class ReadWebPage {

public static void main(String[] args) throws IOException, 
InterruptedException {

HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("http://www.slackware.com/;))
.GET() // GET is default
.build();

HttpResponse response = client.send(request,
HttpResponse.BodyHandlers.ofString());

System.out.println(response.body());
}
}

And it has the same issue

Exception in thread "main" java.net.ConnectException: Network is unreachable
at 
java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:561)
at 
java.net.http/jdk.internal.net.http.HttpClientFacade.send(HttpClientFacade.java:119)
at ReadWebPage.main(ReadWebPage.java:17)
Caused by: java.net.ConnectException: Network is unreachable
at 
java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:971)
at 
java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:179)
at 
java.net.http/jdk.internal.net.http.Http1Exchange.sendHeadersAsync(Http1Exchange.java:237)
at 
java.net.http/jdk.internal.net.http.Exchange.lambda$responseAsyncImpl0$8(Exchange.java:435)
at 
java.net.http/jdk.internal.net.http.Exchange.checkFor407(Exchange.java:367)
at 
java.net.http/jdk.internal.net.http.Exchange.lambda$responseAsyncImpl0$9(Exchange.java:439)
at 
java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930)
at 
java.base/java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:946)
at 
java.base/java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2266)
at 
java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:439)
at 
java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:343)
at 
java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:335)
at 
java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:347)
at 
java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsyncImpl$7(MultiExchange.java:384)
at 
java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:930)
at 
java.base/java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:946)
at 
java.base/java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2266)
at 
java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:374)
at 
java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:293)
at 
java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1072)
at 
java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
at 
java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1705)
at 
java.net.http/jdk.internal.net.http.HttpClientImpl$DelegatingExecutor.execute(HttpClientImpl.java:153)
at 
java.base/java.util.concurrent.CompletableFuture.completeAsync(CompletableFuture.java:2591)
at 
java.net.http/jdk.internal.net.http.MultiExchange.responseAsync(MultiExchange.java:246)
at 
java.net.http/jdk.internal.net.http.HttpClientImpl.sendAsync(HttpClientImpl.java:632)
at 
java.net.http/jdk.internal.net.http.HttpClientImpl.send(HttpClientImpl.java:540)
... 2 more
Caused by: java.net.SocketException: Network is unreachable
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:476)
at java.base/sun.nio.ch.Net.connect(Net.java:468)
at 
java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:694)
at 
java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:165)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at 
java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:167)
... 27 more


> On 7 Apr 2022, at 11:40 am, David Handermann  
> wrote:
> 
> Phil,
> 
> Thanks for the additional details, Maven 3.8.1 is recent, so it should work.
> 
> The stack trace include the following specific problem:
> 
> - java.net.SocketException: Network is unreachable (connect failed)
> 
> This indicates a low-level network connectivity problem. Although you
> provided the curl command results, is it possible that your network
> 

Re: New build problem, Java 17

2022-04-06 Thread Phil H
No issue running the openssl command.  I’m just on my personal laptop 
connecting via my hotspotted phone - I’ve never had any sort of network type 
issues like this before.  That’s why I wondered whether it was somehow 
maven/java related.

Makes no sense to me!

> On 7 Apr 2022, at 11:40 am, David Handermann  
> wrote:
> 
> openssl s_client -host repo1.maven.org  -port 443



Re: New build problem, Java 17

2022-04-06 Thread David Handermann
Phil,

Thanks for the additional details, Maven 3.8.1 is recent, so it should work.

The stack trace include the following specific problem:

- java.net.SocketException: Network is unreachable (connect failed)

This indicates a low-level network connectivity problem. Although you
provided the curl command results, is it possible that your network
connection requires a proxy server?

Running the following OpenSSL command will attempt a socket connection with
TLS to the Maven repository server, to check connectivity:

openssl s_client -host repo1.maven.org -port 443

Regards,
David Handermann

On Wed, Apr 6, 2022 at 8:31 PM Phil H  wrote:

> Sure thing David,
>
> phil@Phils-MacBook-Pro nifi % mvn -X -T C2.0 clean install
> -Pinclude-grpc
> Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
> Maven home: /usr/local/Cellar/maven/3.8.1/libexec
> Java version: 11.0.12, vendor: Oracle Corporation, runtime:
> /Library/Java/JavaVirtualMachines/jdk-11.0.12.jdk/Contents/Home
> Default locale: en_AU, platform encoding: UTF-8
> OS name: "mac os x", version: "11.5", arch: "x86_64", family: "mac"
> [DEBUG] Created new class realm maven.api
> [DEBUG] Importing foreign packages into class realm maven.api
> [DEBUG]   Imported: javax.annotation.* < plexus.core
> [DEBUG]   Imported: javax.annotation.security.* < plexus.core
> [DEBUG]   Imported: javax.enterprise.inject.* < plexus.core
> [DEBUG]   Imported: javax.enterprise.util.* < plexus.core
> [DEBUG]   Imported: javax.inject.* < plexus.core
> [DEBUG]   Imported: org.apache.maven.* < plexus.core
> [DEBUG]   Imported: org.apache.maven.artifact < plexus.core
> [DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
> [DEBUG]   Imported: org.apache.maven.cli < plexus.core
> [DEBUG]   Imported: org.apache.maven.configuration < plexus.core
> [DEBUG]   Imported: org.apache.maven.exception < plexus.core
> [DEBUG]   Imported: org.apache.maven.execution < plexus.core
> [DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core
> [DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
> [DEBUG]   Imported: org.apache.maven.model < plexus.core
> [DEBUG]   Imported: org.apache.maven.monitor < plexus.core
> [DEBUG]   Imported: org.apache.maven.plugin < plexus.core
> [DEBUG]   Imported: org.apache.maven.profiles < plexus.core
> [DEBUG]   Imported: org.apache.maven.project < plexus.core
> [DEBUG]   Imported: org.apache.maven.reporting < plexus.core
> [DEBUG]   Imported: org.apache.maven.repository < plexus.core
> [DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
> [DEBUG]   Imported: org.apache.maven.settings < plexus.core
> [DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
> [DEBUG]   Imported: org.apache.maven.usability < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
> [DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
> [DEBUG]   Imported: org.codehaus.classworlds < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser <
> plexus.core
> [DEBUG]   Imported:
> org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
> [DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer <
> plexus.core
> [DEBUG]   Imported: org.eclipse.aether.* < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.collection < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.graph < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.impl < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.installation < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.repository < plexus.core
> [DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core
> 

Re: New build problem, Java 17

2022-04-06 Thread Phil H
Sure thing David,

phil@Phils-MacBook-Pro nifi % mvn -X -T C2.0 clean install -Pinclude-grpc   
  
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: /usr/local/Cellar/maven/3.8.1/libexec
Java version: 11.0.12, vendor: Oracle Corporation, runtime: 
/Library/Java/JavaVirtualMachines/jdk-11.0.12.jdk/Contents/Home
Default locale: en_AU, platform encoding: UTF-8
OS name: "mac os x", version: "11.5", arch: "x86_64", family: "mac"
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG]   Imported: javax.annotation.* < plexus.core
[DEBUG]   Imported: javax.annotation.security.* < plexus.core
[DEBUG]   Imported: javax.enterprise.inject.* < plexus.core
[DEBUG]   Imported: javax.enterprise.util.* < plexus.core
[DEBUG]   Imported: javax.inject.* < plexus.core
[DEBUG]   Imported: org.apache.maven.* < plexus.core
[DEBUG]   Imported: org.apache.maven.artifact < plexus.core
[DEBUG]   Imported: org.apache.maven.classrealm < plexus.core
[DEBUG]   Imported: org.apache.maven.cli < plexus.core
[DEBUG]   Imported: org.apache.maven.configuration < plexus.core
[DEBUG]   Imported: org.apache.maven.exception < plexus.core
[DEBUG]   Imported: org.apache.maven.execution < plexus.core
[DEBUG]   Imported: org.apache.maven.execution.scope < plexus.core
[DEBUG]   Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG]   Imported: org.apache.maven.model < plexus.core
[DEBUG]   Imported: org.apache.maven.monitor < plexus.core
[DEBUG]   Imported: org.apache.maven.plugin < plexus.core
[DEBUG]   Imported: org.apache.maven.profiles < plexus.core
[DEBUG]   Imported: org.apache.maven.project < plexus.core
[DEBUG]   Imported: org.apache.maven.reporting < plexus.core
[DEBUG]   Imported: org.apache.maven.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG]   Imported: org.apache.maven.settings < plexus.core
[DEBUG]   Imported: org.apache.maven.toolchain < plexus.core
[DEBUG]   Imported: org.apache.maven.usability < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG]   Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG]   Imported: org.codehaus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.* < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.component < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.container < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.context < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < 
plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < 
plexus.core
[DEBUG]   Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < 
plexus.core
[DEBUG]   Imported: org.eclipse.aether.* < plexus.core
[DEBUG]   Imported: org.eclipse.aether.artifact < plexus.core
[DEBUG]   Imported: org.eclipse.aether.collection < plexus.core
[DEBUG]   Imported: org.eclipse.aether.deployment < plexus.core
[DEBUG]   Imported: org.eclipse.aether.graph < plexus.core
[DEBUG]   Imported: org.eclipse.aether.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.installation < plexus.core
[DEBUG]   Imported: org.eclipse.aether.internal.impl < plexus.core
[DEBUG]   Imported: org.eclipse.aether.metadata < plexus.core
[DEBUG]   Imported: org.eclipse.aether.repository < plexus.core
[DEBUG]   Imported: org.eclipse.aether.resolution < plexus.core
[DEBUG]   Imported: org.eclipse.aether.spi < plexus.core
[DEBUG]   Imported: org.eclipse.aether.transfer < plexus.core
[DEBUG]   Imported: org.eclipse.aether.version < plexus.core
[DEBUG]   Imported: org.fusesource.jansi.* < plexus.core
[DEBUG]   Imported: org.slf4j.* < plexus.core
[DEBUG]   Imported: org.slf4j.event.* < plexus.core
[DEBUG]   Imported: org.slf4j.helpers.* < plexus.core
[DEBUG]   Imported: org.slf4j.spi.* < plexus.core
[DEBUG] Populating class realm maven.api
[INFO] Error stacktraces are turned on.
[DEBUG] Message scheme: color
[DEBUG] Message styles: debug info warning error success failure strong mojo 
project
[DEBUG] Reading global settings from 
/usr/local/Cellar/maven/3.8.1/libexec/conf/settings.xml
[DEBUG] Reading user 

Re: New build problem, Java 17

2022-04-06 Thread David Handermann
Phil,

Can you provide the version of Maven you are using? Running Maven with the
-X argument for debug will generate a lot of logging information, but it
might point to the POM resolution problem.

Regards,
David Handermann

On Wed, Apr 6, 2022 at 8:13 PM Phil H  wrote:

> I reverted back to AZUL JDK 11, and then in turn to Oracle JDK 11, and all
> had the same issue.
>
> So I’m assuming it’s either a OSX thing, or some sort of weird maven issue?
>
> > On 7 Apr 2022, at 10:02 am, Mike Thomsen  wrote:
> >
> >> However it’s not a network issue because…
> >
> > Could be something funky with how Java 17's TLS APIs are working on your
> setup.
> >
> > Java 8 and Java 11 are your best bets for now anyway. Java 17 support
> > is still in the early stages and isn't a preferred JDK/JRE.
> >
> > On Wed, Apr 6, 2022 at 7:00 PM Phil H  wrote:
> >>
> >> So I upgraded to the Azul JDK 17.  New repo, following the same
> instructions as before.
> >>
> >> phil@Phils-MacBook-Pro nifi % mvn -T C2.0 clean install
> -Pinclude-grpc
> >> [INFO] Scanning for projects...
> >> Downloading from central:
> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom
> >> Downloading from apache-repo:
> https://repository.apache.org/content/repositories/releases/org/apache/apache/25/apache-25.pom
> >> Downloading from Shibboleth:
> https://build.shibboleth.net/nexus/content/repositories/releases/org/apache/apache/25/apache-25.pom
> >> [ERROR] [ERROR] Some problems were encountered while processing the
> POMs:
> >> [FATAL] Non-resolvable parent POM for
> org.apache.nifi:nifi:1.17.0-SNAPSHOT: Could not transfer artifact
> org.apache:apache:pom:25 from/to central (https://repo1.maven.org/maven2):
> transfer failed for
> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom and
> 'parent.relativePath' points at no local POM @ line 14, column 13
> >> @
> >> [ERROR] The build could not read 1 project -> [Help 1]
> >> [ERROR]
> >> [ERROR]   The project org.apache.nifi:nifi:1.17.0-SNAPSHOT
> (/Users/phil/nifi/pom.xml) has 1 error
> >> [ERROR] Non-resolvable parent POM for
> org.apache.nifi:nifi:1.17.0-SNAPSHOT: Could not transfer artifact
> org.apache:apache:pom:25 from/to central (https://repo1.maven.org/maven2):
> transfer failed for
> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom and
> 'parent.relativePath' points at no local POM @ line 14, column 13: Network
> is unreachable -> [Help 2]
> >> [ERROR]
> >> [ERROR] To see the full stack trace of the errors, re-run Maven
> with the -e switch.
> >> [ERROR] Re-run Maven using the -X switch to enable full debug
> logging.
> >> [ERROR]
> >> [ERROR] For more information about the errors and possible
> solutions, please read the following articles:
> >> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> >> [ERROR] [Help 2]
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> >>
> >> However it’s not a network issue because…
> >>
> >> phil@Phils-MacBook-Pro nifi % curl
> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom
> >> 
> >>
> >> 

Re: New build problem, Java 17

2022-04-06 Thread Phil H
I reverted back to AZUL JDK 11, and then in turn to Oracle JDK 11, and all had 
the same issue.

So I’m assuming it’s either a OSX thing, or some sort of weird maven issue?

> On 7 Apr 2022, at 10:02 am, Mike Thomsen  wrote:
> 
>> However it’s not a network issue because…
> 
> Could be something funky with how Java 17's TLS APIs are working on your 
> setup.
> 
> Java 8 and Java 11 are your best bets for now anyway. Java 17 support
> is still in the early stages and isn't a preferred JDK/JRE.
> 
> On Wed, Apr 6, 2022 at 7:00 PM Phil H  wrote:
>> 
>> So I upgraded to the Azul JDK 17.  New repo, following the same instructions 
>> as before.
>> 
>> phil@Phils-MacBook-Pro nifi % mvn -T C2.0 clean install -Pinclude-grpc
>> [INFO] Scanning for projects...
>> Downloading from central: 
>> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom
>> Downloading from apache-repo: 
>> https://repository.apache.org/content/repositories/releases/org/apache/apache/25/apache-25.pom
>> Downloading from Shibboleth: 
>> https://build.shibboleth.net/nexus/content/repositories/releases/org/apache/apache/25/apache-25.pom
>> [ERROR] [ERROR] Some problems were encountered while processing the POMs:
>> [FATAL] Non-resolvable parent POM for 
>> org.apache.nifi:nifi:1.17.0-SNAPSHOT: Could not transfer artifact 
>> org.apache:apache:pom:25 from/to central (https://repo1.maven.org/maven2): 
>> transfer failed for 
>> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom and 
>> 'parent.relativePath' points at no local POM @ line 14, column 13
>> @
>> [ERROR] The build could not read 1 project -> [Help 1]
>> [ERROR]
>> [ERROR]   The project org.apache.nifi:nifi:1.17.0-SNAPSHOT 
>> (/Users/phil/nifi/pom.xml) has 1 error
>> [ERROR] Non-resolvable parent POM for 
>> org.apache.nifi:nifi:1.17.0-SNAPSHOT: Could not transfer artifact 
>> org.apache:apache:pom:25 from/to central (https://repo1.maven.org/maven2): 
>> transfer failed for 
>> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom and 
>> 'parent.relativePath' points at no local POM @ line 14, column 13: Network 
>> is unreachable -> [Help 2]
>> [ERROR]
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the 
>> -e switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions, 
>> please read the following articles:
>> [ERROR] [Help 1] 
>> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
>> [ERROR] [Help 2] 
>> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>> 
>> However it’s not a network issue because…
>> 
>> phil@Phils-MacBook-Pro nifi % curl 
>> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom
>> 
>> 
>> 

Re: New build problem, Java 17

2022-04-06 Thread Mike Thomsen
Related. You said you're used to building in offline environments. You
were also using a really old build Java 8 early on in the previous
thread. If you're building on a commercial or government network, you
might want to throw the JDK and Maven on a personal laptop and do a
build there. Commercial and government setups are often filled with
security stuff that messes with Maven.

On Wed, Apr 6, 2022 at 8:02 PM Mike Thomsen  wrote:
>
> > However it’s not a network issue because…
>
> Could be something funky with how Java 17's TLS APIs are working on your 
> setup.
>
> Java 8 and Java 11 are your best bets for now anyway. Java 17 support
> is still in the early stages and isn't a preferred JDK/JRE.
>
> On Wed, Apr 6, 2022 at 7:00 PM Phil H  wrote:
> >
> > So I upgraded to the Azul JDK 17.  New repo, following the same 
> > instructions as before.
> >
> >  phil@Phils-MacBook-Pro nifi % mvn -T C2.0 clean install -Pinclude-grpc
> >  [INFO] Scanning for projects...
> >  Downloading from central: 
> > https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom
> >  Downloading from apache-repo: 
> > https://repository.apache.org/content/repositories/releases/org/apache/apache/25/apache-25.pom
> >  Downloading from Shibboleth: 
> > https://build.shibboleth.net/nexus/content/repositories/releases/org/apache/apache/25/apache-25.pom
> >  [ERROR] [ERROR] Some problems were encountered while processing the 
> > POMs:
> >  [FATAL] Non-resolvable parent POM for 
> > org.apache.nifi:nifi:1.17.0-SNAPSHOT: Could not transfer artifact 
> > org.apache:apache:pom:25 from/to central (https://repo1.maven.org/maven2): 
> > transfer failed for 
> > https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom and 
> > 'parent.relativePath' points at no local POM @ line 14, column 13
> >  @
> >  [ERROR] The build could not read 1 project -> [Help 1]
> >  [ERROR]
> >  [ERROR]   The project org.apache.nifi:nifi:1.17.0-SNAPSHOT 
> > (/Users/phil/nifi/pom.xml) has 1 error
> >  [ERROR] Non-resolvable parent POM for 
> > org.apache.nifi:nifi:1.17.0-SNAPSHOT: Could not transfer artifact 
> > org.apache:apache:pom:25 from/to central (https://repo1.maven.org/maven2): 
> > transfer failed for 
> > https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom and 
> > 'parent.relativePath' points at no local POM @ line 14, column 13: Network 
> > is unreachable -> [Help 2]
> >  [ERROR]
> >  [ERROR] To see the full stack trace of the errors, re-run Maven with 
> > the -e switch.
> >  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> >  [ERROR]
> >  [ERROR] For more information about the errors and possible solutions, 
> > please read the following articles:
> >  [ERROR] [Help 1] 
> > http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
> >  [ERROR] [Help 2] 
> > http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
> >
> > However it’s not a network issue because…
> >
> >  phil@Phils-MacBook-Pro nifi % curl 
> > https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom
> >  
> >
> >  

Re: New build problem, Java 17

2022-04-06 Thread Mike Thomsen
> However it’s not a network issue because…

Could be something funky with how Java 17's TLS APIs are working on your setup.

Java 8 and Java 11 are your best bets for now anyway. Java 17 support
is still in the early stages and isn't a preferred JDK/JRE.

On Wed, Apr 6, 2022 at 7:00 PM Phil H  wrote:
>
> So I upgraded to the Azul JDK 17.  New repo, following the same instructions 
> as before.
>
>  phil@Phils-MacBook-Pro nifi % mvn -T C2.0 clean install -Pinclude-grpc
>  [INFO] Scanning for projects...
>  Downloading from central: 
> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom
>  Downloading from apache-repo: 
> https://repository.apache.org/content/repositories/releases/org/apache/apache/25/apache-25.pom
>  Downloading from Shibboleth: 
> https://build.shibboleth.net/nexus/content/repositories/releases/org/apache/apache/25/apache-25.pom
>  [ERROR] [ERROR] Some problems were encountered while processing the POMs:
>  [FATAL] Non-resolvable parent POM for 
> org.apache.nifi:nifi:1.17.0-SNAPSHOT: Could not transfer artifact 
> org.apache:apache:pom:25 from/to central (https://repo1.maven.org/maven2): 
> transfer failed for 
> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom and 
> 'parent.relativePath' points at no local POM @ line 14, column 13
>  @
>  [ERROR] The build could not read 1 project -> [Help 1]
>  [ERROR]
>  [ERROR]   The project org.apache.nifi:nifi:1.17.0-SNAPSHOT 
> (/Users/phil/nifi/pom.xml) has 1 error
>  [ERROR] Non-resolvable parent POM for 
> org.apache.nifi:nifi:1.17.0-SNAPSHOT: Could not transfer artifact 
> org.apache:apache:pom:25 from/to central (https://repo1.maven.org/maven2): 
> transfer failed for 
> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom and 
> 'parent.relativePath' points at no local POM @ line 14, column 13: Network is 
> unreachable -> [Help 2]
>  [ERROR]
>  [ERROR] To see the full stack trace of the errors, re-run Maven with the 
> -e switch.
>  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>  [ERROR]
>  [ERROR] For more information about the errors and possible solutions, 
> please read the following articles:
>  [ERROR] [Help 1] 
> http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
>  [ERROR] [Help 2] 
> http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
>
> However it’s not a network issue because…
>
>  phil@Phils-MacBook-Pro nifi % curl 
> https://repo1.maven.org/maven2/org/apache/apache/25/apache-25.pom
>  
>
>