Hi,
I am trying to create a bloomreach project in v14.4.0 as per the instructions provided in the link Create the Project. However i see that the build was unsuccessful when using the command:
mvn org.apache.maven.plugins:maven-archetype-plugin:2.4:generate -DarchetypeRepository=https://maven.onehippo.com/maven2 -DarchetypeGroupId=org.onehippo.cms7 -DarchetypeArtifactId=hippo-project-archetype -DarchetypeVersion=14.4.0
Error in the build:
[INFO] Archetype defined by properties
Downloading from hippo-project-archetype-repo: https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-project-archetype/14.4.0/hippo-project-archetype-14.4.0.jar
Downloading from central: https://repo.maven.apache.org/maven2/org/onehippo/cms7/hippo-project-archetype/14.4.0/hippo-project-archetype-14.4.0.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 19.657 s
[INFO] Finished at: 2021-04-02T12:25:54+05:30
[INFO] ------------------------------------------------------------------------
[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 (org.onehippo.cms7:hippo-project-archetype:14.4.0) → [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
Thanks
Vishal Kumar Nalla
Hi Vishal,
Isn’t this location accessible for you?
https://maven.onehippo.com/maven2/org/onehippo/cms7/hippo-project-archetype/14.4.0/
This is open and does contain the archetype.
Jeroen
Also, on the documentation page you followed please note
If you’re behind a proxy, you need to use appropriate settings in your Maven configuration file. See the Maven Guide to Using Proxies on how to do that.
in case you are behind a proxy.
Hi,
Thanks for your reply. I am not behind a proxy and it is open network that i am using from home. Please find the screenshot below. It does not work!
So Maven is trying to download this file:
https://maven.onehippo.com/content/groups/maven2/org/onehippo/cms7/hippo-project-archetype/14.5.0/hippo-project-archetype-14.5.0.jar
This is a local problem, since it certainly is available. Can’t you see it from the browser either?
Jeroen
From the browser it is available, not sure from Maven it is failing for some reason. Does this work on your end? If yes, what configurations / settings have to be done from Maven. As i said earlier, i am on an open network, where no URLs are blocked.
Thanks
Vishal Kumar Nalla
Hello,
If you can access the URL provided by Jeroen above then you should be able to see that the jar is globally available. Your Maven settings attempt to pull (correctly) from the onehippo repository. This means that your settings are likely correct. It then fails to find the jar and attempts at the central repository (incorrectly). It also can’t find it there, probably because of the same network error but the jar isn’t hosted there anyway so it wouldn’t find it.
You have some network error on your local system with Maven permissions. Try on a different machine on a different network.
Thank you everyone for responding to my question. The issue got resolved after deleting the existing .m2 directory which had Bloomreach’s 13.4.8 version jars. It’s now working.
Not sure why, it wasn’t unable to download the jar for Bloomreach v14.x earlier.