AnsweredAssumed Answered

"amp-to-war" could not be activated because it does not exist

Question asked by ruyulin on Dec 28, 2016
Latest reply on Dec 28, 2016 by ruyulin

hello everybody
I am using alfresco SDK componentX - repo sample project, using MVN command prompt:

“[WARNING] The requested profile "amp-to-war" could not be activated because it does not exist.”

How do I solve?

 

The following is the execution


D:\alfresco-extensions\componentX-repo>mvn clean install -Pamp-to-war
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=1024m; support was removed in 8.0
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building componentX-repo Platform Jar Module - SDK 3 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ componentX-repo ---
[INFO] Deleting D:\alfresco-extensions\componentX-repo\target
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) @ componentX-repo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 14 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ componentX-repo ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 3 source files to D:\alfresco-extensions\componentX-repo\target\classes
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:testResources (default-testResources) @ componentX-repo ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ componentX-repo ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ componentX-repo ---
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ componentX-repo ---
[INFO] Building jar: D:\alfresco-extensions\componentX-repo\target\componentX-repo-1.0-SNAPSHOT.jar
[INFO]
[INFO] --- maven-assembly-plugin:2.6:single (build-amp-file) @ componentX-repo ---
[INFO] Building amp: D:\alfresco-extensions\componentX-repo\target\componentX-repo-1.0-SNAPSHOT.amp
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ componentX-repo ---
[INFO] Installing D:\alfresco-extensions\componentX-repo\target\componentX-repo-1.0-SNAPSHOT.jar to E:\MavenRepository\repository\com\acme\componentX-repo\1.0-SNAPSHOT\componentX-repo-1.0-SNAPSHOT.jar
[INFO] Installing D:\alfresco-extensions\componentX-repo\pom.xml to E:\MavenRepository\repository\com\acme\componentX-repo\1.0-SNAPSHOT\componentX-repo-1.0-SNAPSHOT.pom
[INFO] Installing D:\alfresco-extensions\componentX-repo\target\componentX-repo-1.0-SNAPSHOT.amp to E:\MavenRepository\repository\com\acme\componentX-repo\1.0-SNAPSHOT\componentX-repo-1.0-SNAPSHOT.amp
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.353 s
[INFO] Finished at: 2016-12-28T10:31:12+08:00
[INFO] Final Memory: 47M/476M
[INFO] ------------------------------------------------------------------------
[WARNING] The requested profile "amp-to-war" could not be activated because it does not exist.

Outcomes