You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by pjungwir <ma...@9stmaryrd.com> on 2006/10/13 17:36:23 UTC

plugin annotations on plugin members' classes

Hello,

The plugin I'm writing wants some configuration xml like this:

<configuration>
    ...
    <classPath>
        <mainClass>com.whatever.Main</mainClass>
        <cp>this.jar;that.jar</cp>
    </classPath>
    ...
</configuration>

The classPath element is required, and the mainClass element is also
required.
But maven doesn't seem to care about annotations I put on ClassPath.java.
It only looks at annotations on the mojo class.
Is there any way I can make <mainClass> be required?

Thanks,
Paul

-- 
View this message in context: http://www.nabble.com/plugin-annotations-on-plugin-members%27-classes-tf2437892.html#a6798129
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: plugin annotations on plugin members' classes

Posted by pjungwir <ma...@9stmaryrd.com>.

dan tran wrote:
> 
> Not that I know of, you will need to validate it your self.
> 
> but you can file a JIRA against MNG for this feature enhancement
> 

Hi Dan, thanks for your reply (this one and the many others!). I've been
thinking about filing a jira, and maybe starting on a patch. I think the
first step would be to include some extra data in plugin.xml. It would
probably break things to add additional <parameter> tags, but what if
complex parameters had sub tags? Then whatever code doesn't know about them
could just ignore them.

Step 2 is making maven read those tags and do something with them. Of course
this shouldn't break plugins that don't have those tags.

Step 3 is making the plugin documentation include them in the parameter
tables.

Anything else?

Thanks,
Paul

-- 
View this message in context: http://www.nabble.com/plugin-annotations-on-plugin-members%27-classes-tf2437892.html#a6799184
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: plugin annotations on plugin members' classes

Posted by Dan Tran <da...@gmail.com>.
Not that I know of, you will need to validate it your self.

but you can file a JIRA against MNG for this feature enhancement

-D


On 10/13/06, pjungwir <ma...@9stmaryrd.com> wrote:
>
>
> Hello,
>
> The plugin I'm writing wants some configuration xml like this:
>
> <configuration>
>    ...
>    <classPath>
>        <mainClass>com.whatever.Main</mainClass>
>        <cp>this.jar;that.jar</cp>
>    </classPath>
>    ...
> </configuration>
>
> The classPath element is required, and the mainClass element is also
> required.
> But maven doesn't seem to care about annotations I put on ClassPath.java.
> It only looks at annotations on the mojo class.
> Is there any way I can make <mainClass> be required?
>
> Thanks,
> Paul
>
> --
> View this message in context:
> http://www.nabble.com/plugin-annotations-on-plugin-members%27-classes-tf2437892.html#a6798129
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>