You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by nicolas de loof <ni...@gmail.com> on 2007/06/05 15:08:16 UTC

any way to override a plugin dependency ?

Hello,

I've got a legacy project to convert from maven1 to maven2.
It uses castor to generate code based on an XSD.

castor plugin from mojo uses castor 0.9.7, and my project use castor 0.9.5,
and the generated code is not compatible (unmarshall returns "Object" in
0.9.7 !)

I've those options :
1 - adapt all my code to the uncompatile generated code
2 - find a way to force the castor plugin mojo to use castor-0.9.5
3 - use the antrun plugin to manually call castor:generate with the expected
version
4 - don't migrate to maven2

I don't think 2 is possible in maven 2.0. Many maven2 plugins are designed
to package invocation of another tool. Any change in the tool would require
a new plugin release. Is there any plan to make this possible in maven 2.1 ?

Re: any way to override a plugin dependency ?

Posted by nicolas de loof <ni...@gmail.com>.
Seems to work, I also though it didn't.


2007/6/5, Wendy Smoak <ws...@gmail.com>:
>
> On 6/5/07, nicolas de loof <ni...@gmail.com> wrote:
>
> > I've got a legacy project to convert from maven1 to maven2.
> > It uses castor to generate code based on an XSD.
> >
> > castor plugin from mojo uses castor 0.9.7, and my project use castor
> 0.9.5,
> > and the generated code is not compatible (unmarshall returns "Object" in
> > 0.9.7 !)
>
> <plugin><dependencies><dependency> should work, however there was a
> thread recently that implied it might not...
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: any way to override a plugin dependency ?

Posted by Wendy Smoak <ws...@gmail.com>.
On 6/5/07, nicolas de loof <ni...@gmail.com> wrote:

> I've got a legacy project to convert from maven1 to maven2.
> It uses castor to generate code based on an XSD.
>
> castor plugin from mojo uses castor 0.9.7, and my project use castor 0.9.5,
> and the generated code is not compatible (unmarshall returns "Object" in
> 0.9.7 !)

<plugin><dependencies><dependency> should work, however there was a
thread recently that implied it might not...

-- 
Wendy

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


Re: any way to override a plugin dependency ?

Posted by Werner Guttmann <we...@gmx.net>.
Sorry for a reply not really related to your question .. ;-). But being
committer for Castor, I just cannot resist to suggest switching to
Castor 1.1 and later where such issues should have been fixed.

Werner

nicolas de loof wrote:
> Hello,
> 
> I've got a legacy project to convert from maven1 to maven2.
> It uses castor to generate code based on an XSD.
> 
> castor plugin from mojo uses castor 0.9.7, and my project use castor 0.9.5,
> and the generated code is not compatible (unmarshall returns "Object" in
> 0.9.7 !)
> 
> I've those options :
> 1 - adapt all my code to the uncompatile generated code
> 2 - find a way to force the castor plugin mojo to use castor-0.9.5
> 3 - use the antrun plugin to manually call castor:generate with the
> expected
> version
> 4 - don't migrate to maven2
> 
> I don't think 2 is possible in maven 2.0. Many maven2 plugins are designed
> to package invocation of another tool. Any change in the tool would require
> a new plugin release. Is there any plan to make this possible in maven
> 2.1 ?
> 


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