jdeb icon indicating copy to clipboard operation
jdeb copied to clipboard

Support parallel build in Maven 3.x

Open bezda opened this issue 12 years ago • 7 comments

[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 : [WARNING] org.vafer:jdeb:1.0.1:jdeb [WARNING] *****************************************************************

bezda avatar Sep 09 '13 12:09 bezda

Would that prevent using jdeb with Maven 2 ?

ebourg avatar Sep 12 '13 09:09 ebourg

I don't think so since annotations are designed to not prevent the class to work even if you don't have the annotation in your classpath (event if there is not much value in continuing to support Maven 2).

tmortagne avatar Sep 12 '13 10:09 tmortagne

I think we have to fix the thread safety of FilteredFile first, the static fields may conflict if several instances of jdeb are run in parallel.

ebourg avatar Oct 29 '13 12:10 ebourg

I agree with https://github.com/tcurdt/jdeb/blob/master/src/main/java/org/vafer/jdeb/maven/DebMojo.java#L262 :)

tmortagne avatar Oct 29 '13 12:10 tmortagne

still room for refactoring - but the statics are gone now.

tcurdt avatar Feb 26 '14 22:02 tcurdt

since we are attaching to the package phase I am wondering if checking whether it's threadsafe is useful at all.

I also think it would be worth updating the maven version - but I fear that could mean quite some work.

tcurdt avatar Feb 27 '14 00:02 tcurdt

Using Maven 3 now, so this should be easier https://github.com/tcurdt/jdeb/commit/45f3e53fc1293a176459e98e4888e09622f3184d

benmccann avatar Jul 23 '14 18:07 benmccann