deepin安装maven
来源:互联网 发布:软件验收标准模板 编辑:程序博客网 时间:2024/06/03 18:48
$ mkdir -p ~/dev/Maven$ tar -zxvf apache-maven-3.5.0-bin.tar.gz -C ~/dev/Maven/$ vim ~/.profile #在.profile文件最后追加如下内容export M2_HOME=$HOME/dev/Maven/apache-maven-3.5.0export MAVEN_OPTS="-Xms128m -Xmx1024m"export PATH=$M2_HOME/bin:$PATH
配置maven:vim ~/dev/Maven/apache-maven-3.5.0/conf/settings.xml
<?xml version="1.0" encoding="UTF-8"?><settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"> <pluginGroups> </pluginGroups> <proxies> </proxies> <servers> </servers> <mirrors> <mirror> <id>alimaven</id> <mirrorOf>central</mirrorOf> <name>aliyun maven</name> <url>http://maven.aliyun.com/nexus/content/repositories/central/</url> </mirror> </mirrors> <profiles> <profile> <id>jdk-1.8</id> <activation> <activeByDefault>true</activeByDefault> <jdk>1.8</jdk> </activation> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion> </properties> </profile> </profiles></settings>
验证
$ . ~/.profile$ mvn -vApache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T03:39:06+08:00)Maven home: /home/aidan/dev/Maven/apache-maven-3.5.0Java version: 1.8.0_112, vendor: Oracle CorporationJava home: /home/aidan/dev/Java/jdk1.8.0_112/jreDefault locale: zh_CN, platform encoding: UTF-8OS name: "linux", version: "4.9.0-deepin9-amd64", arch: "amd64", family: "unix"
阅读全文
0 0
- deepin安装maven
- Deepin下安装Maven
- 安装deepin~
- Linux Deepin 安装记事
- deepin下安装mysql
- deepin下安装jdk
- Deepin 安装Android-studio
- Deepin安装Gradle
- Deepin 安装curl
- Deepin 安装nodejs
- deepin--安装Anaconda
- deepin下安装ElasticSearch
- deepin 下安装gimp
- 安装deepin Linux之后
- deepin安装jdk8
- deepin安装mysql/navicat
- Deepin Linux 安装JDK
- Deepin Linux 安装JDK
- (四)linux进程通讯方式,无名、标准、有名管道
- 受限玻尔兹曼机RBM最通俗易懂的教程
- 责任链模式
- 磁盘管理
- Nginx服务器的安装教程及其相关状态命令
- deepin安装maven
- 剖析C++是如何解决菱形继承的二义性和数据冗余的
- sublime text3 使用ctrl+b,只有bulid结果,没有代码输出结果
- 等待唤醒机制与简单的生产消费者模型
- 某名企关于衍生词替换成词根的面试题
- java生成UUID
- 多线程经典面试题
- Unity中的CG编写Shader系列(Blend)
- C++常用数据类型转换的区别