Public bug reported:

maven used to work fine with this simple project until just recently (~2
weeks ago),

$ ls
pom.xml  src
$ cat src/main/java/com/canonical/testapp/ 
package com.canonical.testapp;

 * Hello world!
public class App 
    public static void main( String[] args )
        System.out.println( "Hello World!" );
ubuntu@snapcraft-bionic-dev:~/t/my-app$ cat 
package com.canonical.testapp;

import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;

 * 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=""; 

Now it fails,
$ mvn package
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by$ReflectUtils$1 
(file:/usr/share/maven/lib/guice.jar) to method 
WARNING: Please consider reporting this to the maintainers of$ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal 
reflective access operations
WARNING: All illegal access operations will be denied in a future release
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building my-app 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading from central:
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.315 s
[INFO] Finished at: 2018-04-16T13:20:58Z
[INFO] Final Memory: 7M/34M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of 
its dependencies could not be resolved: Failed to read artifact descriptor for 
org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer 
artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to 
central ( java.lang.RuntimeException: 
Unexpected error: the 
trustAnchors parameter must be non-empty -> [Help 1]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1]

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: maven 3.5.2-2
ProcVersionSignature: User Name 4.15.0-10.11+surface-generic 4.15.2
Uname: Linux 4.15.0-10-generic x86_64
ApportVersion: 2.20.9-0ubuntu4
Architecture: amd64
Date: Mon Apr 16 13:17:30 2018
PackageArchitecture: all
 PATH=(custom, no user)
SourcePackage: maven
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: maven (Ubuntu)
     Importance: Undecided
         Status: New

** Tags: amd64 apport-bug bionic uec-images

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  java.lang.RuntimeException: Unexpected error: the trustAnchors
  parameter must be non-empty

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to