<archetype> <groupId>org.alfresco.maven.archetype</groupId> <artifactId>alfresco-platform-jar-archetype</artifactId> <version>3.0.0-beta-5</version> <repository> https://maven.alfresco.com/nexus/content/groups/public </repository> <description> Sample project with full support for lifecycle and rapid development of Platform/Repository JARs and AMPs (Alfresco Module Packages) </description> </archetype>
How the shell prompt could get the latest version of archetype while the "official" still on 3.0.0-beta-5 ?
The "official" aka released archetype is actually on 3.0.1 right now - you can see that on Maven Central. What you are getting in Eclipse seem to be only the development version. Note that the released versions will always come from Maven Central, while the development versions come from https://artifacts.alfresco.com (or https://nexus.alfresco.com - one of these is just an alias/CNAME). The difference between Eclipse and shell seems to be the configuration of Maven itself. In Eclipse you might have explicitely set the Alfresco Nexus as the source for archetypes, while the shell will by default include Maven Central in the lookup (unless you have overriden that via command line arguments).