Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] How do I add a local archetypeCatalog extension?

Hi Igor

OK, I think I got this working as intended, I added the following to my
plugin.xml:


> <extension
>          point="org.eclipse.m2e.core.archetypeCatalogs">
>          <local
>                name="/android-archetype-catalog.xml"
>                description="Android"
>          >
>          </local>
>    </extension>

With android-archetype-catalog.xml placed in my Tycho Maven
src/main/resources root folder.

But when I try to load the Android catalog in the Maven create project
wizard Eclipse I get the following exception:

[WARNING] Error reading archetype catalog bundleentry://813.fwk758393764
org.apache.maven.wagon.UnsupportedProtocolException: Cannot find wagon
which supports the requested protocol: bundleentry
	at
org.apache.maven.repository.legacy.DefaultWagonManager.getWagon(DefaultWagonManager.java:768)
	at
org.apache.maven.repository.legacy.DefaultWagonManager.getWagon(DefaultWagonManager.java:747)
	at
org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.getArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:86)
	at
org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultArchetype.java:197)
	at org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory
$RemoteCatalogFactory.getArchetypeCatalog(ArchetypeCatalogFactory.java:177)
	at
org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizardArchetypePage.getAllArchetypes(MavenProjectWizardArchetypePage.java:519)
	at
org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizardArchetypePage.getArchetypesForCatalog(MavenProjectWizardArchetypePage.java:494)
	at
org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizardArchetypePage
$14.run(MavenProjectWizardArchetypePage.java:535)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
      role: org.apache.maven.wagon.Wagon
  roleHint: bundleentry
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:257)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
	at
org.apache.maven.repository.legacy.DefaultWagonManager.getWagon(DefaultWagonManager.java:764)
	... 8 more
Caused by: java.util.NoSuchElementException
	at org.sonatype.guice.bean.locators.LocatedBeans
$Itr.next(LocatedBeans.java:142)
	at org.sonatype.guice.bean.locators.LocatedBeans
$Itr.next(LocatedBeans.java:77)
	at org.sonatype.guice.plexus.locators.DefaultPlexusBeans
$Itr.next(DefaultPlexusBeans.java:60)
	at org.sonatype.guice.plexus.locators.DefaultPlexusBeans
$Itr.next(DefaultPlexusBeans.java:48)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
	... 10 more
[WARNING] Error reading archetype catalog bundleentry://813.fwk758393764
org.apache.maven.wagon.UnsupportedProtocolException: Cannot find wagon
which supports the requested protocol: bundleentry
	at
org.apache.maven.repository.legacy.DefaultWagonManager.getWagon(DefaultWagonManager.java:768)
	at
org.apache.maven.repository.legacy.DefaultWagonManager.getWagon(DefaultWagonManager.java:747)
	at
org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.getArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:86)
	at
org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultArchetype.java:197)
	at org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory
$RemoteCatalogFactory.getArchetypeCatalog(ArchetypeCatalogFactory.java:177)
	at
org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizardArchetypePage.getArchetypesForCatalog(MavenProjectWizardArchetypePage.java:497)
	at
org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizardArchetypePage
$14.run(MavenProjectWizardArchetypePage.java:535)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
      role: org.apache.maven.wagon.Wagon
  roleHint: bundleentry
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:257)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
	at
org.apache.maven.repository.legacy.DefaultWagonManager.getWagon(DefaultWagonManager.java:764)
	... 7 more
Caused by: java.util.NoSuchElementException
	at org.sonatype.guice.bean.locators.LocatedBeans
$Itr.next(LocatedBeans.java:142)
	at org.sonatype.guice.bean.locators.LocatedBeans
$Itr.next(LocatedBeans.java:77)
	at org.sonatype.guice.plexus.locators.DefaultPlexusBeans
$Itr.next(DefaultPlexusBeans.java:60)
	at org.sonatype.guice.plexus.locators.DefaultPlexusBeans
$Itr.next(DefaultPlexusBeans.java:48)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
	... 9 more
[WARNING] Error reading archetype catalog bundleentry://813.fwk758393764
org.apache.maven.wagon.UnsupportedProtocolException: Cannot find wagon
which supports the requested protocol: bundleentry
	at
org.apache.maven.repository.legacy.DefaultWagonManager.getWagon(DefaultWagonManager.java:768)
	at
org.apache.maven.repository.legacy.DefaultWagonManager.getWagon(DefaultWagonManager.java:747)
	at
org.apache.maven.archetype.source.RemoteCatalogArchetypeDataSource.getArchetypeCatalog(RemoteCatalogArchetypeDataSource.java:86)
	at
org.apache.maven.archetype.DefaultArchetype.getRemoteCatalog(DefaultArchetype.java:197)
	at org.eclipse.m2e.core.internal.archetype.ArchetypeCatalogFactory
$RemoteCatalogFactory.getArchetypeCatalog(ArchetypeCatalogFactory.java:177)
	at
org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizardArchetypePage.getArchetypesForCatalog(MavenProjectWizardArchetypePage.java:497)
	at
org.eclipse.m2e.core.ui.internal.wizards.MavenProjectWizardArchetypePage
$14.run(MavenProjectWizardArchetypePage.java:535)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException: java.util.NoSuchElementException
      role: org.apache.maven.wagon.Wagon
  roleHint: bundleentry
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:257)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:245)
	at
org.apache.maven.repository.legacy.DefaultWagonManager.getWagon(DefaultWagonManager.java:764)
	... 7 more
Caused by: java.util.NoSuchElementException
	at org.sonatype.guice.bean.locators.LocatedBeans
$Itr.next(LocatedBeans.java:142)
	at org.sonatype.guice.bean.locators.LocatedBeans
$Itr.next(LocatedBeans.java:77)
	at org.sonatype.guice.plexus.locators.DefaultPlexusBeans
$Itr.next(DefaultPlexusBeans.java:60)
	at org.sonatype.guice.plexus.locators.DefaultPlexusBeans
$Itr.next(DefaultPlexusBeans.java:48)
	at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:253)
	... 9 more


Any ideas what I'm doing wrong?

TIA...

-- 
Ricardo
Twitter: @rgladwell


On Tue, 2012-08-07 at 06:30 -0400, Igor Fedorenko wrote:
> Source code reference is the best I can offer
> 
> https://git.eclipse.org/c/m2e/m2e-core.git/tree/org.eclipse.m2e.core/src/org/eclipse/m2e/core/internal/ExtensionReader.java?id=releases/1.1/1.1.0.20120530-0009#n79
> 
> 
> --
> Regards,
> Igor
> 
> On 12-08-07 6:21 AM, Ricardo Gladwell wrote:
> > Hi Guys
> >
> > I'd like to add a local archetypeCatalog extension point to me m2e
> > extension plug-in, but can't find any documentation or code examples
> > about how to go about this.
> >
> > Could someone please point me in the right direction?
> >
> > TIA...
> >
> _______________________________________________
> m2e-users mailing list
> m2e-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/m2e-users



Back to the top