04-08-2021 04:47 PM
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
Solved! Go to Solution.
04-22-2021 10:24 AM
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.
04-08-2021 05:03 PM
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: 6Downloading 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/
04-08-2021 07:12 PM
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”
04-22-2021 10:24 AM
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.
10-18-2023 08:58 AM
Please note that the path http://maven.clouddev.snaplogic.com:8080/nexus/content/repositories/master/ should now be https://snaplogiceng.jfrog.io/artifactory/thirdparty/ .