Kostis Anagnostopoulos wrote:
> Hi Aleksei,
>
> Why is this patch necessary? Isn't the built-in <dependencies>
> elements of the maven-plugin section enough?
>
> I'm asking because if there is a need for it, then i should also
> update the maven-jaxb1-plugin.
Maybe I'm missing something obvious, but I didn't spot the code that
copies the current project's dependencies and make them available to the
XJC. So as far as I could tell, there was no way to add a XJC plugin in
short of modifying the POM of maven-jaxb2-plugin.
But it sounds like you've been already successfully using XJC plugins
with this maven plugin for some time now. I'm curious how XJC found XJC
plugins.
> Regards,
> Kostis
>
> On 1/29/07, Aleksei Valikov <valikov_at_gmx.net> wrote:
>> Hi Kohsuke,
>>
>> > I made a patch for maven-jaxb2-plugin so that XJC plugins can be
>> > specified as a configuration of the mojo. See below for an example.
>> >
>> > Would it be possible to integrate that to the plugin? If it's OK, I'd
>> > happy to commit. I'd also like to then release a new version of this
>> > plugin, so that I can use this in another project of mine.
>>
>> Thanks for the patch, nice idea.
>>
>> I had to rework it a bit. It seems like your version does not resolve
>> dependencies of plugins. For instance, if I add
>>
>> <plugins>
>> <plugin>
>> <groupId>org.jvnet.jaxb2.maven2</groupId>
>> <artifactId>maven-jaxb2-plugin-testing</artifactId>
>> <version>0.2</version>
>> </plugin>
>> </plugins>
>>
>>
>> URL of the JAR maven-jaxb2-plugin-testing-0.2.jar is added to the classpaths,
>> but its dependencies are not. Consequently, the plugin cannot be instantiated by
>> JAXB because of the class not found errors.
>>
>> I've added transitive plugin dependency resolution to correct this. Please see
>> the tests/two sample project in maven-jaxb2-plugin.
>> I'd also be grateful if you test it on your machine/in your projects.
>>
>> These enhancements are made in the version 0.2. Works fine, all tests/sample
>> projects function well, so I'll go with a release.
>>
>> Bye.
>> /lexi
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
>> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com