Hi,
I would like to remove the MavenSession.lookup( class|role ) methods
in Maven 3.x so I would like to start deprecating them and prefer
injecting anything required using a javadoc annotation (current plugin
api) and an annotation (the new plugin api).
General access to the container is not required more with the new
annotation-based Plexus containers and it's really a bad practice not
to have injected all the things you need.
Plexus used in Maven 3.x injects collections properly and as new
components enter the system they find their way into the correct
collections. So, for example, if a new lifecycle mapping is discovered
in the system it will just automatically show up it the
Map<String,Lifecycle> inside the LifecycleExecutor. This was the
primary reason why we exposed the container and it's not required
anymore.
So if we deprecate starting now, folks will know long before Maven 3.x
comes out.
Thanks,
Jason
----------------------------------------------------------
Jason van Zyl
Founder, Apache Maven
http://twitter.com/jvanzyl
----------------------------------------------------------
Our achievements speak for themselves. What we have to keep track
of are our failures, discouragements and doubts. We tend to forget
the past difficulties, the many false starts, and the painful
groping. We see our past achievements as the end result of a
clean forward thrust, and our present difficulties as
signs of decline and decay.
-- Eric Hoffer, Reflections on the Human Condition
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org