How to mark maven plugin threadSafe -
i want mark maven-clean-plugin
threadsafe using @threadsafe
annotation. give example?
edit:
after upgraded maven 3.0.5, build got below warnings: (building using teamcity)
[18:51:10][com.dir.hay.straw:straw-parent] [warning] *****************************************************************agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] * build requesting parallel execution, project *agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] * contains following plugin(s) not marked *agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] * @threadsafe support parallel building. *agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] * while /may/ work fine, please plugin updates *agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] * and/or request plugins made thread-safe. *agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] * if reporting issue, report against plugin in *agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] * question, not against maven-core *agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] *****************************************************************agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] following plugins not marked @threadsafe in straw main application:agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] org.apache.maven.plugins:maven-clean-plugin:2.3agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] org.apache.maven.plugins:maven-install-plugin:2.2agent time: 14:21:10 [18:51:10][com.dir.hay.straw:straw-parent] [warning] *****************************************************************
from maven documentation, understand clean plugin thread safe. then, warning. so, thought miss somewhere.
first why trying use old style xdoclet annotation deprecated should java 5 annotations this:
what do? maven-clean-plugin thread safe. version of maven-clean-plugin use?
@mojo( name = "whatever", threadsafe = true) public class mymojo extends abstractmojo
Comments
Post a Comment