cancel
Showing results for 
Search instead for 
Did you mean: 

Got different alfresco archetype version (shell prompt vs IDE)

billydekid
Star Contributor
Star Contributor

Hi,

Just curious on alfresco archetype version when creating new alfresco applications/extensions.

For example, I want to create a new alfresco-platform-jar-archetype extension.

If I created from shell prompt, the options version permission are: 3.0.0 and 3.0.1

But, when I create new project (I use eclipse IDE), it will get to single/default latest version 3.0.0-beta-5. As we know it comes from archetype catalog at https://nexus.alfresco.com/nexus/content/groups/public/archetype-catalog.xml 

<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 ?

Thanks,

[bayu]

1 ACCEPTED ANSWER

Sorry, not careful with the current list on Eclipse.

The "Maven Central" is already in the archetype catalog drop-down list with following URL

http://repo.maven.apache.org/maven2/archetype-catalog.xml 

Then I can choose the Maven Central as the provider of latest jar.

Thank you,

View answer in original post

3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator

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).

Thanks ‌, then the last question -- since I'm new on Maven: What is the archetype catalog address of Maven Central for alfresco? hence I can force to use this on Eclipse.

Sorry, not careful with the current list on Eclipse.

The "Maven Central" is already in the archetype catalog drop-down list with following URL

http://repo.maven.apache.org/maven2/archetype-catalog.xml 

Then I can choose the Maven Central as the provider of latest jar.

Thank you,