cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Maven Error Setting up for Snap Development

jgriffin
New Contributor II

Maven is unable to retrieve project. Command:
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/

Error after selecting the com.snaplogic.tools:SnapArchetype and version 4.24 I get the following error from maven:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.4:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.snaplogic.tools:SnapArchetype:4.24) โ†’ [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] MojoFailureException - Apache Maven - Apache Software Foundation

1 ACCEPTED SOLUTION

jgriffin
New Contributor II

Iโ€™m using IntelliJ and checked โ€œAccept non-trusted certificates automaticallyโ€ checkbox in Settings > Tools > Service Certificates. This allowed maven to download its needed files.

View solution in original post

4 REPLIES 4

mbowen
Employee
Employee

I ran the same command with success.

[INFO] โ€” maven-archetype-plugin:2.4:generate (default-cli) @ standalone-pom โ€”
[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/ โ†’ com.snaplogic.tools:SnapArchetype (An archetype that creates a Snap Pack, with example Snaps provided)

Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): : 1
Choose com.snaplogic.tools:SnapArchetype version:
1: 1.12
2: 4.21
3: 4.22
4: 4.22.1
5: 4.23
6: 4.24
Choose a number: 6: 6

Downloading from SnapArchetype-repo: http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/com/snaplogic/tools/SnapA...

Downloaded from SnapArchetype-repo: http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/com/snaplogic/tools/SnapA... (47 kB at 124 kB/s)

Downloading from SnapArchetype-repo: http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/com/snaplogic/tools/SnapA...

Downloaded from SnapArchetype-repo: http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/com/snaplogic/tools/SnapA... (2.8 kB at 15 kB/s)

Maybe try deleting SnapArchetype artifact from your local repository and trying again? On my mac,

    cd ~/.m2/repository/com/snaplogic/tools/
    rm -rf SnapArchetype/

Do you have curl? If so try this and let us know what it does.

curl -v http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/com/snaplogic/tools/SnapArchetype/4.24/

If not, just try to click on this URL to see what your browser does with it. You should just see a web page that looks like a directory listing with title โ€œIndex of /repositories/master/com/snaplogic/tools/SnapArchetype/4.24โ€

http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/com/snaplogic/tools/SnapA...

jgriffin
New Contributor II

Iโ€™m using IntelliJ and checked โ€œAccept non-trusted certificates automaticallyโ€ checkbox in Settings > Tools > Service Certificates. This allowed maven to download its needed files.

dmiller
Admin Admin
Admin