Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-2656

Maven-bundle-plugin identified as not thread-safe in Maven 3.0

    XMLWordPrintableJSON

Details

    Description

      When executing a Maven-3 build with maven-bundle-plugin and set to more than one thread, this error message is shown:

      [WARNING] *****************************************************************
      [WARNING] * Your build is requesting parallel execution, but project *
      [WARNING] * contains the following plugin(s) that are not marked as *
      [WARNING] * @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 com.infoq.minimal:
      [WARNING] org.apache.felix:maven-bundle-plugin:2.1.0
      [WARNING] *****************************************************************

      https://cwiki.apache.org/MAVEN/parallel-builds-in-maven-3.html

      mvn -T 4 clean install # Builds with 4 threads

      I believe the solution is to add @threadSafe to the maven-bundle-plugin MoJo class (after checking that it is in fact thread-safe

      Attachments

        Issue Links

          Activity

            People

              mcculls Stuart McCulloch
              alex.blewitt Alex Blewitt
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: