[ 
https://issues.apache.org/jira/browse/SUREFIRE-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16671936#comment-16671936
 ] 

ASF GitHub Bot commented on SUREFIRE-1588:
------------------------------------------

GitHub user kemitix opened a pull request:

    https://github.com/apache/brooklyn-server/pull/1012

    Fix for SUREFIRE-1588

    Latest version of Java 1.8.0_191 enforces that Manifest classpath entries 
be relative.
    
    https://issues.apache.org/jira/browse/SUREFIRE-1588

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/kemitix/brooklyn-server fix-for-SUREFIRE-1588

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/brooklyn-server/pull/1012.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1012
    
----
commit 41890b9440593802e7a8c8612bdf7ffb185d83f3
Author: Paul Campbell <pcampbell@...>
Date:   2018-11-01T17:49:54Z

    Fix for SUREFIRE-1588
    
    Latest version of Java 1.8.0_191 enforces that Manifest classpath entries be
    relative.
    
    https://issues.apache.org/jira/browse/SUREFIRE-1588

----


> Surefire manifest jar classloading broken on latest Debian/Ubuntu Java8
> -----------------------------------------------------------------------
>
>                 Key: SUREFIRE-1588
>                 URL: https://issues.apache.org/jira/browse/SUREFIRE-1588
>             Project: Maven Surefire
>          Issue Type: Bug
>    Affects Versions: 2.22.1
>            Reporter: Cservenak, Tamas
>            Priority: Major
>
> See issue [1], but in short: latest Java8 on Ubuntu/Debian/Mint family of 
> Linuxes (am on Mint, Ubuntu derivative) contains this patch [3], and eforces 
> Manifest class path entries to be relative, as defined in [2].
> Hence, surefire booter and rest of Maven classpath, that uses absolute URLs 
> are simply discarded.
> Example error:
> {noformat}
> # Created at 2018-10-30T21:34:43.339
> Error: Could not find or load main class 
> org.apache.maven.surefire.booter.ForkedBooter{noformat}
> using the new property 
> {{-Djdk.net.URLClassPath.disableClassPathURLCheck=debug}} clearly shows that 
> all the entries from the surefire JAR are simply ignored.
>  
> [1] [https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911925]
> [2] 
> https://docs.oracle.com/javase/8/docs/technotes/guides/jar/jar.html#classpath
> [3] [https://hg.openjdk.java.net/jdk/jdk/rev/27135de165ac]



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to