VMware Cloud Community
salil3
Contributor
Contributor

Unable to download the required jars from VRO repository

Hi

I was trying to create VRO project using maven archetype command, command succeeded until listing of archetype, post which I failed with the below error

Maven Command

mvn archetype:generate -DarchetypeCatalog=https://xxx.xxx.xxx.xxx:8281/vco-repo/archetype-catalog.xml -DrepoUrl=https://xxx.xx.xxx:8281/vco-repo -Dmaven.repo.remote=https://xxx.xx.90.92:8281/vco-repo -Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

Downloading: https://XXX.XX.XX.92:8281/vco-repo/com/vmware/o11n/o11n-package-archetype/5.5.2/o11n-package-archety...

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 3.712 s

[INFO] Finished at: 2015-09-26T17:46:11+05:30

[INFO] Final Memory: 20M/187M

[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 (com.vmware.o11n:o11n-package-

archetype:5.5.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

I looked into com/vmware/o11n/o11n-package-archetype/5.5.2 folder under .m2/repository the .updated file has following error

https\://XXX.XX.90.92\:8281/vco-repo/.error=Could not transfer artifact com.vmware.o11n\:o11n-package-archetype\:jar\:5.5.2 from/to o11n-package-archetype-repo (https\://XXX.XX.90.92\:8281/vco-repo)\: Access denied to\: https\://XXX.XX.90.92\:8281/vco-repo/com/vmware/o11n/o11n-package-archetype/5.5.2/o11n-package-archetype-5.5.2.jar , ReasonPhrase\:Forbidden

I am not sure what's going wrong as I am able to access the above location from the browser without being prompted for the credentials One way is to manually copy these jar but that would be more of a work around than a solution.

Any idea how to resolve this?

Thanks in advance,

Salil

Reply
0 Kudos
2 Replies
iiliev
VMware Employee
VMware Employee

Hi Salil,

A few things to check:

  • Are you running behind firewall or proxy? If yes, are the proxy settings added to your Maven's settings.xml file?
  • Could you give some more details about your environment - versions of Maven, Java, etc.? If possible, could you try with different/latest Maven version?
  • Could you run the Maven command with debug info (mvn ... -e -X) and provide the produced output?
  • If possible, could you deploy another vRO appliance (eg. version 6.0.x) and check if you are still getting the same error?
  • Are you getting this error only with o11n-package-archetype, or with all other vRO archetypes, eg. o11n-archetype-spring?
Reply
0 Kudos
VijaySendhur
Enthusiast
Enthusiast

Had similar issues and it got fixed when I add the mirrors on settings.xml which is located in C:\Program Files\Maven\apache-maven-3.0.4\conf\settings.xml from the below URL

http://repo1.maven.org/maven2/.meta/repository-metadata.xml

After updating the XML, try Maven > Update Project..

Reply
0 Kudos