As you said, the SPI did not work well in multimodule project. You tested SPI in Maven, so you know better than me :)
With JSR-269 with can use javax.inject:javax-inject annotations and we the user can use non-default constructor. Imaging this in user, our processor is sensitive only in SurefireComponent-s: (the first experimental version may sleep well without @Inject etc.) @SurefireComponent public class CustomRunOrder implement RunOrderCalculator { CustomRunOrder(@Inject MavenProject mp) {...} ... } Our API: @Qualifier public @interface SurefireComponent Later we can introduce Scopes: @Scope @Retention(RUNTIME) public @interface ForkedScoped @Scope @Retention(RUNTIME) public @interface InProcessScoped -- View this message in context: http://maven.40175.n5.nabble.com/move-maven-core-to-java-7-tp5827988p5828481.html Sent from the Maven Developers mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org