Maven "peer not authenticated" errorcom/day/jcr/vault/multimodule-content-package-archetype while generating archetype
I've tried generating a project from an archetype this morning, and I'm getting the following results. I've also seen other errors trying to build an existing project, but I'll start here as this is probably the easiest entry point. I've tried a few things, from using http://repo.adobe.com (as specified in the settings on that page), to specifying https://repo.adobe.com, installing the SSL cert locally and trusting it, etc. I can download quite a few dependencies from repo.adobe.com, but some of them fail with this error message.
Here's the error:
jproulx-mpb15r:temp jproulx$ cat ~/.m2/repository/com/day/jcr/vault/multimodule-content-package-archetype/1.0.2/multimodule-content-package-archetype-1.0.2.jar.lastUpdated #NOTE: This is an internal implementation file, its format can be changed without prior notice. #Mon Apr 20 15:00:44 EDT 2015 default-http\://repo.adobe.com/nexus/content/groups/public/.lastUpdated=1429556443809 http\://repo.maven.apache.org/maven2/.lastUpdated=1429555415785 default-adobe-public-releases/.lastUpdated=1429555439318 default-https\://repo.adobe.com/nexus/content/groups/public/.lastUpdated=1429556444161 http\://repo.maven.apache.org/maven2/.error= adobe-public-releases/.error=Could not transfer artifact com.day.jcr.vault\:multimodule-content-package-archetype\:jar\:1.0.2 from/to multimodule-content-package-archetype-repo (adobe-public-releases)\: No connector available to access repository multimodule-content-package-archetype-repo (adobe-public-releases) of type default using the available factories WagonRepositoryConnectorFactory https\://repo.adobe.com/nexus/content/groups/public/.error=Could not transfer artifact com.day.jcr.vault\:multimodule-content-package-archetype\:jar\:1.0.2 from/to adobe-public-releases (https\://repo.adobe.com/nexus/content/groups/public)\: peer not authenticated http\://repo.adobe.com/nexus/content/groups/public/.error=Could not transfer artifact com.day.jcr.vault\:multimodule-content-package-archetype\:jar\:1.0.2 from/to multimodule-content-package-archetype-repo (http\://repo.adobe.com/nexus/content/groups/public/)\: peer not authenticated
Here's the output from the example command line from https://docs.adobe.com/docs/en/aem/6-0/develop/dev-tools/ht-projects-maven.html
jproulx-mpb15r:temp jproulx$ mvn archetype:generate -DarchetypeRepository=http://repo.adobe.com/nexus/content/groups/public/ -DarchetypeGroupId=com.day.jcr.vault -DarchetypeArtifactId=multimodule-content-package-archetype -DarchetypeVersion=1.0.2 -DgroupId=my-group-id -DartifactId=myproject -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.myproject -DappsFolderName=myproject -DartifactName="My Project" -DcqVersion="5.6.1" -DpackageGroup="My Company" [INFO] Scanning for projects... Downloading: https://repo.adobe.com/nexus/content/groups/public/org/apache/maven/plugins/maven-metadata.xml Downloading: https://repo.adobe.com/nexus/content/groups/public/org/codehaus/mojo/maven-metadata.xml [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public): peer not authenticated [WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public): peer not authenticated Downloading: https://repo.adobe.com/nexus/content/groups/public/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public): peer not authenticated [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from https://repo.adobe.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of adobe-public-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public): peer not authenticated [WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from https://repo.adobe.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of adobe-public-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public): peer not authenticated [WARNING] Failure to transfer org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from https://repo.adobe.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of adobe-public-releases has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to adobe-public-releases (https://repo.adobe.com/nexus/content/groups/public): peer not authenticated [INFO] [INFO] >>> maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom >>> [INFO] [INFO] <<< maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom <<< [INFO] [INFO] --- maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom --- [INFO] Generating project in Interactive mode [INFO] Archetype defined by properties Downloading: http://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/multimodule-content-package-archetype/1.0.2/multimodule-content-package-archetype-1.0.2.jar Downloading: https://repo.adobe.com/nexus/content/groups/public/com/day/jcr/vault/multimodule-content-package-archetype/1.0.2/multimodule-content-package-archetype-1.0.2.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.412s [INFO] Finished at: Mon Apr 20 15:04:10 EDT 2015 [INFO] Final Memory: 11M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on project standalone-pom: The desired archetype does not exist (com.day.jcr.vault:multimodule-content-package-archetype:1.0.2) -> [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] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException