You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Xeno Amess <xe...@gmail.com> on 2025/02/12 01:32:54 UTC

Re: thought: allow exclude dependencies from parent in maven4?

so I think I finished the coding of exclusion we discussed I guess?
https://github.com/codehaus-plexus/modello/pull/483
https://github.com/apache/maven-resolver/pull/654
https://github.com/apache/maven/pull/2106
please have a look, thx

Xeno Amess <xe...@gmail.com> 于2025年1月20日周一 18:08写道:

> issue in medello opened.
> https://github.com/codehaus-plexus/modello/issues/482
> let's see what they would say.
>
> ps: a cheaper way is adding a post-modify plugin after the xsd generated,
> if you all think it better way, I can approach this way also.
>
> Xeno Amess <xe...@gmail.com> 于2025年1月20日周一 16:21写道:
>
>> seems modello does not support this feature yet...
>> we need adding both sequence and attribute into complexType, like this:
>>
>>     <xs:complexType>
>>       <xs:sequence>
>>         <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
>>       </xs:sequence>
>>       <xs:attribute name="combine.children" type="xs:string" use="optional">
>>   <xs:annotation>
>>     <xs:documentation source="version">4.0.0+</xs:documentation>
>>     <xs:documentation source="description">
>>
>>         {@code combine.children}: available values are {@code merge} (default) and {@code append}.
>>         @see &amp;lt;a href=&amp;quot;https://maven.apache.org/pom.html#Plugins&amp;quot;&amp;gt;POM Reference documentation&amp;lt;/a&amp;gt;
>>         @see &amp;lt;a href=&amp;quot;https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html&amp;quot;&amp;gt;Xpp3DomUtils&amp;lt;/a&amp;gt;
>>
>>       </xs:documentation>
>>   </xs:annotation>
>> </xs:attribute>
>>       <xs:attribute name="combine.self" type="xs:string" use="optional">
>>         <xs:annotation>
>>           <xs:documentation source="version">4.0.0+</xs:documentation>
>>           <xs:documentation source="description">
>>
>>                   {@code combine.self}: available values are {@code merge} (default) and {@code override}.
>>                   @see &amp;lt;a href=&amp;quot;https://maven.apache.org/pom.html#Plugins&amp;quot;&amp;gt;POM Reference documentation&amp;lt;/a&amp;gt;
>>                   @see &amp;lt;a href=&amp;quot;https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html&amp;quot;&amp;gt;Xpp3DomUtils&amp;lt;/a&amp;gt;
>>
>>                 </xs:documentation>
>>         </xs:annotation>
>>       </xs:attribute>
>>     </xs:complexType>
>>
>> but I only found grammar for get attribute OR sequence into complexType
>> in modello
>> o.m.g.
>> I would have to investigate how to add such feature to modello first.
>>
>>
>> Xeno Amess <xe...@gmail.com> 于2025年1月20日周一 15:26写道:
>>
>>> @Piotr P. Karwasz
>>>
>>> understood.
>>> reproduced, yes.
>>> I would investigate it today.
>>> right now I already found how to solve it into the dest xsd, but I need
>>> some time to learn about how to insert it into the
>>> modello-generator&mdo-model.
>>>
>>

Re: thought: allow exclude dependencies from parent in maven4?

Posted by Tamás Cservenák <ta...@cservenak.net>.
Howdy,

In general, inheriting deps from parents that are OUT OF REACTOR is a bad thing.
Next, using parents that DO add deps (so those projects using it as
parent, all modules of it will inherit it) could still happen, and can
be ok as long as YOU CONTROL that parent (author).
So to me personally, this all boils down to "fix it" (the parent),
instead trying to circumvent things in child projects.

To me this whole problem or assumption is like "addressing the
symptom", instead of fixing the cause.

T


On Wed, Feb 12, 2025 at 2:34 AM Xeno Amess <xe...@gmail.com> wrote:
>
> so I think I finished the coding of exclusion we discussed I guess?
> https://github.com/codehaus-plexus/modello/pull/483
> https://github.com/apache/maven-resolver/pull/654
> https://github.com/apache/maven/pull/2106
> please have a look, thx
>
> Xeno Amess <xe...@gmail.com> 于2025年1月20日周一 18:08写道:
>
> > issue in medello opened.
> > https://github.com/codehaus-plexus/modello/issues/482
> > let's see what they would say.
> >
> > ps: a cheaper way is adding a post-modify plugin after the xsd generated,
> > if you all think it better way, I can approach this way also.
> >
> > Xeno Amess <xe...@gmail.com> 于2025年1月20日周一 16:21写道:
> >
> >> seems modello does not support this feature yet...
> >> we need adding both sequence and attribute into complexType, like this:
> >>
> >>     <xs:complexType>
> >>       <xs:sequence>
> >>         <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
> >>       </xs:sequence>
> >>       <xs:attribute name="combine.children" type="xs:string" use="optional">
> >>   <xs:annotation>
> >>     <xs:documentation source="version">4.0.0+</xs:documentation>
> >>     <xs:documentation source="description">
> >>
> >>         {@code combine.children}: available values are {@code merge} (default) and {@code append}.
> >>         @see &amp;lt;a href=&amp;quot;https://maven.apache.org/pom.html#Plugins&amp;quot;&amp;gt;POM Reference documentation&amp;lt;/a&amp;gt;
> >>         @see &amp;lt;a href=&amp;quot;https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html&amp;quot;&amp;gt;Xpp3DomUtils&amp;lt;/a&amp;gt;
> >>
> >>       </xs:documentation>
> >>   </xs:annotation>
> >> </xs:attribute>
> >>       <xs:attribute name="combine.self" type="xs:string" use="optional">
> >>         <xs:annotation>
> >>           <xs:documentation source="version">4.0.0+</xs:documentation>
> >>           <xs:documentation source="description">
> >>
> >>                   {@code combine.self}: available values are {@code merge} (default) and {@code override}.
> >>                   @see &amp;lt;a href=&amp;quot;https://maven.apache.org/pom.html#Plugins&amp;quot;&amp;gt;POM Reference documentation&amp;lt;/a&amp;gt;
> >>                   @see &amp;lt;a href=&amp;quot;https://codehaus-plexus.github.io/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html&amp;quot;&amp;gt;Xpp3DomUtils&amp;lt;/a&amp;gt;
> >>
> >>                 </xs:documentation>
> >>         </xs:annotation>
> >>       </xs:attribute>
> >>     </xs:complexType>
> >>
> >> but I only found grammar for get attribute OR sequence into complexType
> >> in modello
> >> o.m.g.
> >> I would have to investigate how to add such feature to modello first.
> >>
> >>
> >> Xeno Amess <xe...@gmail.com> 于2025年1月20日周一 15:26写道:
> >>
> >>> @Piotr P. Karwasz
> >>>
> >>> understood.
> >>> reproduced, yes.
> >>> I would investigate it today.
> >>> right now I already found how to solve it into the dest xsd, but I need
> >>> some time to learn about how to insert it into the
> >>> modello-generator&mdo-model.
> >>>
> >>

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