Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Archetype Selection Using m2eclipse

By default m2e recognizes three sources of archetypes (a.k.a "Archetype
Catalogs").

1. archetypes defined in ${user.home}/.m2/archetype-catalog.xml, these
are referenced as "Default Local" drop-down choice in archetype selection UI

2. If I am not mistaken, "Internal" are archetypes defined in
archetype-common-2.0-alpha-4.jar!/archetype-catalog.xml (2.0-alpha-4 is
the archetyper version shipped with m2e).

3. archetypes that are listed in nexus/maven indexes of repositories
visible to m2e. I think nexus populates this information by scanning
deployed artifacts for hosted repositories and from remote indexes for
proxy repositories, but you need to double-check on nexus users mailing
list to be sure.

It is also possible to configure additional local and remote archetype
catalogs via workspace. Documentation [1] linked from the preference
page provides more information about archetype catalog format.

[1] http://maven.apache.org/archetype/maven-archetype-plugin/specification/archetype-catalog.html

--
Regards,
Igor


On 11-08-19 5:20 PM, sdoca sdoca wrote:
Hi,

Can anybody help me with understanding how archetypes are loaded by
m2eclipse? Is there a better forum that I should be asking?

Thanks!

----- Original Message -----
From: sdoca sdoca <sdoca@xxxxxxx>
Date: Tuesday, August 16, 2011 4:25 pm
Subject: [m2e-users] Archetype Selection Using m2eclipse
To: m2e-users@xxxxxxxxxxx

 > Hi,
 >
 > I would like to create a new Maven project in Eclipse using an
 > archetype using the New Maven Project wizard. At the
 > "Select an Archetype" step, I
 > have three catalogs to choose from: Nexus Indexer,
 > Internal and Default Local.
 > I don't understand where the content for these catalogs
 > should be
 > coming from. If I click on the "Configure" button, they
 > are all greyed
 > out and I can't modify them.
 >
 > Only the Internal catalog has any archetypes listed in
 > it. Where are these archetypes coming from? It's not
 > from my local
 > Maven repository because the group/artifacts are not in it (and
 > archetypes in the repo are not listed).
 >
 > Why is the Nexus Indexer list empty? I've read some
 > posts that the Nexus index needs to be updated, but not how to
 > do this.
 > Is this different than the repository indexes (which are
 > scheduled to
 > be updated daily).
 >
 > As you can see, I'm a little confused about the whole catalog
 > business and how Maven, m2eclipse and Nexus interact. Any
 > clarification
 > is most welcome!
 >
 > My setup:
 >
 > Eclipse: Helios Service Release 2 (Build id: 20110218-0911)
 > Apache Maven 3.0.3 m2eclipse: 0.12.1.20110112-1712 (set up to
 > use external Maven install) Sonatype Nexus™ Open Source Edition,
 > Version: 1.9.0.2
 >
 > My local Maven settings.xml looks like this:
 >
 > <settings>
 > <mirrors>
 > <mirror>
 > <!--This sends everything else to /public -->
 > <id>nexus</id>
 > <mirrorOf>*</mirrorOf>
 >
 > <url>http://myserver:8080/nexus/content/groups/public</url> </mirror>
 > </mirrors>
 > <profiles>
 > <profile>
 > <id>nexus</id>
 > <!--Enable snapshots for the built in central repo to
 > direct -->
 > <!--all requests to nexus via the mirror -->
 > <repositories>
 > <repository>
 > <id>central</id>
 > <url>http://central</url>
 > <releases><enabled>true</enabled></releases>
 > <snapshots><enabled>true</enabled></snapshots>
 > </repository>
 > </repositories>
 > <pluginRepositories>
 > <pluginRepository>
 > <id>central</id>
 > <url>http://central</url>
 > <releases><enabled>true</enabled></releases>
 > <snapshots><enabled>true</enabled></snapshots>
 > </pluginRepository>
 > </pluginRepositories>
 > </profile>
 > </profiles>
 > <activeProfiles>
 > <!--make the profile active all the time -->
 > <activeProfile>nexus
 >
 > <servers>
 > <server>
 > <id>my-snapshots</id>
 > <username>user</username>
 > <password>password</password>
 > </server>
 > <server>
 > <id>my-releases</id>
 > <username>user</username>
 > <password>password</password>
 > </server>
 > </servers>
 > </settings>
 >


_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top