What if my plugin is written in Ant & not Java? Also, when I run the maven
install command to build & install my plugin, it isn't adding my resources
directory to the jar file. How do I get it to do this?
Thanks!!
Arnaud Bailly-3 wrote:
>
> fogwolf <[EMAIL PROTECTED]> writes:
>
>> Hi there.
>>
>> I am converting my Maven 1 environment to Maven 2 & am running into an
>> issue
>> with a plugin I'm trying to update. This plugin basically filters some
>> template files, replacing placeholder values, & places them within
>> directories under the project on which the plugin is being run. In Maven
>> 1
>> these templates in jelly format & were bundled with the plugin. I'm
>> finding
>> in Maven 2 you can't seem to be able to bundle templates like this with
>> the
>> plugin - is this true? I feel like this makes the plugin less
>
> I think this is false if you access the templates from the classpath
> (ie. getClass().getResourceAsStream("xxx/yyy/zzz")). Then you can
> bundle your templates (or any other resource files) within your
> plugin's jar. Alternatively, you could bundle templates as separate
> jar and make your plugin depend on it.
>
> regards
> --
> OQube < software engineering \ génie logiciel >
> Arnaud Bailly, Dr.
> \web> http://www.oqube.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/maven-2-plugin-dev-question-tf2202791.html#a6152725
Sent from the Maven Developers forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]