码迷,mamicode.com
首页 > Web开发 > 详细

apache atlas安装配置

时间:2017-02-19 14:06:10      阅读:3032      评论:0      收藏:0      [点我收藏+]

标签:code   jdk   时间   地址   max   sts   test   pid   wip   

安装文档地址:http://atlas.apache.org/0.7.1-incubating/InstallationSteps.html

 

操作系统为ubuntu16.具体安装过程略

JDK使用JDK1.8.具体安装过程略

 

MAVEN3.3.具体安装过程略。MAVEN安装后,需要修改setting.xml,

添加本地仓库路径:

<localRepository>${user.home}/repository/maven</localRepository>

使用国内镜像(在<mirrors></mirrors>中添加以下内容)

    <mirror>
        <id>nexus-aliyun</id>
        <mirrorOf>*</mirrorOf>
        <name>Nexus aliyun</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public</url>
    </mirror> 

 

安装git版本:(暂时略过)

 

获取apache atlas源代码

git clone https://git-wip-us.apache.org/repos/asf/incubator-atlas.git atlas
cd atlas

 

由于atlas的dashboardv2需要下载nodejs和npm。但因为你知道的原因,需要设置代理:

在atlas/dashboardv2/pom.xml文件,中添加如下两行。

<plugin>
                <groupId>com.github.eirslett</groupId>
                <artifactId>frontend-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>install node and npm</id>
                        <goals>
                            <goal>install-node-and-npm</goal>
                        </goals>
                        <configuration>
                            <nodeVersion>v4.4.2</nodeVersion>
                            <npmVersion>3.8.5</npmVersion>
                            <nodeDownloadRoot>http://npm.taobao.org/mirrors/node/</nodeDownloadRoot>
                            <npmDownloadRoot>http://registry.cnpmjs.org/</npmDownloadRoot>
                        </configuration>
                    </execution>

 

启动构建

export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install

但构建会启动单元测试,时间比较长,可以添加忽略测试

另外,如果一次构建失败了。可以不进行clean,直接install

export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn install -DskipTests

接下来是漫长的等待:(

apache atlas安装配置

标签:code   jdk   时间   地址   max   sts   test   pid   wip   

原文地址:http://www.cnblogs.com/maobuji/p/6415427.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!