Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-16 Thread Lennart Jörelid
s to a particular phase in the >> lifecycle? >> >> You can also make your own lifecycle if you wish but for the most part >> the >> >> default lifecycle is sufficient. Or even cahnge all the bindings for >> the >> >> default lifecycle. For the T

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-16 Thread Lennart Jörelid
ons points to > >> plugins. You can do that today, the enforcer plugin being a case in > point. > >> This mechanism already exists where you can create an extension point > as a > >> collection that gets injected into a plugin, and new implementations of > the >

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-16 Thread Tibor Digana
tp://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823781.html Sent from the Maven Developers mailing list archive at Nabble.com. - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-16 Thread Stephen Connolly
Because if extensions is true then there could be a custom lifecycle or packaging in the plugin and that *may* affect the build plan before it is constructed. On 15 January 2015 at 05:43, Kristian Rosenvold < kristian.rosenv...@gmail.com> wrote: > 2015-01-15 4:48 GMT+01:00 Igor Fedorenko : > > Al

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-16 Thread Kristian Rosenvold
. >> This mechanism already exists where you can create an extension point as a >> collection that gets injected into a plugin, and new implementations of the >> extension will be loaded dynamically when added as dependencies to that >> plugin in the POM. We can add this to any

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Kristian Rosenvold
We have been discussing this in the context of surefire, which uses these extension mechanisms, so both Tibor, Andreas and I are fully aware of what is possible. And as Jason says, there is a spectrum. I'm not sure how the line would be drawn, since ant is very free-form while gradle is "opinionate

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Lennart Jörelid
True, Kristian. But the pains of creating a Maven project A to host dependencies for plugins in project B seem ... small in comparison to injecting dynamic elements into the POM. Provided, of course, that one intends to re-use and unit test the plugin extension. 2015-01-14 16:10 GMT+01:00 Kristia

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Lennart Jörelid
cies to that > plugin in the POM. We can add this to any plugin today. If you wanted to > provide an extension point to the maven-jar-plugin to filter the manifest > before writing it into the JAR you can do that now. > >> > >> On Jan 15, 2015, at 5:57 AM, Tibor Diga

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Igor Fedorenko
Conceptually, I believe this is a case bad separation of concerns. Build tools and production code often require different development skills and techniques, have different dependencies. You really need to wear two different hats to work on the tools and production code, and I think many devs have

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Jason van Zyl
u wanted to >> provide an extension point to the maven-jar-plugin to filter the manifest >> before writing it into the JAR you can do that now. >> >> On Jan 15, 2015, at 5:57 AM, Tibor Digana wrote: >> >>> Maybe Jason can bring some light into this discuss

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Jason van Zyl
ou see that actually looking like? And for what? > Andreas > > > 2015-01-15 11:57 GMT+01:00 Tibor Digana : > >> Maybe Jason can bring some light into this discussion. >> Jason? >> >> >> >&g

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Kristian Rosenvold
n bring some light into this discussion. >> Jason? >> >> >> >> -- >> View this message in context: >> http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823611.html >> Sent from the Maven Developers mailing list arc

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Jason van Zyl
> View this message in context: > http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823611.html > Sent from the Maven Developers mailing list archive at Nabble.com. > > -

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Andreas Gudian
eas 2015-01-15 11:57 GMT+01:00 Tibor Digana : > Maybe Jason can bring some light into this discussion. > Jason? > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823611.htm

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-15 Thread Tibor Digana
Maybe Jason can bring some light into this discussion. Jason? -- View this message in context: http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823611.html Sent from the Maven Developers mailing list archive at Nabble.com

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Kristian Rosenvold
be able to control the injected > @Parameter(). > I have no idea how to do that and maybe Maven has already some hooks for > that. > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p582

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Kristian Rosenvold
2015-01-15 4:48 GMT+01:00 Igor Fedorenko : > Although I generally *strongly* discourage resolution of plugins and > plugin dependencies from the reactor Why ? Kristian - To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org F

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Igor Fedorenko
Although I generally *strongly* discourage resolution of plugins and plugin dependencies from the reactor, it is expected to work with maven 3.0+ for regular extensions=false plugins. If you have a testcase when it does not work, I can have a look. -- Regards, Igor On 2015-01-14 10:10, Kristian

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Tibor Digana
ected @Parameter(). I have no idea how to do that and maybe Maven has already some hooks for that. -- View this message in context: http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823565.html Sent from the Maven Developers mailing list archive at Nabbl

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Kristian Rosenvold
parameters on new proxy instance again, or? Is it possible to extend the > Classworld ClassLoader in plugin runtime? > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Plugable-Softcod

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Benson Margulies
his highlights the Groovy idea -- or at least the idea of a DSL that can be directly typed into the POM, which avoids both. > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823548.html >

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Tibor Digana
ossible to extend the Classworld ClassLoader in plugin runtime? -- View this message in context: http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823548.html Sent from the Maven Developers mailing list archive at

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Tibor Digana
not on the top of OSGi -- View this message in context: http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823531.html Sent from the Maven Developers mailing list archive at Nabble.com. --

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Benson Margulies
On Wed, Jan 14, 2015 at 10:10 AM, Kristian Rosenvold < kristian.rosenv...@gmail.com> wrote: > It is only inconvenient because maven cannot resolve the artifact from > the current reactor, or at least it was not able to when I made > testcases for this for surefire-providers. > OK, now I'm with yo

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Kristian Rosenvold
It is only inconvenient because maven cannot resolve the artifact from the current reactor, or at least it was not able to when I made testcases for this for surefire-providers. This means the extension has to be in a separate project and built/deployed entirely separate module; this is an annoyan

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Benson Margulies
So, I'm confused as to why asking people to add jars to the of a is seen as annoying or inconvenient. Can you deconfuse me? On Wed, Jan 14, 2015 at 8:19 AM, Kristian Rosenvold < kristian.rosenv...@gmail.com> wrote: > If we additionaly look for a solution that would work straight out of > the bo

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Kristian Rosenvold
If we additionaly look for a solution that would work straight out of the box for maven 3.0, the plugin could actually just use some kind of loader library that would load/detect the supplied artifact into the plugin classloader and use lazy container lookup logic when resolving the user-supplied s

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Kristian Rosenvold
Agreed Benson; I find it very interesting to reduce this problem initially, then we can grow it afterwards once we sort of understand what it would take. We could very well use standard DI to "export" the service-overrides from our custom expansions module. plexus annotations should do quite nicel

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Benson Margulies
yes, let's please decouple 'how do we get more code into the classspath' from 'how to we tell a plugin to use the code.' For the first, we have the plugin's dependencies. For the second, well, don't we have plexus component injection? Obviously, there are more modern alternatives, but shouldn't w

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Kristian Rosenvold
a reference to my object. That's flexibility. >> Even with script is better because the Surefire Users already reported JIRA >> bug that they want to customize surefire dependencies per execution. With >> static POM this is not possible. >> >> >> >> --

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Kristian Rosenvold
gt; >> > and write a RunOrder servis by setting it in to execution property: >> > >> > <> >> > hook.set(new RunOrder()); >> > >> > Tha's it, very simple. >> >

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Anders Hammar
> Even with script is better because the Surefire Users already reported JIRA > bug that they want to customize surefire dependencies per execution. With > static POM this is not possible. > > > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Plugab

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Tibor Digana
IRA bug that they want to customize surefire dependencies per execution. With static POM this is not possible. -- View this message in context: http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823485.html Sent from the Maven Developers mailing l

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Anders Hammar
> > > Tha's it, very simple. > > All we need to do is to provide the execution property 'hook' - the name > is > > just for illustration purposes only. > > > > > > > > -- > > View this message in context: > http://maven.40175.n5.n

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Kristian Rosenvold
t; and write a RunOrder servis by setting it in to execution property: > > <> > hook.set(new RunOrder()); > > Tha's it, very simple. > All we need to do is to provide the execution property 'hook' - the name is > just for illustration purposes only. >

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-14 Thread Tibor Digana
om/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823467.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

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-13 Thread Tibor Digana
m/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823391.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

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-13 Thread Kristian Rosenvold
surefire ? >> I guess we need to write a list of requirements. Later we will find >> possible >> solutions for each + API. >> >> >> >> -- >> View this message in context: >> http://

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-13 Thread Igor Fedorenko
of requirements. Later we will find possible solutions for each + API. -- View this message in context: http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823378.html Sent from the Maven Developers mailing list archive at Nabble.com

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-13 Thread Tibor Digana
Igor, can we join our visions and design together regarding compiler and surefire ? I guess we need to write a list of requirements. Later we will find possible solutions for each + API. -- View this message in context: http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-13 Thread Tibor Digana
odern and same simple presents to substitute SPI. -- View this message in context: http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823374.html Sent from the Maven Developers mailing list archive at Nabbl

Re: Plugable/Softcoded/Customized Maven Plugins

2015-01-13 Thread Igor Fedorenko
Do you think you can give a couple of representative examples that explain what you are trying to achieve? -- Regards, Igor On 2015-01-13 9:33, Tibor Digana wrote: Hi All, We want to prepare an experimental release of maven-surefire-plugin customizing the plugin behavior. Basically we want to

Plugable/Softcoded/Customized Maven Plugins

2015-01-13 Thread Tibor Digana
Hi All, We want to prepare an experimental release of maven-surefire-plugin customizing the plugin behavior. Basically we want to uncover open API and we expect a feedback from Maven users group. We have received many configuration requests in this plugin which increased JIRA issues. We believe t