Christoph Nagel created SLING-12509:
---------------------------------------

             Summary: Mark Sling Maven Plugin Validation Mojo as thread-safe
                 Key: SLING-12509
                 URL: https://issues.apache.org/jira/browse/SLING-12509
             Project: Sling
          Issue Type: Improvement
          Components: Maven Plugins and Archetypes
    Affects Versions: Sling Maven Plugin 3.0.2
            Reporter: Christoph Nagel


The _Validate_ goal of the Sling Maven Plugin validates JSON files in the 
project. This should be a thread-safe operation.

But the annotation property is missing. Building a maven project using the goal 
in parallel mode causes WARN messages similar to
{code:java}
[WARNING] *****************************************************************
[WARNING] * Your build is requesting parallel execution, but this         *
[WARNING] * project contains the following plugin(s) that have goals not  *
[WARNING] * marked as thread-safe to support parallel execution.          *
[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 Apache Maven.                           *
[WARNING] *****************************************************************
[WARNING] The following plugins are not marked as thread-safe in ZEISS AEM App 
- Parent:
[WARNING]   org.apache.sling:sling-maven-plugin:3.0.2
[WARNING] 
[WARNING] Enable debug to see precisely which goals are not marked as 
thread-safe.
[WARNING] *****************************************************************
{code}
Add the 
[threadSafe|https://maven.apache.org/plugin-tools/maven-plugin-annotations/apidocs/org/apache/maven/plugins/annotations/Mojo.html#threadSafe--]
 property to the Mojo annotation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to