cancel
Showing results for 
Search instead for 
Did you mean: 

problems to use Maven Alfresco SDK

nancygaillard
Champ on-the-rise
Champ on-the-rise
Hi,

I test Alfresco SDK using the ECMarchitect tutorial http://ecmarchitect.com/alfresco-developer-series-tutorials/maven-sdk/tutorial/tutorial.html#introdu...

Config :
Alfresco Community 4.2.e
Windows 7 x 64bits
Java 1.7.0_60
Maven 3.2.3

That I've done :
1) I have installed maven and it works (I can do mvn -version)
2) Create an empty directory : (in C:/Users/ngaillard I created "maven")
3) In the terminal, I typed "mvn archetype:generate -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -Dfilter=org.alfresco.maven.archetype:"
4) I added asked informations : the archetype that I chosen is the 1.1.1
5) my project is created and I added in my C:/Users/ngaillard/maven/someco-mvn-tutorial-repo/pom.xml a goal like this :

between the "parent" tag and  the "properties" tag I added
<blockcode>
   <build>
      <defaultGoal>install</defaultGoal>
   </build>
</blockcode>

6) I stopped my tomcat [worked on the 8081 port]
7) I type in the terminal "cd someco-mvn-tutorial-repo" then "mvn integration-test -Pamp-to-war -Dmaven.tomcat.port=8081"

the script works until a http-bio-8081


* I would like show my errors but I don't succeed to copy the terminal error lines. I tested mvn integration-test -Pamp-to-war -Dmaven.tomcat.port=8081 -e -X > log.txt" but the document doesn't contain the java errors….
So if somebody could help me to share my errors, I am here!

Perhaps I haven't proceed in a good way, please, what is wrong?
1 REPLY 1

nancygaillard
Champ on-the-rise
Champ on-the-rise
I had a problem in my first choice for the fourth step :

<blockquote>Choose archetype:
1: https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -> \
org.alfresco.maven.archetype:alfresco-amp-archetype (Sample project with full support \
for lifecycle and rapid development of AMPs (Alfresco Module Packages))
2: https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -> \
org.alfresco.maven.archetype:alfresco-allinone-archetype (Sample multi-module project \
for All-in-One development on the Alfresco plaftorm. Includes modules for: \
Repository, AMP, Share, Solr, Web Quick Start and embedded Tomcat run)
Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): :      </blockquote>

I just have to tip '1'.

Then, it was normal to wait when the command prompt shown
"http-bio-8081". It just means that I could go to http://localhost:8081/alfresco Smiley Happy

Source :
After a attentive reading,
- http://docs.alfresco.com/4.2/tasks/dev-extensions-maven-sdk-tutorials-amp-archetype.html
- http://ecmarchitect.com/alfresco-developer-series-tutorials/maven-sdk/tutorial/tutorial.html#introdu...