On 22-Apr-08, at 4:37 PM, sgargan wrote:

Hi there,

I've been playing around with developing a simple compiler. Its coming along
nicely, but for one thing. The configuration that gets passed to the
compiler instance is great, but not as complete as I would like. Ideally I would like to have access to the MavenProject object at the compiler level in order to grab the little bits of extra information I need. I'm wondering if there is any way to have the complier injected with the Maven project, similar to how the mojos are injected with dependencies, or via the plexus
container or otherwise?


Coupling the compiler to a MavenProject is probably not a good idea. Extract what you need using the expressions and pass them into you component. Even if you are only using Maven it means that no one else will be able to use the compiler outside the confines of Maven.

What kind of compiler are you making? Not similar to what we have now?

Thanks in advance.

regards,

stephen
--
View this message in context: 
http://www.nabble.com/Dependency-injection-and-Plexus-Compilers-tp16827294s177p16827294.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

To do two things at once is to do neither.

-—Publilius Syrus, Roman slave, first century B.C.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to