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

前端 未结 6 1027
粉色の甜心
粉色の甜心 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条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-07 03:08

    1. Upgrade to Maven 3.1.x or higher - see http://maven.apache.org/maven-logging.html

      The standard Maven distribution, from Maven 3.1.0 onward, uses the SLF4J API for logging combined with the SLF4J Simple implementation.

    2. Now with simplelogger we have fine-grained control over log messages. To identify which logger is causing the unwanted messages, edit MAVEN_HOME/conf/logging/simplelogger.properties and change the following:

      org.slf4j.simpleLogger.showLogName=true

    3. Observe the unwanted garbage in your build output:

      [INFO] org.codehaus.plexus.archiver.jar.JarArchiver - META-INF/MANIFEST.MF already added, skipping
      
    4. Back in simplelogger.properties, reduce logging level for the offending logger(s) by class name (also set showLogName back to false)

      org.slf4j.simpleLogger.log.org.codehaus.plexus.archiver.jar.JarArchiver=warn

提交回复
热议问题