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

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

cstamas commented on issue #197: SUREFIRE-1588 Patch (Java7)
URL: https://github.com/apache/maven-surefire/pull/197#issuecomment-435506871
 
 
   Btw, second look:
   
   SiblingAggregatorIT POMs are not using `it-parent`, so that IT is kinda 
fluke, it always tests with use Maven (3.6.0 it my case) Super-POM defined 
surefire, not the built one. So it will never pass on affected JDK.
   
   Surefire162CharsetProviderIT copied the jcharset into wrong repo, this is 
why it did not found the artifact in local repo: it copied it to 
`surefire-its/${env.HOME}/.m2/repository-oss/jcharset/jcharset/1.2.1/jcharset-1.2.1.jar`,
 like did not interpolate things. Yes, my settings.xml defines my local repo as 
`${env.HOME}/.m2/repository-oss`.
   
   and finally, the Surefire1535TestNGParallelSuitesIT failure you got, don't 
know what is it about, but: seems you are on Windows and you have local repo 
and maven workdir on different drive letters. With affected JDK and this kind 
of Windows setup this PR will not work. Unlike UN*X, Windows due drive letter 
will not be able to "relativise" paths like these.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> 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
>            Assignee: Tibor Digana
>            Priority: Major
>             Fix For: 3.0.0-M1
>
>
> 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