Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] Maven Build Error in Eclipse

You are building with Java 17, not Java 8.

On Wed, Apr 12, 2023 at 6:46 AM Gilberto de Melo <gilbertogdemelo@xxxxxxxxxxx> wrote:
Hello Kevin,

I have tried both ways:
  • Clonning/importing the repo through Eclipsed API

  • and manually downloading from the Github it and importing it to Eclipse
They both returned the same error though.

Yes I got the latest commit branch.


I'm getting from --version this:

[1mApache Maven 3.8.7 (b89d5959fcde851dcb1c8946a785a163f14e1e29) [m

Maven home: C:\Users\GilbertodeMelo\OneDrive - northvolt.com\199 - Automation Programs Installation\eclipse\!Programs\milo-master\EMBEDDED

Java version: 17.0.6, vendor: Eclipse Adoptium, runtime: C:\Users\GilbertodeMelo\OneDrive - northvolt.com\199 - Automation Programs Installation\eclipse\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_17.0.6.v20230204-1729\jre

Default locale: en_GB, platform encoding: UTF-8

OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"


Best regards,
Gilberto Melo
m: +46 733987151


De: milo-dev <milo-dev-bounces@xxxxxxxxxxx> em nome de Kevin Herron <kevinherron@xxxxxxxxx>
Enviado: quarta-feira, 12 de abril de 2023 15:18
Para: milo developer discussions <milo-dev@xxxxxxxxxxx>
Assunto: Re: [milo-dev] Maven Build Error in Eclipse
 
What is the output of running `mvn --version`? Are you on the latest commit of the master branch?

It seems that one of the tests in `CertificateValidationUtilTest` is failing for you, but I'm not sure why. It passes on my machine as well as in the CI builds.

On Wed, Apr 12, 2023 at 6:05 AM Gilberto de Melo <gilbertogdemelo@xxxxxxxxxxx> wrote:
Hi,

After building the project using mvn clean install  in JDK8 I'm getting an error and I'm stuck now.

I hope you can shed some light on what to do, thanks.

[main] INFO org.eclipse.milo.opcua.stack.core.security.DefaultTrustListManagerTest - using C:\Users\GILBER~1\AppData\Local\Temp\securityTest

[milo-nonce-util-secure-random] INFO org.eclipse.milo.opcua.stack.core.util.NonceUtil - SecureRandom seeded in 0ms.

[main] WARN org.eclipse.milo.opcua.stack.core.util.validation.CertificateValidationUtil - Failed to add custom revocation checker; REVOCATION_LIST_FOUND check will be ignored.

[main] WARN org.eclipse.milo.opcua.stack.core.util.validation.CertificateValidationUtil - Failed to add custom revocation checker; REVOCATION_LIST_FOUND check will be ignored.

[ [1;31mERROR [m] [1;31mTests [0;1mrun: [0;1m194 [m, [1;31mFailures: [0;1;31m1 [m, Errors: 0, Skipped: 0, Time elapsed: 6.359 s [1;31m <<< FAILURE! [m - in [1mTestSuite [m

[ [1;31mERROR [m] org.eclipse.milo.opcua.stack.core.util.validation.CertificateValidationUtilTest.testBuildAndValidate_LeafIntermediateSigned_Revoked  Time elapsed: 0.06 s  <<< FAILURE!

java.lang.AssertionError: expected [StatusCode{name=Bad_CertificateRevoked, value=0x801D0000, quality=bad}] but found [StatusCode{name=Bad_CertificateIssuerRevocationUnknown, value=0x801C0000, quality=bad}]

at org.eclipse.milo.opcua.stack.core.util.validation.CertificateValidationUtilTest.testBuildAndValidate_LeafIntermediateSigned_Revoked(CertificateValidationUtilTest.java:232)


[ [1;34mINFO [m]

[ [1;34mINFO [m] Results:

[ [1;34mINFO [m]

[ [1;31mERROR [m] [1;31mFailures: [m

[ [1;31mERROR [m] [1;31m  CertificateValidationUtilTest.testBuildAndValidate_LeafIntermediateSigned_Revoked:232 expected [StatusCode{name=Bad_CertificateRevoked, value=0x801D0000, quality=bad}] but found [StatusCode{name=Bad_CertificateIssuerRevocationUnknown, value=0x801C0000, quality=bad}] [m

[ [1;34mINFO [m]

[ [1;31mERROR [m] [1;31mTests run: 194, Failures: 1, Errors: 0, Skipped: 0 [m

[ [1;34mINFO [m]

[ [1;34mINFO [m] [1m------------------------------------------------------------------------ [m

[ [1;34mINFO [m] [1mReactor Summary for Eclipse Milo - OPC UA (IEC 62541) 0.6.10-SNAPSHOT: [m

[ [1;34mINFO [m]

[ [1;34mINFO [m] Eclipse Milo Build Tools ........................... [1;32mSUCCESS [m [  1.450 s]

[ [1;34mINFO [m] Eclipse Milo - OPC UA (IEC 62541) .................. [1;32mSUCCESS [m [  1.383 s]

[ [1;34mINFO [m] opc-ua-stack ....................................... [1;32mSUCCESS [m [  0.744 s]

[ [1;34mINFO [m] stack-core ......................................... [1;31mFAILURE [m [ 32.240 s]

[ [1;34mINFO [m] stack-client ....................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] opc-ua-sdk ......................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] sdk-core ........................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] sdk-client ......................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] bsd-core ........................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] bsd-parser ......................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] dictionary-reader .................................. [1;33mSKIPPED [m

[ [1;34mINFO [m] stack-server ....................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] bsd-generator ...................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] sdk-server ......................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] dictionary-manager ................................. [1;33mSKIPPED [m

[ [1;34mINFO [m] milo-examples ...................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] server-examples .................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] client-examples .................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] bsd-parser-gson .................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] stack-tests ........................................ [1;33mSKIPPED [m

[ [1;34mINFO [m] sdk-tests .......................................... [1;33mSKIPPED [m

[ [1;34mINFO [m] integration-tests .................................. [1;33mSKIPPED [m

[ [1;34mINFO [m] [1m------------------------------------------------------------------------ [m

[ [1;34mINFO [m] [1;31mBUILD FAILURE [m

[ [1;34mINFO [m] [1m------------------------------------------------------------------------ [m

[ [1;34mINFO [m] Total time:  36.060 s

[ [1;34mINFO [m] Finished at: 2023-04-12T14:38:39+02:00

[ [1;34mINFO [m] [1m------------------------------------------------------------------------ [m

[ [1;31mERROR [m] Failed to execute goal [32morg.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test [m  [1m(default-test) [m on project [36mstack-core [m: [1;31mThere are test failures. [m

[ [1;31mERROR [m] [1;31m [m

[ [1;31mERROR [m] [1;31mPlease refer to C:\Users\GilbertodeMelo\OneDrive - northvolt.com\199 - Automation Programs Installation\eclipse\!Programs\milo-master\opc-ua-stack\stack-core\target\surefire-reports for the individual test results. [m

[ [1;31mERROR [m] [1;31mPlease refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [m

[ [1;31mERROR [m] -> [1m[Help 1] [m

[1;31morg.apache.maven.lifecycle.LifecycleExecutionException [m: [1;31mFailed to execute goal [32morg.apache.maven.plugins:maven-surefire-plugin:3.0.0-M4:test [m  [1m(default-test) [m on project [36mstack-core [m: [1;31mThere are test failures.


Please refer to C:\Users\GilbertodeMelo\OneDrive - northvolt.com\199 - Automation Programs Installation\eclipse\!Programs\milo-master\opc-ua-stack\stack-core\target\surefire-reports for the individual test results.

Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [m [m

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 ( [1mMojoExecutor.java:375 [m)

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute ( [1mMojoExecutor.java:351 [m)

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.execute ( [1mMojoExecutor.java:215 [m)

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.execute ( [1mMojoExecutor.java:171 [m)

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.execute ( [1mMojoExecutor.java:163 [m)

    [1mat [m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ( [1mLifecycleModuleBuilder.java:117 [m)

    [1mat [m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ( [1mLifecycleModuleBuilder.java:81 [m)

    [1mat [m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build ( [1mSingleThreadedBuilder.java:56 [m)

    [1mat [m org.apache.maven.lifecycle.internal.LifecycleStarter.execute ( [1mLifecycleStarter.java:128 [m)

    [1mat [m org.apache.maven.DefaultMaven.doExecute ( [1mDefaultMaven.java:298 [m)

    [1mat [m org.apache.maven.DefaultMaven.doExecute ( [1mDefaultMaven.java:192 [m)

    [1mat [m org.apache.maven.DefaultMaven.execute ( [1mDefaultMaven.java:105 [m)

    [1mat [m org.apache.maven.cli.MavenCli.execute ( [1mMavenCli.java:960 [m)

    [1mat [m org.apache.maven.cli.MavenCli.doMain ( [1mMavenCli.java:293 [m)

    [1mat [m org.apache.maven.cli.MavenCli.main ( [1mMavenCli.java:196 [m)

    [1mat [m jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 ( [1mNative Method [m)

    [1mat [m jdk.internal.reflect.NativeMethodAccessorImpl.invoke ( [1mNativeMethodAccessorImpl.java:77 [m)

    [1mat [m jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke ( [1mDelegatingMethodAccessorImpl.java:43 [m)

    [1mat [m java.lang.reflect.Method.invoke ( [1mMethod.java:568 [m)

    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced ( [1mLauncher.java:282 [m)

    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.launch ( [1mLauncher.java:225 [m)

    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode ( [1mLauncher.java:406 [m)

    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.main ( [1mLauncher.java:347 [m)

[1mCaused by [m: org.apache.maven.plugin.MojoFailureException: [1;31mThere are test failures.


Please refer to C:\Users\GilbertodeMelo\OneDrive - northvolt.com\199 - Automation Programs Installation\eclipse\!Programs\milo-master\opc-ua-stack\stack-core\target\surefire-reports for the individual test results.

Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [m

    [1mat [m org.apache.maven.plugin.surefire.SurefireHelper.throwException ( [1mSurefireHelper.java:271 [m)

    [1mat [m org.apache.maven.plugin.surefire.SurefireHelper.reportExecution ( [1mSurefireHelper.java:159 [m)

    [1mat [m org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary ( [1mSurefirePlugin.java:435 [m)

    [1mat [m org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked ( [1mAbstractSurefireMojo.java:1079 [m)

    [1mat [m org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute ( [1mAbstractSurefireMojo.java:889 [m)

    [1mat [m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo ( [1mDefaultBuildPluginManager.java:137 [m)

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 ( [1mMojoExecutor.java:370 [m)

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute ( [1mMojoExecutor.java:351 [m)

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.execute ( [1mMojoExecutor.java:215 [m)

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.execute ( [1mMojoExecutor.java:171 [m)

    [1mat [m org.apache.maven.lifecycle.internal.MojoExecutor.execute ( [1mMojoExecutor.java:163 [m)

    [1mat [m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ( [1mLifecycleModuleBuilder.java:117 [m)

    [1mat [m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject ( [1mLifecycleModuleBuilder.java:81 [m)

    [1mat [m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build ( [1mSingleThreadedBuilder.java:56 [m)

    [1mat [m org.apache.maven.lifecycle.internal.LifecycleStarter.execute ( [1mLifecycleStarter.java:128 [m)

    [1mat [m org.apache.maven.DefaultMaven.doExecute ( [1mDefaultMaven.java:298 [m)

    [1mat [m org.apache.maven.DefaultMaven.doExecute ( [1mDefaultMaven.java:192 [m)

    [1mat [m org.apache.maven.DefaultMaven.execute ( [1mDefaultMaven.java:105 [m)

    [1mat [m org.apache.maven.cli.MavenCli.execute ( [1mMavenCli.java:960 [m)

    [1mat [m org.apache.maven.cli.MavenCli.doMain ( [1mMavenCli.java:293 [m)

    [1mat [m org.apache.maven.cli.MavenCli.main ( [1mMavenCli.java:196 [m)

    [1mat [m jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 ( [1mNative Method [m)

    [1mat [m jdk.internal.reflect.NativeMethodAccessorImpl.invoke ( [1mNativeMethodAccessorImpl.java:77 [m)

    [1mat [m jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke ( [1mDelegatingMethodAccessorImpl.java:43 [m)

    [1mat [m java.lang.reflect.Method.invoke ( [1mMethod.java:568 [m)

    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced ( [1mLauncher.java:282 [m)

    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.launch ( [1mLauncher.java:225 [m)

    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode ( [1mLauncher.java:406 [m)

    [1mat [m org.codehaus.plexus.classworlds.launcher.Launcher.main ( [1mLauncher.java:347 [m)

[ [1;31mERROR [m]

[ [1;31mERROR [m]

[ [1;31mERROR [m] For more information about the errors and possible solutions, please read the following articles:

[ [1;31mERROR [m] [1m[Help 1] [m http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

[ [1;31mERROR [m]

[ [1;31mERROR [m] After correcting the problems, you can resume the build with the command

[ [1;31mERROR [m]   [1mmvn <args> -rf :stack-core



Gilberto Melo
m: +46 733987151
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev

Back to the top