And looks like this apply not only to plugins but also to shared libs for
maven (ASF also plexus and mojohous)

Sylwester

niedz., 10 wrz 2023, 09:00 użytkownik Hervé Boutemy <herve.bout...@free.fr>
napisał:

> Le samedi 9 septembre 2023, 19:33:51 CEST Václav Haisman a écrit :
> > On 25. 07. 23 20:56, Slawomir Jaranowski wrote:
> > > Hi
> > >
> > > I'm trying to update plexus-utils 3.5.x to plexus-utils/plexus-xml 4.x
> in
> > > maven-enforcer ....
> > >
> > > In maven-enforcer (and in many other plugins ...) is used, code like:
> > >              Xpp3Dom enforcerRules =
> > >              Xpp3DomBuilder.build(descriptorStream,
> > >
> > > "UTF-8");
> > >
> > > Xpp3Dom and Xpp3DomBuilder - has new implementation in plexus-xml ....
> but
> > > Maven 3.x exports
> > >
> > >      <!-- plexus-utils (for DOM-type fields in maven-model) -->
> > >
> <exportedPackage>org.codehaus.plexus.util.xml.Xpp3Dom</exportedPackag
> > >      e>
> > >
> > >
> <exportedPackage>org.codehaus.plexus.util.xml.pull.XmlPullParser</exported
> > > Package>
> > >
> > >
> <exportedPackage>org.codehaus.plexus.util.xml.pull.XmlPullParserException<
> > > /exportedPackage>
> > >
> > >
> <exportedPackage>org.codehaus.plexus.util.xml.pull.XmlSerializer</exported
> > > Package>
> > >
> > > It is very magical that we export classes but not export artifact
> > > which contains those classes ...
> > >
> > > so incompatibilite code for Xpp3Dom is used ...
> > >
> > > Any hints on how to process it.
> >
> > So, what is the takeaway of this tread for casual Maven plugin
> > developers like me? Should I avoid plexus-utils 4.x in Maven 3 plugins?
>
> more precisely: don't upgrade plexus-utils to 4 *if you need plexus-xml*
>
> our intent of splitting concerns between general non-XML utils vs XML is a
> success: upgrading plexus-utils will make clear which plugins
>
> but when you need XML details in your plugin = where Maven core has an
> impact,
> we are not clear yet on how to make the plexus xml update Maven 3 and 4
> compliant at the same time
>
> this thread needs to continue because we're not yet at the final
> conclusion,
> but this intermediate small message can be used for now:
>   don't upgrade plexus-utils to 4 *if you need plexus-xml*
>
> Regards,
>
> Hervé
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> For additional commands, e-mail: dev-h...@maven.apache.org
>
>

Reply via email to