- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How do I resolve maven dependencies for building application on HDP stack?
- Labels:
-
Hortonworks Data Platform (HDP)
Created on 09-30-2015 03:09 PM - edited 09-16-2022 02:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Two ways to deal with this
- If you have a internal maven repository manger like Sonatype Nexus, one can setup a proxy pointing to http://repo.hortonworks.com/content/repositories/releases/ and internally add it to the nexus maven repository groups.
- If one doesn't have any type of maven repository manager they can directly use the public groups url "http://repo.hortonworks.com/content/groups/public/" in there maven settings.xml as a mirror
Created 10-02-2015 09:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Example Maven Section:
<repositories> <repository> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </releases> <snapshots> <enabled>false</enabled> <updatePolicy>never</updatePolicy> <checksumPolicy>fail</checksumPolicy> </snapshots> <id>HDPReleases</id> <name>HDP Releases</name> <url>http://repo.hortonworks.com/content/repositories/releases/</url> <layout>default</layout> </repository> ...
Created 10-02-2015 09:20 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Example Maven Section:
<repositories> <repository> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </releases> <snapshots> <enabled>false</enabled> <updatePolicy>never</updatePolicy> <checksumPolicy>fail</checksumPolicy> </snapshots> <id>HDPReleases</id> <name>HDP Releases</name> <url>http://repo.hortonworks.com/content/repositories/releases/</url> <layout>default</layout> </repository> ...
Created 10-09-2015 07:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If there is a reason for not touching the project's pom.xml one could fix their maven settings.xml to mirror http://repo.hortonworks.com/content/groups/public/ and direct all the maven requests
Created 06-17-2016 08:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @gkesavan, here is the entry which worked for me:
<mirror> <id>hw_central</id> <name>Hortonworks Mirror of Central</name> <url>http://repo.hortonworks.com/content/groups/public/</url> <mirrorOf>central</mirrorOf> </mirror>
Created 10-09-2015 07:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
example on how to user mirror in maven settings.xml : https://maven.apache.org/guides/mini/guide-mirror-settings.html
