Maven rename a file after everything else finishes

后端 未结 3 1164
花落未央
花落未央 2021-01-04 03:24

I have a project which I need to rename the final output file generated by the Maven Assembly Plugin after everything else finishes (in the compiling/building/a

3条回答
  •  自闭症患者
    2021-01-04 04:04

    You don't need to use antrun to rename the output file. Just use the tag finalName of the assembly plugin to rename the output file.

    
    
       org.apache.maven.plugins
       maven-assembly-plugin
       2.4
       
          
             assembly
             package
             
                attached
             
             
                
                   src/main/resources/META-INF/MANIFEST.MF
                
                
                   src/main/assembly/ooo-jar.xml
                   src/main/assembly/ooo.xml
                
                final-version.oxt
             
          
       
    
    

提交回复
热议问题