2018-10-25 IDEA 配置 maven进行打包

1、获取maven 压缩包解压
修改配置文件 settings.xml
D:\Program Files\apache-maven-3.0.5\conf\settings.xml


D:\ProgramData\Maven Local Repository
 
 
 
   
    nexus  
    *  
    Company  
    http://203.110.176.176:7081/nexus/content/groups/public/ 
    
   
    alimaven  
    central  
    aliyun maven  
    http://maven.aliyun.com/nexus/content/groups/public/ 
   

    
      
        nexus  
       
          
            
            local-nexus  
            http://172.16.0.29:7081/nexus/content/groups/public/  
              
              true  
              
              
              true  
              
            
          
     
  
    
    nexus  
   

2、环境变量配置
win 10 不支持 %JAVA_HOME%,需要配置绝对路径


image.png

命令cmd 输入 mvn -v 看是否配置成功


image.png

3、打包


image.png

获取文件夹

 cd script

获取文件内容

./run.bat

你可能感兴趣的:(2018-10-25 IDEA 配置 maven进行打包)