Eclipse打包jar到maven私服上

1.pom.xml文件需要 配入Nexus仓库地址


    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  4.0.0
  
  com.crt.member.signin
  signin-service-api
  1.0.1-SNAPSHOT
  
   
        1.8
        UTF-8
        UTF-8
    

    
        
            
                com.crt.member.signin
                signin-service-parent
                1.0
                pom
                import
            

        

    

    
        
            org.apache.commons
            commons-lang3
        

        
            org.apache.commons
            commons-collections4
        

    

    
        
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.6.2
                
                    ${java.version}
                    ${java.version}
                    UTF-8
                    true
                

            

        

    

    
    
        
            releases
            releases
            http://10.0.79.27:8084/nexus/content/repositories/releases/
        

        
            snapshots
            snapshots
            http://10.0.79.27:8084/nexus/content/repositories/snapshots/
        

    

2.点击需要打包的项目右键选择run as ——》Maven build..出现如图所示填写,点击run,控制台打印出BUILD SUCCESS表示打包成功,可以去私服地址搜索对应jar包

Eclipse打包jar到maven私服上_第1张图片


--------------------- 
原文:https://blog.csdn.net/luoxiang183/article/details/81303719 
 

你可能感兴趣的:(maven,eclipse)