Hi, Using @Inject will work only with maven 3. You can inject a Plexus composent using it.
But not sure it's a good design to mix stuff. 2010/11/10 Christopher Hunt <[email protected]>: > Hi there, > > Is it possible to develop MOJOs with JSR-330 dependency injection, and > thereby not depend on Plexus? If so then will Maven 2 be able to host JSR-330 > MOJOs? > > There's not a lot of doco on this... all that I could find was how to write a > MOJO using Plexus: > > http://maven.apache.org/guides/plugin/guide-java-plugin-development.html > > Kind regards, > Christoher > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Olivier Lamy http://twitter.com/olamy http://www.linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
