cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Maven and Getting Started with the Alfresco Maven SDK

maxim75rm
Champ in-the-making
Champ in-the-making

Hello to everyone !

I have a project with Alfresco for my new client, and I'm new to Alfresco so I'm tring to execute the community tutorial at Getting Started with the Alfresco Maven SDK | ECMArchitect | Alfresco Developer Tutorials  but I cannot run the example because I'm having some problem when I import as Maven project in Eclipse :

Description Resource Path Location Type
Error resolving version for plugin 'org.apache.maven.plugins:maven-site-plugin' from the repositories [local (C:\Users\xxx\.m2\repository), central (http://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository pom.xml /alfresco-amp-archetype line 1 Maven pom Loading Problem

Description Resource Path Location Type
Failure to transfer org.apache.maven.plugins:maven-enforcer-pluginSmiley Tongueom:1.4.1 from http://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-public has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-enforcer-pluginSmiley Tongueom:1.4.1 from/to sonatype-public (http://oss.sonatype.org/content/groups/public): connect timed out pom.xml /alfresco-sdk-parent line 1 Maven pom Loading Problem

Description Resource Path Location Type
Failure to transfer org.apache.maven.plugins:maven-plugin-pluginSmiley Tongueom:3.4 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.maven.plugins:maven-plugin-pluginSmiley Tongueom:3.4 from/to central (http://repo.maven.apache.org/maven2): connect timed out pom.xml /alfresco-maven-plugin line 1 Maven pom Loading Problem


Description Resource Path Location Type
Project build error: Unresolveable build extension: Plugin org.apache.maven.archetype:archetype-packaging:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.archetype:archetype-packaging:jar:2.4 pom.xml /alfresco-amp-archetype line 1 Maven pom Loading Problem

I'm just going crazy...could someone help to to solve this problem ?

1 ACCEPTED ANSWER

jpotts
World-Class Innovator
World-Class Innovator

First of all, thanks for reading my tutorial. I'm sorry that you are having problems getting your maven build to work.

I think we should start by removing Eclipse from the equation. Open a terminal window, switch to the root of your project, and run "mvn -U clean". The -U will force your artifacts to update.

If that is successful, run "mvn compile".

If that does not work, run "mvn -X compile" and respond here with the output.

View answer in original post

7 REPLIES 7

jpotts
World-Class Innovator
World-Class Innovator

First of all, thanks for reading my tutorial. I'm sorry that you are having problems getting your maven build to work.

I think we should start by removing Eclipse from the equation. Open a terminal window, switch to the root of your project, and run "mvn -U clean". The -U will force your artifacts to update.

If that is successful, run "mvn compile".

If that does not work, run "mvn -X compile" and respond here with the output.

maxim75rm
Champ in-the-making
Champ in-the-making

Jeff actually my colleague has workspace working so problem seems to be solved, just in case I will contact you back. Thanks for now 🙂

maxim75rm
Champ in-the-making
Champ in-the-making

I solved the problem before. Now I run from Eclipse the command mvn clean install -Pamp-to-war

and in console by the end I have this problem :

INFORMAZIONI: Starting ProtocolHandler ["http-bio-8081"]
2016-11-14 15:13:35,798 INFO [web.site.EditionInterceptor] [http-bio-8081-exec-9] Successfully retrieved license information from Alfresco.
2016-11-14 15:13:41,706 INFO [webscripts.connector.RemoteClient] [http-bio-8081-exec-9] Exception calling (POST) http://localhost:8080/alfresco/s/remoteadm/create/alfresco/site-data/extensions/default-persisted-ex...
2016-11-14 15:13:41,708 INFO [webscripts.connector.RemoteClient] [http-bio-8081-exec-9] Error status 500 Connection reset
java.net.SocketException: Connection reset

Could you help me ?

boura
Champ in-the-making
Champ in-the-making

Hi Jeff,

I followed your tutorial  on  Getting Started with the Alfresco Maven SDK

 and I successfully created the amp-archetype project and execute it and accede.

Thank you for this tuto it is clear and comprehensible.

Now I have created a project of type share-archetype  and when I try to access it with my browser (albasoft.fr: 8081/share/page/) it asks me to fill in the login and the password and i puts admin,admin it refuses to connect. I have the following error:

2017-03-10 16:01:04,782 INFO [webscripts.connector.RemoteClient] [http-bio-8081-exec-5] Exception calling (GET) http://localhost:8080/alfresco/s/remoteadm/has/alfresco/site-data/component-types/webscript.xml?s=si... 2017-03-10 16:01:04,782 INFO [webscripts.connector.RemoteClient] [http-bio-8081-exec-5] Error status 503 Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused) org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused (Connection refused)

Help me please.

Best Regards

jpotts
World-Class Innovator
World-Class Innovator

boura
Champ in-the-making
Champ in-the-making

Hi Jeff,

I recall I installed it with mvn on a remote server hosted by OVH.  So the localhost I replaced it with the name of my domain.

When I install amp-archetype it launches it on port 8080.
Then when I create share-archetype on port 8081:
INFO: Initializing Spring FrameworkServlet 'Spring Surf Dispatcher Servlet'
Mar 13, 2017 4:44:37 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8081"]

regards

maxim75rm
Champ in-the-making
Champ in-the-making

Hy Jeff, thanks to you for your kind reply. Now I'm out of Office but by Monday I'm going to give you a feedback about it.