AnsweredAssumed Answered

Maven Version Eclipse

Question asked by americanolinhares on May 29, 2015
Latest reply on Jun 11, 2015 by gmccullough
Hello,

I'm trying to reproduce the projects "com.acme" All-in-One using the Eclipse but it doesnt work. When I use the command line it works normally. Outside of the eclipse I got maven 3.3.3.
I've tried the eclipse Luna and Juno and the same error occurs for both. In Eclipse Juno I have embedded maven 3.0.4. I use Java 1.8. When I run "install" the message below is shown:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects…
[INFO] ————————————————————————
[INFO] Reactor Build Order:
[INFO]
[INFO] Alfresco Repository and Share Quickstart with database and an embedded Tomcat runner.
[INFO] Alfresco Repository AMP Module
[INFO] Alfresco Share AMP Module
[INFO] Alfresco Repository WAR Aggregator
[INFO] Alfresco Solr 4 Configuration
[INFO] Alfresco Share WAR Aggregator
[INFO] Alfresco, Share and Solr4 Tomcat Runner
[INFO]
[INFO] ————————————————————————
[INFO] Building Alfresco Repository and Share Quickstart with database and an embedded Tomcat runner. 1.0-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] — maven-enforcer-plugin:1.4:enforce (enforce-sdk-requirements) @ acme-cms-poc —
[WARNING] Rule 2: org.apache.maven.plugins.enforcer.RequireMavenVersion failed with message:
Detected Maven Version: 3.0.4 is not in the allowed range 3.2.2.
[INFO] ————————————————————————
[INFO] Reactor Summary:
[INFO]
[INFO] Alfresco Repository and Share Quickstart with database and an embedded Tomcat runner. FAILURE [0.523s]
[INFO] Alfresco Repository AMP Module ……………….. SKIPPED
[INFO] Alfresco Share AMP Module ……………………. SKIPPED
[INFO] Alfresco Repository WAR Aggregator ……………. SKIPPED
[INFO] Alfresco Solr 4 Configuration ………………… SKIPPED
[INFO] Alfresco Share WAR Aggregator ………………… SKIPPED
[INFO] Alfresco, Share and Solr4 Tomcat Runner ……….. SKIPPED
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 2.385s
[INFO] Finished at: Fri May 29 09:53:59 BRT 2015
[INFO] Final Memory: 12M/232M
[INFO] ————————————————————————
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.4:enforce (enforce-sdk-requirements) on project acme-cms-poc: Some Enforcer rules have failed. Look above for specific messages explaining why the rule failed. -> [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/MojoExecutionException

When I configure Eclipse to use the external maven the following message appears:

-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.

My goal is to reproduce the examples using eclipse as using the command line I could. As I am starting on a Alfresco project must use the Alfresco in Eclipse.

Link I'm trying to reproduce: http://docs.alfresco.com/5.0/tasks/alfresco-sdk-tutorials-all-in-one-archetype.html


Thank you

Outcomes