5.1Maven构建工具环境的配置

假设咱们Maven的目录如下:

C:\apache-maven-3.6.3

右击“计算机”-属性-高级系统设置-高级-环境变量-系统变量-Path中添加如下内容:

C:\apache-maven-3.6.3\bin

测试配置结果:

mvn -v

输出结果类似如下:

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/apache-maven-3.6.3
Java version: 1.8.0_45, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.8.5", arch: "x86_64", family: "mac"

原创文章,作者:huoxiaoqiang,如若转载,请注明出处:https://www.huoxiaoqiang.com/java/javabasic/2637.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注