08-11-2017 10:55 PM
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]
08-14-2017 01:01 AM
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,
08-12-2017 09:28 AM
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).
08-12-2017 03:26 PM
08-14-2017 01:01 AM
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,
Explore our Alfresco products with the links below. Use labels to filter content by product module.