cancel
Showing results for 
Search instead for 
Did you mean: 

maven amp plugin

thomasg
Champ in-the-making
Champ in-the-making
Hi, I'm trying to use the maven amp plugin but got the following error:

[ERROR] Failed to execute goal on project alf-timesheet-server: Could not resolve dependencies for project com.leftmotif:alf-timesheet-server:amp:1.0-SNAPSHOT: The following artifacts could not be resolved: org.alfresco:alfresco-repository:jar:config:5.0.d, org.alfresco:alfresco-data-model:jar:config:5.0.d: Could not find artifact org.alfresco:alfresco-repository:jar:config:5.0.d in alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public) -> [Help 1]

Did I miss something?
Thanks,
Thomas
3 REPLIES 3

gravitonian
Star Collaborator
Star Collaborator
Without having seen the full stacktrace I would recommend you test the connection to the Alfresco Nexus server.

It looks like you cannot download from https://artifacts.alfresco.com. So your Java installation might not have correct CA path to artifacts cert.

Try using the following class to test this, you should see something like:

martin@gravitonian:~/tools$ java SSLPoke artifacts.alfresco.com 443
Successfully connected

You can download this class from for example: https://confluence.atlassian.com/display/JIRAKB/Unable+to+Connect+to+SSL+Services+due+to+PKIX+Path+B...

thomasg
Champ in-the-making
Champ in-the-making
Hi Martin,

the connection looks fine:
Thomass-MacBook-ProSmiley Very Happyownloads goirand$ java SSLPoke artifacts.alfresco.com 443
Successfully connected

Here is my full log:

[INFO] ————————————————————————
[INFO] Building shared-alfresco AMP project 1.0-SNAPSHOT
[INFO] ————————————————————————
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/apache/maven/plugins/maven-...
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/apache/maven/plugins/maven-deploy-plu...
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-deploy-plugin/maven-metadata.xml (709 B at 1.6 KB/sec)
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/alfresco-repository/5.0.d/al...
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/alfresco-data-model/5.0.d/al...
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/alfresco/alfresco-repositor...
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/alfresco/alfresco-data-mode...
Downloading: https://repo.maven.apache.org/maven2/org/alfresco/alfresco-repository/5.0.d/alfresco-repository-5.0....
Downloading: https://repo.maven.apache.org/maven2/org/alfresco/alfresco-data-model/5.0.d/alfresco-data-model-5.0....
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 2.418 s
[INFO] Finished at: 2015-09-28T12:23:11+01:00
[INFO] Final Memory: 16M/251M
[INFO] ————————————————————————
[ERROR] Failed to execute goal on project alf-timesheet-amp: Could not resolve dependencies for project com.leftmotif:alf-timesheet-amp:amp:1.0-SNAPSHOT: The following artifacts could not be resolved: org.alfresco:alfresco-repository:jar:config:5.0.d, org.alfresco:alfresco-data-model:jar:config:5.0.d: Could not find artifact org.alfresco:alfresco-repository:jar:config:5.0.d in alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException


Many thanks for your help Smiley Happy

Thomas

thomasg
Champ in-the-making
Champ in-the-making
I've used a different pom and it looks like, it works now. The problem seemed to be in the pom.xml but not sure where yet.
Thanks!