Creating a tar.gz archive with Maven

后端 未结 2 1641
长情又很酷
长情又很酷 2021-02-19 07:51

I have a Maven project, where under src/main directory there is a sub dir called output. this folder needs to be packaged into tar.gz. when using the assembly plugin as follows:

2条回答
  •  后悔当初
    2021-02-19 08:13

    Try setting outputDirectory in the fileSet. That should remove the src/main/output directories.

    
      src/main/output
      .
    
    

    You may also need to set includeBaseDirectory to false. That would remove the name directory.

    
      bundle 
      false
      
    

提交回复
热议问题