Closed eclipse-modisco-bot closed 3 days ago
By Ed Willink on Oct 10, 2022 17:27
At least Tycho 2.4.0 is needed to support the SHA algorithm.
But using Tycho 2.4.0,2.5.0,2.6.0 non-test plugins are built by
maven-surefire-plugin:3.0.0-M5:test (default-test)
which was not a problem for QVTo, but for MoDisco extra phases run
[INFO] \ [INFO] --- tycho-compiler-plugin:2.5.0:testCompile (default-testCompile) @ org.eclipse.modisco.facet.util.swt ---\ [INFO] \ [INFO] --- maven-surefire-plugin:3.0.0-M5:test (default-test) @ org.eclipse.modisco.facet.util.swt ---\ [INFO] \ [INFO] -------------------------------------------------------\ [INFO] T E S T S\ [INFO] -------------------------------------------------------\ [ERROR] org/junit/runner/notification/RunNotifier
/org.eclipse.modisco.facet.util.swt/target/surefire-reports/2022-10-10T20-54-03_662.dumpstream
contains
Boot Manifest-JAR contains absolute paths in classpath 'E:\GIT\org.eclipse.modisco\org.eclipse.modisco.facet.util.swt\target\classes'\
Hint:
This hint is perhaps a red herring
/org.eclipse.modisco.facet.util.swt/target/surefire-reports/2022-10-10T20-54-03_662-jvmRun1.dump
is perhaps better
java.lang.NoClassDefFoundError: org/junit/runner/notification/RunNotifier\ at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)\ at java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)\ at java.base/java.lang.Class.getConstructor0(Class.java:3342)\ at java.base/java.lang.Class.getConstructor(Class.java:2151)\ at org.apache.maven.surefire.api.util.ReflectionUtils.getConstructor(ReflectionUtils.java:83)\ at org.apache.maven.surefire.api.util.ReflectionUtils.instantiateOneArg(ReflectionUtils.java:122)\ at org.apache.maven.surefire.booter.ForkedBooter.createProviderInCurrentClassloader(ForkedBooter.java:491)\ at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:428)\ at org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)\ at org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:562)\ at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:548)\ Caused by: java.lang.ClassNotFoundException: org.junit.runner.notification.RunNotifier\ at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)\ at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)\ at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) ... 11 more
Maybe the spurious run of a test needs a spurious dependency on org.junit
org.eclipse.modisco.facet.util.swt doesn't seem particularly special. No obvious test code or test dependencies to justify surefire. Perhaps it is the private API with x-friends that are test classes that cause trouble. No there are other ok plugins with x-friends tsts. Deleeting the fortuitously internal and dead TestUtils and SWTTestUtils solves the problem.
?? a "Test*" plugin triggers non-benign unwanted maven.surefire activity ??
Pushed to master.
| --- | --- | | Bugzilla Link | 580886 | | Status | RESOLVED FIXED | | Importance | P3 normal | | Reported | Oct 10, 2022 15:57 EDT | | Modified | Feb 05, 2023 03:16 EDT | | See also | 581436, 581490 | | Reporter | Ed Willink |
Description
Latest N-build fails:
[INFO] Fetching org.eclipse.core.resources_3.18.100.v20221004-0631.jar from https://download.eclipse.org/eclipse/updates/4.26-I-builds/I20221007-0230/plugins/ (892.3kB)\ [ERROR] An error occurred while transferring artifact canonical: osgi.bundle,org.eclipse.core.resources,3.18.100.v20221004-0631 from repository https://download.eclipse.org/eclipse/updates/4.26-I-builds/I20221007-0230:\ [ERROR] Problems downloading artifact: osgi.bundle,org.eclipse.core.resources,3.18.100.v20221004-0631.:\ [ERROR] Error reading signed content:/tmp/signatureFile4357751638017223816.jar\ [ERROR] Internal error: org.eclipse.tycho.repository.local.MirroringArtifactProvider$MirroringFailedException: Could not mirror artifact osgi.bundle,org.eclipse.core.resources,3.18.100.v20221004-0631 into the local Maven repository.See log output for details. An error occurred while processing the signatures for the file: /tmp/signatureFile4357751638017223816.jar: No algorithm found for 1.2.840.113549.1.1.12 -> [Help 1]