« Return to Thread: [Proposal] Pom Code Style (WAS svn commit: r670264 - /maven/plugins/trunk/maven-site-plugin/pom.xml)

Re: [Proposal] Pom Code Style (WAS svn commit: r670264 - /maven/plugins/trunk/maven-site-plugin/pom.xml)

by John Casey-5 :: Rate this Message:

Reply to Author | View in Thread

Does that mean plugin configurations come first? That could be pretty
hard to wade through...

Raphaël Piéroni wrote:

> Hi folks,
>
> As i lazy user, i would like the automatic ordering to write things
> in a specific order: first come the things that have the greater
> chance to be changed/read,
> and then go to the end of the file with things that are not relevant
> for a reader/modifier
> ending with modelVersion.
>
> my 2 cents
>
> Raphaël
>
> 2008/6/24 John Casey <jdcasey@...>:
>  
>> It would probably be a good idea to reorder the fields in the maven.mdo file
>> inside the maven-model project, to reflect the preferred style. This should
>> have the effect of reordering the generated reference documentation and will
>> also affect the ordering achieved when a POM is written programmatically
>> using the xpp3 writer (I think).
>>
>> -john
>>
>> Benjamin Bentmann wrote:
>>    
>>> Vincent Siveton schrieb:
>>>
>>>      
>>>> I propose to improve [1] to add a code style for our pom files.
>>>>        
>>> +1 for some convention (which is documented as such).
>>>
>>>      
>>>> I see the following in this order.
>>>>        
>>> Considering other POMs like parent POMs and Mojo, your proposal should
>>> finally cover all POM elements (e.g. <packaging>, <url>, <licenses>,
>>> <developers> etc.).
>>>
>>> Whatever we agree upon, we might want to update the Maven Model Reference
>>> [0], too. I guess that was the ordering Dennis has chosen.
>>>
>>> If not already written down, the indentation style (2 spaces) should be
>>> mentioned, too.
>>>
>>>      
>>>> <project>
>>>>  ...
>>>> </project>
>>>>        
>>> I find your proposed ordering more intuitive than the current Model Ref.
>>>
>>>
>>> Benjamin
>>>
>>>
>>> [0] http://maven.apache.org/ref/current/maven-model/maven.html
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@...
>>> For additional commands, e-mail: dev-help@...
>>>
>>>      
>> --
>> John Casey
>> Developer, PMC Member - Apache Maven (http://maven.apache.org)
>> Blog: http://www.ejlife.net/blogs/buildchimp/
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@...
>> For additional commands, e-mail: dev-help@...
>>
>>
>>    

--
John Casey
Developer, PMC Member - Apache Maven (http://maven.apache.org)
Blog: http://www.ejlife.net/blogs/buildchimp/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: [Proposal] Pom Code Style (WAS svn commit: r670264 - /maven/plugins/trunk/maven-site-plugin/pom.xml)