Hi.
I don't quite get it. You just mvn clean install plugin and it's
available to the project. I also have several project-specific Maven
plugins. They just reside in their own modules, build during the
whole build and thus available to the subsequent modules.
Can you be more specific? I'm quite new to Maven, so I don't really
understand where you've put the plugin code, the project code, and
what's in your pom.xml.
Okay, take a look at hyperjaxb3.dev.java.net.
From the root master POM:
<modules>
<!-- General -->
<module>runtime</module>
<module>tools</module>
<module>testing</module>
<!-- Hibernate -->
<module>hibernate-mapping</module>
<module>hibernate-configuration</module>
<module>hibernate-customizations</module>
<module>hibernate-roundtrip</module>
<module>hibernate-runtime</module>
<module>hibernate-plugin</module>
<!-- EJB -->
<module>ejb-roundtrip</module>
<module>ejb-schemas</module>
<module>ejb-plugin</module>
<!-- Maven -->
<module>maven</module>
<module>maven-testing</module>
<!-- Tests -->
<module>tests</module>
<module>ejb-tests</module>
</modules>
All modules up to Maven are just normal project modules. maven contains the
maven-hyperjaxb3-plugin. This plugin is used later on in tests and ejb-tests
modules.
So you just have to create a separate plugin module (which is no different from
normal modules, it's just maven-plugin packaging) and use the plugin in further
modules.
The only possible problem I see is when your plugin is too tightly integrated
into you module. In this case you may need to divide this module into two parts.
Bye.
/lexi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]