java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
maven (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
maven used to work fine with this simple project until just recently (~2 weeks ago),
$ ls
pom.xml src
$ cat src/main/
package com.canonical.
/**
* Hello world!
*
*/
public class App
{
public static void main( String[] args )
{
}
}
ubuntu@
package com.canonical.
import junit.framework
import junit.framework
import junit.framework
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigorous Test :-)
*/
public void testApp()
{
assertTrue( false );
}
}
$ cat pom.xml
<project xmlns="http://
xsi:schemaLoc
<modelVersion
<groupId>
<artifactId>
<packaging>
<version>
<name>
<url>http://
<dependencies>
<dependency>
<
<
<
<
</dependency>
</dependencies>
</project>
Now it fails,
$ mvn package
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.google.
WARNING: Please consider reporting this to the maintainers of com.google.
WARNING: Use --illegal-
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO]
[INFO] -------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] -------
Downloading from central: https:/
[INFO] -------
[INFO] BUILD FAILURE
[INFO] -------
[INFO] Total time: 1.315 s
[INFO] Finished at: 2018-04-
[INFO] Final Memory: 7M/34M
[INFO] -------
[ERROR] Plugin org.apache.
[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://
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: maven 3.5.2-2
ProcVersionSign
Uname: Linux 4.15.0-10-generic x86_64
ApportVersion: 2.20.9-0ubuntu4
Architecture: amd64
Date: Mon Apr 16 13:17:30 2018
PackageArchitec
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: maven
UpgradeStatus: No upgrade log present (probably fresh install)
I wonder if this is a duplicate of bug #1743139. If you run maven with -Djavax. net.ssl. trustStorePassw ord=changeit, does that successfully work around the problem?