0 Replies Latest reply on Dec 11, 2013 4:24 AM by TEKPartner.net

    Unable to use Maven Archetype "maven-gar-archetype" to generate a project


      I'm following instruction listed in the YouTube video Coherence Maven Integration, and am unable to proceed with creating the Maven Project for the archetype "maven-gar-archetype".


      Executing the following command -

      mvn archetype:generate -DarchetypeGroupId=com.oracle.coherence -DarchetypeArtifactId=maven-gar-archetype -DarchetypeVersion=12.1.2-0-0 -DgroupId=net.tekpartner -DartifactId=adventures-cache


      I get the following error:


      [INFO] Scanning for projects...


      [INFO] ------------------------------------------------------------------------

      [INFO] Building Maven Stub Project (No POM) 1

      [INFO] ------------------------------------------------------------------------


      [INFO] >>> maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom >>



      [INFO] <<< maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom <<



      [INFO] --- maven-archetype-plugin:2.2:generate (default-cli) @ standalone-pom ---

      [INFO] Generating project in Interactive mode

      [WARNING] Archetype not found in any catalog. Falling back to central repository (http://repo1.maven.org/maven2).

      [WARNING] Use -DarchetypeRepository=<your repository> if archetype's repository is elsewhere.

      Downloading: http://itbuildwlsdev01:8060/artifactory/ei-repo/com/oracle/coherence/maven-gar-archetype/12.1.2-0-0/maven-gar-archetype-12.1.2-0-0.jar

      [INFO] ------------------------------------------------------------------------


      [INFO] ------------------------------------------------------------------------

      [INFO] Total time: 9.645s

      [INFO] Finished at: Tue Dec 10 20:21:43 PST 2013

      [INFO] Final Memory: 8M/19M

      [INFO] ------------------------------------------------------------------------

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.2:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.oracle.coherence:maven-gar-archetype:12.1.2-0-0) -> [Help 1]


      [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] For more information about the errors and possible solutions, please read the following articles:

      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException