Re: How to read plexus/components.xml configuration from dynamically resolved artifact?

2014-05-04 Thread Grzegorz Słowikowski
Hi Jason Thanks for your response. I will try to describe, what I need. I'm developing sbt-compiler-maven-plugin [1]. This plugin is similar to maven-compiler-plugin. It compiles Java and Scala sources using SBT (Scala Build Tool) delegates. There are different delegates for different, not

Re: How to read plexus/components.xml configuration from dynamically resolved artifact?

2014-05-04 Thread Igor Fedorenko
If all compiler delegates have the same groupId/artifactId but different versions, then you can use standard maven plugin dependency resolution to achieve something very similar. Specify the default delegate groupId/artifactId/version as direct plugin dependency, but the user will still be able

Re: How to read plexus/components.xml configuration from dynamically resolved artifact?

2014-05-04 Thread Grzegorz Słowikowski
Hi Igor On 2014-05-04 14:08, Igor Fedorenko wrote: If all compiler delegates have the same groupId/artifactId but different versions, then you can use standard maven plugin dependency resolution to achieve something very similar. Specify the default delegate groupId/artifactId/version as

How to read plexus/components.xml configuration from dynamically resolved artifact?

2014-05-01 Thread Grzegorz Słowikowski
Hi I need to read implementation value of a component with specified role and role-hint from META-INF/plexus/components.xml resource of dynamically resolved artifact. In other words I want to do the same thing Maven does configuring mojo attributes with @Component( role = AnInterface.class hint

Re: How to read plexus/components.xml configuration from dynamically resolved artifact?

2014-05-01 Thread Jason van Zyl
What are you trying to do from a high level. Much of what Maven does to resolve, load and configure plugins dynamically can likely be reused, but if you tell me what you want I can point you at code you can lift. At a high level Maven: 1. Looks at some configuration and determines what the