Problem facing Maven build | Community
Skip to main content
nilanjan_mukher
October 16, 2015
Solved

Problem facing Maven build

  • October 16, 2015
  • 4 replies
  • 3584 views

When trying to apply the the instructions mentioned in the Maven configuration details for CQ5 (http://docs.adobe.com/docs/en/cq/aem-how-tos/development/how-to-build-aem-projects-using-apache-maven.html), I am facing issues when trying to create the project with the following command:

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"

Following is the error:

[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.day.jcr.vault:multimodule-content-package-archetype:1.0.2) -> [Help 1]

 

Also, tried to configure settings.xml as mentioned in the following link:

http://helpx.adobe.com/experience-manager/kb/SetUpTheAdobeMavenRepository.html

Still getting same error. It is showing some additonal warnings, from which, it seems there is some connectivity issue with the repository.

[WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to adobe-public-releases (http://repo.adobe.com/nexus/content/groups/public): Connect to repo.adobe.com:80 [repo.adobe.com/192.147.117.14] failed: Operation timed out

 

Please suggest.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Feike_Visser1

This looks like a connection problem to open the Adobe-proxy: http://repo.adobe.com/nexus/content/groups/public

Can you try from your machine if you can access that url standalone?

best,

Feike

4 replies

Feike_Visser1
Adobe Employee
Feike_Visser1Adobe EmployeeAccepted solution
Adobe Employee
October 16, 2015

This looks like a connection problem to open the Adobe-proxy: http://repo.adobe.com/nexus/content/groups/public

Can you try from your machine if you can access that url standalone?

best,

Feike

Level 6
October 16, 2015

It is strongly recommended that you use an internal repository, like Sonatype Nexus, and proxy the third party repositories. Then you avoid any proxy problems and you get a copy of the repo inside of your local network. Typically if you have a low bandwidth WAN and say 10 developers that all have to download about 600 Mb of artifacts from different repositories, the network will go nuts. Having a local copy makes it also possible to download it faster and if a remote repo is down, you can still download it from your company local instance.

/O

nilanjan_mukher
October 16, 2015

Yes, I am able to access it standalone. And today, build also works fine. May be some temporary issue yesterday. Thanks for the suggestion.

Ankur_Khare
Community Advisor
Community Advisor
May 19, 2020
I am facing the same issue with archtype 23 anyone is facing the same issue, it works fine in my local environment but the same doesn't work client network, so how to debug it or any specific network change we need to do?