Simplified developer POMs #72
Replies: 3 comments 2 replies
-
Besides the usual GAV coordinates, components may have more attributes like classifier, scope etc. which needs to be covered accordingly. |
Beta Was this translation helpful? Give feedback.
-
out of curiosity: why not using polyglot-xml? So questions for me are:
|
Beta Was this translation helpful? Give feedback.
-
We should also consider tools like jQAssistant which could use a more or less canonical XML parser (except for property expansion). Enabling other formats to specify deps is nice (in particular if they make it better readable for humans), but as a tool maintainer I would not like to support (to) many formats. In particular I would not like to compute the effective model first before reason about it (like it's necessary with Gradle, though they seem to have a nice Java API for that). Perhaps we would otherwise end up with something like language-server-protocol (LSP) to support arbitrary tools. |
Beta Was this translation helpful? Give feedback.
-
One criticism of Maven is the verbosity of the
pom.xml
which stems from the intensive use of XML elements when attributes might suffice. For example, a current dependency declaration:could be written as:
each existing nested textual element flattened into an XML attribute. Or even as a
that's parsed into the individual model elements of a dependency. This approach could be applied to other elements that solely take text elements as child ones.
AFAIR, there were discussions about this in the context of the polyglot Maven efforts and backwards compatibility was to be achieved by transforming the developer POM into the original format on install and deploy. IIRC such improvements where already discussed on the mailing list under the "consumer poms" tagline.
Beta Was this translation helpful? Give feedback.
All reactions