编译成功截图:
准备:
1. Maven 3.6.3
2. Atlas 2.0.0 源码
3. JDK 1.8
1.下载 Atlas源码
地址:[https://atlas.apache.org/#/Downloads](https://atlas.apache.org/#/Downloads)
2.上传到服务器并解压:*
tar -zxf apache-atlas-2.0.0-sources.tar.gz
3.配置 Maven 镜像仓库
原本用的阿里云,但是好多没下载下来,所有就用maven3.6.3自带的 ,
里面不需要改任何东西。
**直接复制settings.xml 替换就好了**
## 4.执行Maven编译打包
扩大内存
```java
export MAVEN_OPTS="-Xms2g -Xmx2g"
mvn clean -DskipTests package -Pdist,embedded-hbase-solr
注意,atlas可以使用内嵌的hbase-solr作为底层索引存储和搜索组件,也可以使用外置的hbase和solr
6 . 编译出现错误
其中一次:
解决办法:
我在编译过程中出现3次错误,然后百度等等 。
只需要修改文件中pom.xml文件中
下载源
<repositories>
<repository>
<id>horton-works-releases</id>
<url>http://repo.hortonworks.com/content/groups/public/</url>
</repository>
<repository>
<id>CDH</id>
<url>https://repository.cloudera.com/artifactory/cloudera-repos/</url>
</repository>
<repository>
<id>oracleReleases</id>
<name>Oracle Released Java Packages</name>
<url>http://download.oracle.com/maven</url>
<layout>default</layout>
</repository>
<repository>
<id>hortonworks.repo</id>
<url>http://repo.hortonworks.com/content/repositories/releases</url>
<name>Hortonworks Repo</name>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>apache.snapshots.repo</id>
<url>https://repository.apache.org/content/groups/snapshots</url>
<name>Apache Snapshots Repository</name>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>apache-staging</id>
<url>https://repository.apache.org/content/groups/staging/</url>
</repository>
<repository>
<id>default</id>
<url>https://repository.apache.org/content/groups/public/</url>
</repository>
<repository>
<id>java.net-Public</id>
<name>Maven Java Net Snapshots and Releases</name>
<url>https://maven.java.net/content/groups/public/</url>
</repository>
<repository>
<id>repository.jboss.org-public</id>
<name>JBoss repository</name>
<url>https://repository.jboss.org/nexus/content/groups/public</url>
</repository>
<!-- <repository>-->
<!-- <id>typesafe</id>-->
<!-- <name>Typesafe Repository</name>-->
<!-- <url>http://repo.typesafe.com/typesafe/releases/</url>-->
<!-- </repository>-->
</repositories>
最新的
过程有点pom.xml曲折直接给下载源:
链接:https://pan.baidu.com/s/1jo0peCZJya_s3IrIouNmbw
提取码:hxy0
maven
链接:https://pan.baidu.com/s/1TImQ8ybb3ylGkdZ62Vh0CQ
提取码:5rwe