cancel
Showing results for 
Search instead for 
Did you mean: 

maven archetypes in enterprise repository

marco_altieri
Star Contributor
Star Contributor
Hi,

I cannot find any archetypes in the maven enterprise repository.
I'm logged in with a partner account and I can see other artifacts in the enterprise group but if I execute a GAV search with:

G=org.alfresco.enterprise, A=maven-alfresco-amp-archetype

the server at https://artifacts.alfresco.com/ doesn't find anything.

Are these archetypes supposed to be there? or should I use the public archetypes and manually correct the pom file?

Regards,
Marco
8 REPLIES 8

billerby
Champ on-the-rise
Champ on-the-rise

marco_altieri
Star Contributor
Star Contributor
Hi Erik,

thank you for your reply.
I can see other artifacts but not the archetypes.
This is the list of folders:

Index of /nexus/content/groups/private/org/alfresco/enterprise/

Name   Last Modified   Size   Description
Parent Directory
alfresco/    Thu Jul 19 16:23:06 BST 2012         
alfresco-core/    Thu Aug 16 19:49:07 BST 2012         
alfresco-data-model/    Mon Jul 02 12:56:24 BST 2012         
alfresco-deployment/    Wed Aug 15 10:58:25 BST 2012         
alfresco-dod5015/    Wed Jun 27 17:50:26 BST 2012         
alfresco-dod5015-share/    Thu Jun 28 12:04:55 BST 2012         
alfresco-enterprise-remote-api/    Wed Aug 15 11:00:39 BST 2012         
alfresco-enterprise-repo/    Wed Aug 15 11:00:45 BST 2012         
alfresco-fdk-client/    Wed Aug 15 11:00:02 BST 2012         
alfresco-fdk-repo/    Wed Aug 15 10:55:34 BST 2012         
alfresco-jlan-embed/    Wed Aug 15 10:58:32 BST 2012         
alfresco-mbeans/    Wed Aug 15 10:58:38 BST 2012         
alfresco-mmt/    Tue Jul 24 15:07:35 BST 2012         
alfresco-platform-parent/    Thu Jul 26 15:55:43 BST 2012         
alfresco-remote-api/    Wed Aug 15 10:58:45 BST 2012         
alfresco-repository/    Wed Aug 15 10:59:02 BST 2012         
alfresco-share/    Wed Aug 15 10:59:52 BST 2012         
alfresco-solr/    Wed Aug 15 11:00:26 BST 2012         
alfresco-solr-integration/    Wed Aug 15 11:00:08 BST 2012         
alfresco-spp/    Wed Aug 15 10:55:28 BST 2012         
alfresco-wcm-quickstart/    Wed Aug 15 10:56:11 BST 2012         
alfresco-wcm-quickstart-repo/    Wed Aug 15 10:55:51 BST 2012         
alfresco-wcm-quickstart-share/    Wed Aug 15 10:55:58 BST 2012         
alfresco-wdr-deployment/    Wed Aug 15 10:59:25 BST 2012         
alfresco-web-client/    Wed Aug 15 10:59:32 BST 2012         
alfresco-web-framework-commons/    Wed Aug 15 10:59:45 BST 2012         
alfresco-web-service-client/    Wed Aug 15 10:56:21 BST 2012         
alfresco-webeditor-plugin/    Wed Aug 15 10:56:38 BST 2012         
alfresco-webeditor-taglib/    Wed Aug 15 10:56:32 BST 2012         
alfresco-xamconnector/    Wed Aug 15 11:00:33 BST 2012         
recordsmanagement/    Fri Jul 27 13:09:53 BST 2012         
share/    Wed Aug 15 10:58:01 BST 2012         

Do you find the archetypes with the following GAV search?

G=org.alfresco.enterprise, A=maven-alfresco-amp-archetype

Regards,
Marco

arnoldschrijve1
Champ on-the-rise
Champ on-the-rise
Are you sure that is the correct groupId? For groupId org.alfresco you have:


<dependency>
  <groupId>org.alfresco</groupId>
  <artifactId>maven-alfresco-amp-archetype</artifactId>
  <version>3.9.1</version>
  <type>pom</type>
</dependency>

See: https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/maven-alfresco-amp-archetype...

marco_altieri
Star Contributor
Star Contributor
Hi Arnold,

thank you for your reply.

The groupId org.alfresco.enterprise as far as I know is the group for all the enterprise artifacts.
These artifacts are visible  if you are logged in with a partner account.
Unfortunately using this group, I cannot find the archetypes that are available in the public group. The public archetypes create projects with the wrong reference to the repository and the wrong reference to all the dependencies…

Regards,
Marco

arnoldschrijve1
Champ on-the-rise
Champ on-the-rise
If it is not in the enterprise repository, this is probable because the artifacts are the result of a Google Code community effort: the Maven Alfresco Lifecycle (see: http://code.google.com/p/maven-alfresco-archetypes/)
Alfresco support up to now is limited to publishing its build artifacts to the Maven repository.

I just posted a message asking for more info on Alfresco's Maven roadmap: https://forums.alfresco.com/en/viewtopic.php?f=10&t=46159

marco_altieri
Star Contributor
Star Contributor
Hi Arnold,

I knew that these projects started as independent contributions, but now the maven build process is supported by Alfresco.

Of course, it's always possible to create these artifacts once and store them in the local repository…

Regards,
Marco

marco_altieri
Star Contributor
Star Contributor
The following link:

https://groups.google.com/forum/?fromgroups=#!topic/maven-alfresco/yABZUzCmJv8

describes how to replicate the issue and how to fix it (see Erik message).

The question is: would it be better to use the workaround or to upgrade to maven 3.0?

billerby
Champ on-the-rise
Champ on-the-rise
Its probably best to upgrade. I however have a bunch of customers running older versions of the maven alfresco lifecycle. Last time I tried installing Maven 3 the major problems arised in the m2 eclipse plugin I'm using.

I'm waiting to get motivated to give i another shot Smiley Happy

/Erik