Using Maven for deployment

前端 未结 5 1491
小蘑菇
小蘑菇 2020-12-01 10:40

I have this task for the project with 4 nested subprojects using Maven:

  1. For each child: jar-up resource directory including project dependencies
  2. Move
5条回答
  •  自闭症患者
    2020-12-01 11:35

    Below POM will help to copy jar's file from project build directory to remote SFTP/FTP server.

    1. Use command mvn install -Dftp.password=password

    Since I want to pass password from command prompt for security reason, I have used -Dftp.password=password After execution of above command all the jar files from maven project target folder will be deployed in MAVEN folder on server.com

                  org.apache.maven.plugins
            maven-antrun-plugin
    
        
            
                ftp
                install
                
                    
                        
                            
                                
                            
                        
                    
                
                
                    run
                
            
        
        
            
                org.apache.ant
                ant-jsch
                1.9.4
            
        
    
    
    

提交回复
热议问题