How do I suppress maven assembly plugin skipping files that are already added? Or allow overwrite?

前端 未结 6 1030
粉色の甜心
粉色の甜心 2021-02-07 02:22

For weeks, I\'ve been wrestling with maven, getting it to deploy our project \"properly.\"

I\'m almost done but I have one stubborn little problem:

When I use th

6条回答
  •  梦毁少年i
    2021-02-07 03:14

    maven 3.0.4:

    I still get these messages when making a single jar or combined sources for distribution. http://jira.codehaus.org/browse/PLXCOMP-129 seems to be not in maven.

    My workaround is to use various exclude patterns, and in particular, %regex[..] for folders. I don't know how stable or general this is, and clearly it needs to be maintained. However, we are in the situation where we get so many messages we can't see when a real message appears we need to do something about.

    Skipping the NOTICE, LICENSE -- I put the correct merged text versions in later in the assembly. The partial ones from the dependencies aren't good enough anyway.

    Matching the folder name excludes everything, not the folder itself. Folders do appear in the output, and no INFO level "skipping" messages.

    
      
        **/NOTICE*
        **/LICENSE*
        **/DEPENDENCIES*
        META-INF/**
        
        %regex[.*/]
      
    
    

提交回复
热议问题