Maven Error Setting up for Snap Development

Maven is unable to retrieve project. Command:
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeCatalog=

Error after selecting the 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 ( → [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]

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: → (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 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:

Downloaded from SnapArchetype-repo: (47 kB at 124 kB/s)

Downloading from SnapArchetype-repo:

Downloaded from SnapArchetype-repo: (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

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”

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.

1 Like