Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Target Definition and HTTP-AUTH

Yes. Add 'id' attribute to <repository/> .target file element to tell
Tycho credentials from which <server> settings.xml element should be
used to access the repository.

--
Regards,
Igor

On 12-02-06 10:19 AM, Mirko Swillus wrote:
Hej,

my target definition points to a p2-Repository behind an HTTP-AUTH, and
Tycho 0.13 throws the stack trace below ("Authentication failed"). Is
there a possibility to configure the credentials for these
p2-repositories somewhere?

Thanks in advance,
Mirko Swillus

PS: In plain maven we just define the accounts for the protected maven
repositories within the <servers>-node in mavens settings.xml.

Stacktrace of 'mvn clean package':

[INFO] Scanning for projects...
[INFO] Resolving target platform for project MavenProject:
com.test.rcp:commons:4.0.0.qualifier @
C:\Users\test\workspaces\commonsPluginTycho\Commons Plug-in\pom.xml
06.02.2012 15:26:30
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
06.02.2012 15:26:30 org.apache.commons.httpclient.HttpMethodDirector
processWWWAuthChallenge
INFO: No credentials available for BASIC 'Sonatype Nexus Repository
Manager'@repository.local:8443
06.02.2012 15:26:30
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
06.02.2012 15:26:30 org.apache.commons.httpclient.HttpMethodDirector
processWWWAuthChallenge
INFO: No credentials available for BASIC 'Sonatype Nexus Repository
Manager'@repository.local:8443
06.02.2012 15:26:30
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
06.02.2012 15:26:30 org.apache.commons.httpclient.HttpMethodDirector
processWWWAuthChallenge
INFO: No credentials available for BASIC 'Sonatype Nexus Repository
Manager'@repository.local:8443
06.02.2012 15:26:30
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
06.02.2012 15:26:30 org.apache.commons.httpclient.HttpMethodDirector
processWWWAuthChallenge
INFO: No credentials available for BASIC 'Sonatype Nexus Repository
Manager'@repository.local:8443
06.02.2012 15:26:30
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
06.02.2012 15:26:30 org.apache.commons.httpclient.HttpMethodDirector
processWWWAuthChallenge
INFO: No credentials available for BASIC 'Sonatype Nexus Repository
Manager'@repository.local:8443
06.02.2012 15:26:30
org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
INFO: basic authentication scheme selected
06.02.2012 15:26:30 org.apache.commons.httpclient.HttpMethodDirector
processWWWAuthChallenge
INFO: No credentials available for BASIC 'Sonatype Nexus Repository
Manager'@repository.local:8443
[ERROR] Internal error: java.lang.RuntimeException: Failed to resolve
target definition C:\Users\test\workspaces\commonsPluginTycho\Commons
Plug-in\indigo.target: Failed to load metadata repository from location
https://repository.local:8443/nexus/content/repositories/test_snapshots/.meta/p2/:
Authentication failed for
https://repository.local:8443/nexus/content/repositories/test_snapshots/.meta/p2/.
-> [Help 1]
org.apache.maven.InternalErrorException: Internal error:
java.lang.RuntimeException: Failed to resolve target definition
C:\Users\test\workspaces\commonsPluginTycho\Commons Plug-in\indigo.target
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:168)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)

at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)

at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: java.lang.RuntimeException: Failed to resolve target
definition C:\Users\test\workspaces\commonsPluginTycho\Commons
Plug-in\indigo.target
at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:336)

at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.resolvePlatform(P2TargetPlatformResolver.java:162)

at
org.eclipse.tycho.core.resolver.DefaultTychoDependencyResolver.resolveProject(DefaultTychoDependencyResolver.java:85)

at
org.eclipse.tycho.core.maven.TychoMavenLifecycleParticipant.afterProjectsRead(TychoMavenLifecycleParticipant.java:91)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:274)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
... 11 more
Caused by:
org.eclipse.tycho.p2.target.facade.TargetDefinitionResolutionException:
Failed to load metadata repository from location
https://repository.local:8443/nexus/content/repositories/test_snapshots/.meta/p2/

at
org.eclipse.tycho.p2.target.TargetDefinitionResolver$LoadedLocation.loadRepository(TargetDefinitionResolver.java:287)

at
org.eclipse.tycho.p2.target.TargetDefinitionResolver$LoadedLocation.<init>(TargetDefinitionResolver.java:272)

at
org.eclipse.tycho.p2.target.TargetDefinitionResolver$IUResolver.addLocation(TargetDefinitionResolver.java:108)

at
org.eclipse.tycho.p2.target.TargetDefinitionResolver.resolveContent(TargetDefinitionResolver.java:82)

at
org.eclipse.tycho.p2.impl.resolver.ResolutionContextImpl.addTargetDefinition(ResolutionContextImpl.java:343)

at
org.eclipse.tycho.p2.resolver.P2TargetPlatformResolver.doResolvePlatform(P2TargetPlatformResolver.java:331)

... 16 more
Caused by: org.eclipse.equinox.p2.core.ProvisionException:
Authentication failed for
https://repository.local:8443/nexus/content/repositories/test_snapshots/.meta/p2/.

at
org.eclipse.equinox.internal.p2.repository.CacheManager.createCache(CacheManager.java:140)

at
org.eclipse.tycho.p2.impl.resolver.TychoP2RepositoryCacheManager.createCache(TychoP2RepositoryCacheManager.java:49)

at
org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.getLocalFile(SimpleMetadataRepositoryFactory.java:66)

at
org.eclipse.equinox.internal.p2.metadata.repository.SimpleMetadataRepositoryFactory.load(SimpleMetadataRepositoryFactory.java:88)

at
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.factoryLoad(MetadataRepositoryManager.java:57)

at
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:749)

at
org.eclipse.equinox.internal.p2.repository.helpers.AbstractRepositoryManager.loadRepository(AbstractRepositoryManager.java:651)

at
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:96)

at
org.eclipse.equinox.internal.p2.metadata.repository.MetadataRepositoryManager.loadRepository(MetadataRepositoryManager.java:92)

at
org.eclipse.tycho.p2.target.TargetDefinitionResolver$LoadedLocation.loadRepository(TargetDefinitionResolver.java:285)

... 21 more
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the
-e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/InternalErrorException



____________________________________________________________________

[ M i r k o S w i l l u s ]

Software Development

test AG
Quality Management Systems | Bioinformatics
Moritzburger Weg 67 | 01109 Dresden
fon +49.351.8838 2813 | fax +49.351.8838 2809
e-mail: m.swillus@xxxxxxx | http://www.test.de

Sitz der Gesellschaft: Dresden | Amtsgericht Dresden HRB 19830
Vorstand: Dr. Wilhelm Zörgiebel | Dr. Frank Götz
Aufsichtsratsvorsitz: Prof. Dr. Gerhard P. Fettweis
____________________________________________________________________

The information in this email and any attachments is confidential and is
intended for the addressee only. If you are not the intended recipient,
please delete this message and any attachments and advise the sender by
return email.
_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/tycho-user


Back to the top