[Commented] (MNG-6227) Handling multiple tags for a property that is only expecting one value

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Commented] (MNG-6227) Handling multiple tags for a property that is only expecting one value

Robert Scholte (Jira)

    [ https://issues.apache.org/jira/browse/MNG-6227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17236798#comment-17236798 ]

Michael Osipov commented on MNG-6227:
-------------------------------------

Looked into the code, the problem is that the {{MavenXpp3Reader}}/{{MavenXpp3ReaderEx}} are generated from the Modello model which builds the {{Properties}} member. It cannot happen later in the validation phase. This requires a Modello change which will enforce all properties to be unique, everything will not work, imho.

> Handling multiple tags for a property that is only expecting one value
> ----------------------------------------------------------------------
>
>                 Key: MNG-6227
>                 URL: https://issues.apache.org/jira/browse/MNG-6227
>             Project: Maven
>          Issue Type: Bug
>          Components: POM
>    Affects Versions: 3.5.0
>            Reporter: Gili
>            Priority: Major
>
> Following up on https://github.com/querydsl/apt-maven-plugin/issues/56, I am expecting Maven to fail the build, issue a warning, or allow plugins to do the same when users pass multiple values for a property that is expecting one value.
> Testcase: https://github.com/querydsl/apt-maven-plugin/issues/56



--
This message was sent by Atlassian Jira
(v8.3.4#803005)