Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Atlas build fails

avatar
New Member

I'm trying to build Atlas from source: https://github.com/hortonworks/atlas-release/tree/HDP-3.0.1.0-187-tag

When executing

mvn clean install

the build fails with

[ERROR] Failed to execute goal on project atlas-testtools: Could not resolve dependencies for project org.apache.atlas:atlas-testtools:jar:1.0.0.3.0.0.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.hadoop:hadoop-annotations:jar:3.0.0.3.0.0.0-SNAPSHOT, org.apache.hadoop:hadoop-auth:jar:3.0.0.3.0.0.0-SNAPSHOT, org.apache.hadoop:hadoop-common:jar:3.0.0.3.0.0.0-SNAPSHOT, org.apache.hadoop:hadoop-hdfs:jar:3.0.0.3.0.0.0-SNAPSHOT, org.apache.zookeeper:zookeeper:jar:3.4.6.3.0.0.0-SNAPSHOT: Could not find artifact org.apache.hadoop:hadoop-annotations:jar:3.0.0.3.0.0.0-SNAPSHOT in apache.snapshots.repo (https://repository.apache.org/content/groups/snapshots) -> [Help 1]

How can I make it resolve these dependencies?

1 ACCEPTED SOLUTION

avatar
@Maxim Neaga

Do add the below hortonworks nexus repo to your ${user.home}/.m2/settings.xml file.

  <profile>
     <id>Hortonworks</id>
     <repositories>
       <repository>
         <id>hortonworks-nexus</id>
         <name>nexus repo</name>
         <url>http://nexus-private.hortonworks.com/nexus/content/groups/public/</url>
       </repository>
     </repositories>
   </profile>

and build using

mvn clean -DskipTests package -Pdist -PHortonworks

View solution in original post

2 REPLIES 2

avatar
@Maxim Neaga

Do add the below hortonworks nexus repo to your ${user.home}/.m2/settings.xml file.

  <profile>
     <id>Hortonworks</id>
     <repositories>
       <repository>
         <id>hortonworks-nexus</id>
         <name>nexus repo</name>
         <url>http://nexus-private.hortonworks.com/nexus/content/groups/public/</url>
       </repository>
     </repositories>
   </profile>

and build using

mvn clean -DskipTests package -Pdist -PHortonworks

avatar
New Member

Thank you, that did it! Is this documented anywhere?