Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-7380

Don't log non-threadsafe warning if only building a single module

    XMLWordPrintableJSON

Details

    Description

      When building a single module (via -f, -pl or simply cd'ing into it) with e.g. -T1C in .mvn/maven.config logs a warning if a non-threadsafe mojo is executed, e.g.:

      [WARNING] *****************************************************************
      [WARNING] * Your build is requesting parallel execution, but project      *
      [WARNING] * contains the following plugin(s) that have goals not marked   *
      [WARNING] * as @threadSafe to support parallel building.                  *
      [WARNING] * While this /may/ work fine, please look for plugin updates    *
      [WARNING] * and/or request plugins be made thread-safe.                   *
      [WARNING] * If reporting an issue, report it against the plugin in        *
      [WARNING] * question, not against maven-core                              *
      [WARNING] *****************************************************************
      [WARNING] The following plugins are not marked @threadSafe in code-with-quarkus:
      [WARNING] io.quarkus.platform:quarkus-maven-plugin:2.6.1.Final
      [WARNING] Enable debug to see more precisely which goals are not marked @threadSafe.
      [WARNING] *****************************************************************
      

      This is unnecessary noise because with only a single module there can never be a concurrency issue, no matter how many threads are enabled.

      Maven should check if it's building only one module before logging this warning.

      Attachments

        Issue Links

          Activity

            People

              michael-o Michael Osipov
              famod Falko Modler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: