Re: Dependency injection and Plexus Compilers
Jason, So I played around with expressions some more to see if I couldn't inject what was needed. From what I can tell the the expression evaluator is only applied to Mojos with Expressions in the compiler component being ignored. Ideally this compiler would leverage the standard compiler plugin (providing 'scons' as the compilerId to have it defer to the scons plexus compiler instance). If I was to add extra expressions I'd need to extend the compiler plugin to aggregate them. Am I missing something? can expressions be used in simple plexus components? Will I need to extend the compiler plugin to get what I need? Thanks for your help with this. rgds, ste sgargan wrote: To compile some internal linux based projects I'm looking to write a simple compiler that creates an scons or waf build file from the compiler configuration. I'm hoping to hook the artifacts the script creates back into maven so that it can manage them. We have fairly simple build requirements this far (i.e. a single platform) and internal knowledge of scons, hence this scons approach over something like the NAR or native plugins. I completely agree about coupling the compiler to the project object, I didn't like that approach from the beginning. I'll give the expressions another try and hopefully that will give me what I need. Thanks for your help. rgds, ste Jason van Zyl-2 wrote: 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] -- View this message in context: http://www.nabble.com/Dependency-injection-and-Plexus-Compilers-tp16827294s177p16993334.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]
Re: Dependency injection and Plexus Compilers
I need to see it, you can send it to me. On 1-May-08, at 10:12 AM, sgargan wrote: Jason, So I played around with expressions some more to see if I couldn't inject what was needed. From what I can tell the the expression evaluator is only applied to Mojos with Expressions in the compiler component being ignored. Ideally this compiler would leverage the standard compiler plugin (providing 'scons' as the compilerId to have it defer to the scons plexus compiler instance). If I was to add extra expressions I'd need to extend the compiler plugin to aggregate them. Am I missing something? can expressions be used in simple plexus components? Will I need to extend the compiler plugin to get what I need? Thanks for your help with this. rgds, ste sgargan wrote: To compile some internal linux based projects I'm looking to write a simple compiler that creates an scons or waf build file from the compiler configuration. I'm hoping to hook the artifacts the script creates back into maven so that it can manage them. We have fairly simple build requirements this far (i.e. a single platform) and internal knowledge of scons, hence this scons approach over something like the NAR or native plugins. I completely agree about coupling the compiler to the project object, I didn't like that approach from the beginning. I'll give the expressions another try and hopefully that will give me what I need. Thanks for your help. rgds, ste Jason van Zyl-2 wrote: 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] -- View this message in context: http://www.nabble.com/Dependency-injection-and-Plexus-Compilers-tp16827294s177p16993334.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 -- What matters is not ideas, but the people who have them. Good people can fix bad ideas, but good ideas can't save bad people. -- Paul Graham - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency injection and Plexus Compilers
To compile some internal linux based projects I'm looking to write a simple compiler that creates an scons or waf build file from the compiler configuration. I'm hoping to hook the artifacts the script creates back into maven so that it can manage them. We have fairly simple build requirements this far (i.e. a single platform) and internal knowledge of scons, hence this scons approach over something like the NAR or native plugins. I completely agree about coupling the compiler to the project object, I didn't like that approach from the beginning. I'll give the expressions another try and hopefully that will give me what I need. Thanks for your help. rgds, ste Jason van Zyl-2 wrote: 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] -- View this message in context: http://www.nabble.com/Dependency-injection-and-Plexus-Compilers-tp16827294s177p16976065.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]
Re: Dependency injection and Plexus Compilers
Thanks, I will take a look at this and see if it fits the bill. Hilco Wijbenga-2 wrote: On Tue, Apr 22, 2008 at 4:37 PM, sgargan [EMAIL PROTECTED] wrote: 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? Would maven-runtime be of use to you? I just noticed it on the Maven-dev list. It sounds like it does something at least similar to what you're asking for. http://svn.apache.org/repos/asf/maven/sandbox/trunk/shared/maven-runtime/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/Dependency-injection-and-Plexus-Compilers-tp16827294s177p16974127.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]
Re: Dependency injection and Plexus Compilers
On Tue, Apr 22, 2008 at 4:37 PM, sgargan [EMAIL PROTECTED] wrote: 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? Would maven-runtime be of use to you? I just noticed it on the Maven-dev list. It sounds like it does something at least similar to what you're asking for. http://svn.apache.org/repos/asf/maven/sandbox/trunk/shared/maven-runtime/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Dependency injection and Plexus Compilers
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]