[
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?
|
I don't know. I don't use archetypes myself and have not looked at this
part of m2e codebase for very long time.
As a side note, m2e-dev is a better place to ask development-related
questions, so please ask any further questions there.
--
Regards,
Igor
On 12-08-07 8:14 AM, Ricardo Gladwell wrote:
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...