On Wed, 2008-02-27 at 12:51 +0100, Fabian Christ wrote: > The problem with the pattern <dependency > groupId="org.apache.maven.archiva" artifactId= are the missing line > breaks and spaces. Your can't find the information of interest in such > a string. So people will start adding line breaks and you get nearly > the same POM structure as without attributes. Keep in mind that the > white space is your friend when designing something that should be > readable and easy to understand for a human reader. > > I have a little suggestion to get dependencies more structured. Move > the <scope> tag of dependencies to group the dependencies. I use this > pattern to keep long lists of dependencies more structured. > > <dependencies> > <compile> > <dependency>...</dependency> > <dependency>...</dependency> > <dependency>...</dependency> > </compile> > <runtime>...</runtime> > <provided>...</provided> > <test>...</test> > </dependencies> >
You can't do this, as you need to keep the order of things (you might want some runtime dependencies before other compile dependencies, or vice-versa, etc. I like the way it looks though :(