Authentication of injection site failed [message #1847024] |
Tue, 12 October 2021 13:03 |
Richard Groote Messages: 3 Registered: January 2021 |
Junior Member |
|
|
Hello,
We've defined an p2 repository on sonatype nexus and used the rcptt maven plugin to run our rcptt tests. This worked fine when the p2 repository could be accessed without credentials.
Now we've protected our p2 repository with username and password and the rcptt test are failing because the 'Authentication failed', see below.
Within the documentation, i can't find anything about authentication.
Does somebody have an idea how to supply the credentials within the injection part of the rcptt maven plugin.
Thanks already.
Kind regards,
Richard
------------------------------------------------------------------------------------
Maven configuration
------------------------------------------------------------------------------------
<build>
<plugins>
<plugin>
<groupId>org.eclipse.rcptt</groupId>
<artifactId>rcptt-maven-plugin</artifactId>
<version>2.3.0</version>
<extensions>true</extensions>
<configuration>
<aut>
<explicit>${autPath}</explicit>
<injections>
<injection>
<site>http://artifacts-...............</site>
<features>
<feature>com.acme.testhandlers</feature>
<feature>comn.acme.testhandlers.ui</feature>
<feature>com.acme.sqlhandlers</feature>
<feature>com.acme.sqlhandlers.ui</feature>
</features>
</injection>
</injections>
<args>
<arg>-nosplash</arg>
<arg>-consoleLog</arg>
<arg>-q7report</arg>
</args>
<vmArgs>
<vmArg>-Xms256m</vmArg>
<vmArg>-Xmx1024m</vmArg>
<vmArg>-Xss3m</vmArg>
<vmArg>-XX:+UseParallelGC</vmArg>
<vmArg>-XX:+UseParallelOldGC</vmArg>
<vmArg>-XX:+CMSClassUnloadingEnabled</vmArg>
<vmArg>-Dosgi.parentClassloader=app</vmArg>
<vmArg>-noverify</vmArg>
</vmArgs>
</aut>
<runner>
<explicit>${rcptt.runner}</explicit>
</runner>
<testOptions>
<execTimeout>9000</execTimeout>
<autStartupTimeout>300</autStartupTimeout>
<launchingKillAutOnConnectError>true</launchingKillAutOnConnectError>
<restartAUTOnFailure>false</restartAUTOnFailure>
</testOptions>
</configuration>
</plugin>
</plugins>
</build>
------------------------------------------------------------------------------------
Exception
------------------------------------------------------------------------------------
[artifact:mvn] [ERROR] org.eclipse.core.runtime.CoreException: Authentication failed for http://artifacts-.....................
[artifact:mvn] [ERROR] at org.eclipse.rcptt.runner.util.TargetPlatformChecker.initializeTargetPlatform(TargetPlatformChecker.java:108)
[artifact:mvn] [ERROR] at org.eclipse.rcptt.runner.util.TargetPlatformChecker.initAndCheckTargetPlatform(TargetPlatformChecker.java:68)
[artifact:mvn] [ERROR] at org.eclipse.rcptt.runner.HeadlessRunner.performCoolThings(HeadlessRunner.java:50)
[artifact:mvn] [ERROR] at org.eclipse.rcptt.runner.HeadlessRunnerApp.start(HeadlessRunnerApp.java:54)
[artifact:mvn] [ERROR] at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
[artifact:mvn] [ERROR] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
[artifact:mvn] [ERROR] at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
[artifact:mvn] [ERROR] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
[artifact:mvn] [ERROR] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
[artifact:mvn] [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[artifact:mvn] [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[artifact:mvn] [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[artifact:mvn] [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[artifact:mvn] [ERROR] at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
[artifact:mvn] [ERROR] at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
[artifact:mvn] [ERROR] at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
[artifact:mvn] [ERROR] at org.eclipse.equinox.launcher.Main.main(Main.java:1438)
[artifact:mvn] [INFO] Runner exit code is: 62
|
|
|
Powered by
FUDForum. Page generated in 0.03538 seconds