[
https://jira.codehaus.org/browse/MNG-3397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=339860#comment-339860
]
Jifeng Zhang edited comment on MNG-3397 at 1/23/14 5:21 AM:
------------------------------------------------------------
It would be great to have this feature. At least 50% of the lines of my poms is
the dependencies section. With the support of using attributes, the dependency
section will be reduced at least 70% in lines and more easy to read.
For example, from 4 lines:
{code:xml}
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
</dependency>
{code}
to just one line:
{code:xml}
<dependency groupId="org.apache.maven.plugins"
artifactId="maven-surefire-plugin" version="2.16"/>
{code}
was (Author: jifeng.zhang):
It would be great to have this feature. At least 50% of the lines of my
poms are the dependencies section. With the support of using attributes, the
dependency section will be reduced at least 70% in length and more easy to read.
For example, from 4 lines:
<dependency>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.16</version>
</dependency>
to one line:
<dependency groupId="org.apache.maven.plugins"
artifactId="maven-surefire-plugin" version="2.16"/>
> [RFC] change the POM to use attributes
> --------------------------------------
>
> Key: MNG-3397
> URL: https://jira.codehaus.org/browse/MNG-3397
> Project: Maven 2 & 3
> Issue Type: Bug
> Components: POM
> Affects Versions: 2.0.8
> Reporter: Brett Porter
> Fix For: Issues to be reviewed for 4.x
>
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira