Stack traces from both failing tests look similar, specifically failing in

    at 
org.eclipse.aether.transport.http.HttpServer.addSslConnector(HttpServer.java:165)
    at 
org.eclipse.aether.transport.http.HttpServer.addSelfSignedSslConnector(HttpServer.java:143)

That seems to be thrown from here when the server starts up:

try {
httpsConnector.start();
} catch (Exception e) {
throw new IllegalStateException(e);
}

However, the real problem seems likely to be a few lines earlier:

if (needClientAuth) {
    ssl.setNeedClientAuth(true);
    ssl.setKeyStorePath(new
File("src/test/resources/ssl/server-store").getAbsolutePath());
    ssl.setKeyStorePassword("server-pwd");
    ssl.setTrustStorePath(new
File("src/test/resources/ssl/client-store").getAbsolutePath());
    ssl.setTrustStorePassword("client-pwd");
} else {
    ssl.setNeedClientAuth(false);
    ssl.setKeyStorePath(new
File("src/test/resources/ssl/server-store-selfsigned").getAbsolutePath());
    ssl.setKeyStorePassword("server-pwd");
}

Likely the issue is in the file src/test/resources/ssl/server-store-selfsigned


[ERROR] Tests run: 72, Failures: 0, Errors: 2, Skipped: 0, Time
elapsed: 2.415 s <<< FAILURE! - in
org.eclipse.aether.transport.http.HttpTransporterTest
[ERROR] 
org.eclipse.aether.transport.http.HttpTransporterTest.testGet_HTTPS_Insecure_SecurityMode
 Time elapsed: 0.015 s  <<< ERROR!
java.lang.IllegalStateException: java.io.IOException: Invalid keystore format
    at 
org.eclipse.aether.transport.http.HttpServer.addSslConnector(HttpServer.java:165)
    at 
org.eclipse.aether.transport.http.HttpServer.addSelfSignedSslConnector(HttpServer.java:143)
    at 
org.eclipse.aether.transport.http.HttpTransporterTest.testGet_HTTPS_Insecure_SecurityMode(HttpTransporterTest.java:416)

On Wed, Apr 26, 2023 at 10:45 PM Elliotte Rusty Harold
<elh...@ibiblio.org> wrote:
>
> here's my environment:
>
> ~/maven-fluido-skin$ mvn -version
> Apache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29)
> Maven home: /opt/java/apache-maven-3.8.7
> Java version: 1.8.0_172, vendor: Oracle Corporation, runtime:
> /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"
> (base) ~/maven-fluido-skin$ java -version
> java version "1.8.0_172"
> Java(TM) SE Runtime Environment (build 1.8.0_172-b11)
> Java HotSpot(TM) 64-Bit Server VM (build 25.172-b11, mixed mode)
>
> On Wed, Apr 26, 2023 at 6:05 PM Slawomir Jaranowski
> <s.jaranow...@gmail.com> wrote:
> >
> > +1
> >
> > Build ok on:
> >
> > Apache Maven 3.9.1 (2e178502fcdbffc201671fb2537d0cb4b4cc58f8)
> > Java version: 17.0.7, vendor: Homebrew, runtime:
> > /usr/local/Cellar/openjdk@17/17.0.7/libexec/openjdk.jdk/Contents/Home
> > Default locale: en_GB, platform encoding: UTF-8
> > OS name: "mac os x", version: "12.6.3", arch: "x86_64", family: "mac"
> >
> >
> > śr., 26 kwi 2023 o 12:21 Tamás Cservenák <ta...@cservenak.net> napisał(a):
> >
> > > Howdy,
> > >
> > > We solved 2 issues (1 bug + 1 doco task):
> > >
> > > https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12320628&version=12353151
> > >
> > > There are still some issues in JIRA:
> > > https://issues.apache.org/jira/projects/MRESOLVER/issues
> > >
> > > Staging repository:
> > > https://repository.apache.org/content/repositories/maven-1923/
> > >
> > > Source release SHA512:
> > >
> > > 133ee4abe463fefe05ecf2da3b1cf9ad94192d6a1744041e4e4664fa447118e84a3a017351e9ae6c629598ea8eb81802dd34f71c5cdd99a46e311cd3c277512c
> > >
> > > Staging site:
> > > https://maven.apache.org/resolver-archives/resolver-LATEST/
> > >
> > > Guide to testing staged releases:
> > > https://maven.apache.org/guides/development/guide-testing-releases.html
> > >
> > > Vote open for 72 hours.
> > >
> > > [ ] +1
> > > [ ] +0
> > > [ ] -1
> > >
> >
> >
> > --
> > Sławomir Jaranowski
>
>
>
> --
> Elliotte Rusty Harold
> elh...@ibiblio.org



-- 
Elliotte Rusty Harold
elh...@ibiblio.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to