Type: New Feature
Affects Version/s: 3.0.4
Fix Version/s: None
Maven's XML format can be a bit verbose. For example, a dependency takes 5 lines:
This means that in an editor like mine, you can only see 5 dependencies at once.
I could compact this like this:
But (1) this is too wide for my editor at 129 chars and (2) someone will reformat it at some point! For simple data types (e.g. string or ints) if we could use attributes here it'd be shorter.
<dependency groupId="junit" artifactId="junit" version="4.4" scope="test/>
This would reduce tying by about 30%. Homing would faster too, making editing POMs faster, as you don't have to cursor about to find the bit you want. Finally, as more data is displayed (I could see 25 dependencies where before I could see only 5, a 500% increase in this example), it'll make a project easier and faster to understand.
This also applies to other XML elements:
<resource directory="src/main/resources" filtering="true"/>
I might attach a completely reduced pom later on.