Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Maven Integration (M2E) » Archetype download failure(New Maven Project wizard failing to download archetype from a basic auth protected repository)
icon4.gif  Archetype download failure [message #540773] Thu, 17 June 2010 10:49 Go to next message
Vasanth  is currently offline Vasanth Friend
Messages: 2
Registered: June 2010
Junior Member
I have a nexus internal repository setup protected with basic auth mechanism.

access to Maven central has been disabled using a proxy, and basic auth info has been provided to the proxy using a <server> tag in settings.xml.

Archetypes are being hosted in the nexus repo and i would like to create a project out of them.

when I use the new Maven Project wizard, after adding the remote catalog (nexus repo - nexus archetype plugin url), the archetypes are listed correctly. but once when i select a archetype and try to create a project out it, the following error is thrown:

eclipse.buildId=M20090917-0800
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product


Error
Thu Jun 17 12:23:59 GMT+05:30 2010
Error downloading archetype com.accenture.apps:ria1-application-archetype:1.0

java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:477)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:372)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 944)
at org.maven.ide.eclipse.wizards.MavenProjectWizardArchetypePar ametersPage.loadArchetypeDescriptor(MavenProjectWizardArchet ypeParametersPage.java:388)
at org.maven.ide.eclipse.wizards.MavenProjectWizardArchetypePar ametersPage.setVisible(MavenProjectWizardArchetypeParameters Page.java:531)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDi alog.java:1171)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog. java:1149)
at org.eclipse.jface.wizard.WizardDialog$5.run(WizardDialog.jav a:1138)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog. java:1136)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:830)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHa ndler(WizardHandler.java:253)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(Wizar dHandler.java:273)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:294)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(C ommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
Caused by: java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic dmFzYW50aC5rYW5uYW4ucmFqOns0TXdpMW1KSjJhd0htUndIWFRYVUVYNDNh dEFMck1oSHU2R2RY
RGRFK2pFPX0=
at sun.net.www.protocol.http.HttpURLConnection.checkMessageHead er(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.setAuthenticatio nProperty(Unknown Source)
at sun.net.www.protocol.http.BasicAuthentication.setHeaders(Unk nown Source)
at sun.net.www.protocol.http.HttpURLConnection.getServerAuthent ication(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(U nknown Source)
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.f illInputData(LightweightHttpWagon.java:83)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at org.apache.maven.artifact.manager.DefaultWagonManager.getRem oteFile(DefaultWagonManager.java:530)
at org.apache.maven.artifact.manager.DefaultWagonManager.getArt ifact(DefaultWagonManager.java:418)
at org.apache.maven.artifact.manager.DefaultWagonManager.getArt ifact(DefaultWagonManager.java:335)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.r esolve(DefaultArtifactResolver.java:193)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.r esolveAlways(DefaultArtifactResolver.java:95)
at org.apache.maven.archetype.downloader.DefaultDownloader.down load(DefaultDownloader.java:54)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactMa nager.getArchetypeFile(DefaultArchetypeArtifactManager.java: 88)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactMa nager.isFileSetArchetype(DefaultArchetypeArtifactManager.jav a:210)
at org.maven.ide.eclipse.wizards.MavenProjectWizardArchetypePar ametersPage$9.run(MavenProjectWizardArchetypeParametersPage. java:403)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464)
... 54 more
Root exception:
java.lang.IllegalArgumentException: Illegal character(s) in message header value: Basic dmFzYW50aC5rYW5uYW4ucmFqOns0TXdpMW1KSjJhd0htUndIWFRYVUVYNDNh dEFMck1oSHU2R2RY
RGRFK2pFPX0=

at sun.net.www.protocol.http.HttpURLConnection.checkMessageHead er(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.setAuthenticatio nProperty(Unknown Source)
at sun.net.www.protocol.http.BasicAuthentication.setHeaders(Unk nown Source)
at sun.net.www.protocol.http.HttpURLConnection.getServerAuthent ication(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(U nknown Source)
at org.apache.maven.wagon.providers.http.LightweightHttpWagon.f illInputData(LightweightHttpWagon.java:83)
at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:68)
at org.apache.maven.artifact.manager.DefaultWagonManager.getRem oteFile(DefaultWagonManager.java:530)
at org.apache.maven.artifact.manager.DefaultWagonManager.getArt ifact(DefaultWagonManager.java:418)
at org.apache.maven.artifact.manager.DefaultWagonManager.getArt ifact(DefaultWagonManager.java:335)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.r esolve(DefaultArtifactResolver.java:193)
at org.apache.maven.artifact.resolver.DefaultArtifactResolver.r esolveAlways(DefaultArtifactResolver.java:95)
at org.apache.maven.archetype.downloader.DefaultDownloader.down load(DefaultDownloader.java:54)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactMa nager.getArchetypeFile(DefaultArchetypeArtifactManager.java: 88)
at org.apache.maven.archetype.common.DefaultArchetypeArtifactMa nager.isFileSetArchetype(DefaultArchetypeArtifactManager.jav a:210)
at org.maven.ide.eclipse.wizards.MavenProjectWizardArchetypePar ametersPage$9.run(MavenProjectWizardArchetypeParametersPage. java:403)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:372)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java: 944)
at org.maven.ide.eclipse.wizards.MavenProjectWizardArchetypePar ametersPage.loadArchetypeDescriptor(MavenProjectWizardArchet ypeParametersPage.java:388)
at org.maven.ide.eclipse.wizards.MavenProjectWizardArchetypePar ametersPage.setVisible(MavenProjectWizardArchetypeParameters Page.java:531)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDi alog.java:1171)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog. java:1149)
at org.eclipse.jface.wizard.WizardDialog$5.run(WizardDialog.jav a:1138)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog. java:1136)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDial og.java:830)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDi alog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.jav a:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListe ner.java:228)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825 )
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHa ndler(WizardHandler.java:253)
at org.eclipse.ui.internal.handlers.WizardHandler.execute(Wizar dHandler.java:273)
at org.eclipse.ui.internal.handlers.HandlerProxy.execute(Handle rProxy.java:294)
at org.eclipse.core.commands.Command.executeWithChecks(Command. java:476)
at org.eclipse.core.commands.ParameterizedCommand.executeWithCh ecks(ParameterizedCommand.java:508)
at org.eclipse.ui.internal.handlers.HandlerService.executeComma nd(HandlerService.java:169)
at org.eclipse.ui.internal.handlers.SlaveHandlerService.execute Command(SlaveHandlerService.java:241)
at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(C ommandAction.java:157)
at org.eclipse.jface.action.ActionContributionItem.handleWidget Selection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(Act ionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEven t(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.ja va:3880)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3473)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2405)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2369)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:22 21)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:500)
at org.eclipse.core.databinding.observable.Realm.runWithDefault (Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Work bench.java:493)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:194)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:368)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java: 559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)

can anyone help me around this ????? thanks.
Re: Archetype download failure [message #541010 is a reply to message #540773] Fri, 18 June 2010 04:25 Go to previous message
Vasanth  is currently offline Vasanth Friend
Messages: 2
Registered: June 2010
Junior Member
i think it could be related to this issue

https://issues.sonatype.org/browse/NEXUS-2684
Previous Topic:Galileo - M2Eclipse Subversive Integration
Next Topic:Why does nexus take so much space in the workspace?
Goto Forum:
  


Current Time: Sun Nov 18 01:17:20 GMT 2018

Powered by FUDForum. Page generated in 0.02247 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top