Quantcast
Viewing all articles
Browse latest Browse all 158

Unable to use Alfresco AMP Archetype

Hello, folks.

I am trying to create an empty Alfresco AMP project according to this instruction:

http://docs.alfresco.com/4.2/tasks/dev-extensions-maven-sdk-tutorials-amp-archetype.html

but when I issue the command:

mvn archetype:generate -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public/archetype-catalog.xml -Dfilter=org.alfresco.maven.archetype:

I get the following message:

mvn: command not found

and maven stops.

java and maven are properly set. Below there's the information on java and maven:

=====

> java -version
java version "1.8.0_91"
Java(TM) SE Runtime Environment (build 1.8.0_91-b14)

=====

> echo $JAVA_HOME
/usr/lib/jvm/java-8-oracle

=====

> mvn --version
Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T19:41:47+03:00)
Maven home: /home/rafael/opt/apache-maven
Java version: 1.8.0_91, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-91-generic", arch: "amd64", family: "unix"

=====

How can I fix this issue?

===========================================

SOLVED

I tried to launch the afore-cited command again (it was ~10th attempt), and it worked. I did not change anything, command was the same, environment was the same. But on this run maven generated the empty project. Magic. Cannot explain this.


Viewing all articles
Browse latest Browse all 158

Trending Articles