Extract the class PomTidy that tidies a POM.

Separate the code for tidying a POM from the Mojo stuff. This is a
preparatory step for adding a check goal.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19822 52ab4f32-60fc-0310-b215-8acea882cd1b
Transfer POM as String instead of StringBuilder.

String is a value object and therefore better suited for transferring
data, because it cannot be altered.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19823 52ab4f32-60fc-0310-b215-8acea882cd1b
Extract IndentCalculator.

Avoid duplicate code.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19824 52ab4f32-60fc-0310-b215-8acea882cd1b
Use unit tests instead of integration tests.

This provides a faster feedback cycle and the JUnit messages for failed
assertions are more meaningful.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19825 52ab4f32-60fc-0310-b215-8acea882cd1b
Extract SectionSorter.

Start to make the code more explanatory.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19826 52ab4f32-60fc-0310-b215-8acea882cd1b
[MOJO-1981] Fixed rendering of new line between groups.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19827 52ab4f32-60fc-0310-b215-8acea882cd1b
Improve readability by extracting getPrecedingText(...).

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19828 52ab4f32-60fc-0310-b215-8acea882cd1b
Clean up test pom-with-comments to show the bug only.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19829 52ab4f32-60fc-0310-b215-8acea882cd1b
[MOJO-1991] Write comments with indent.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19830 52ab4f32-60fc-0310-b215-8acea882cd1b
[MOJO-1990] Fix indent of POM tail.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19831 52ab4f32-60fc-0310-b215-8acea882cd1b
[MOJO-1945] Add tidy:check goal.

Fail the build if the POM is not tidy. Output a request that tidy:pom
should be executed.

git-svn-id: https://svn.codehaus.org/mojo/trunk/mojo/tidy-maven-plugin@19842 52ab4f32-60fc-0310-b215-8acea882cd1b
Don't track Maven's target folder.
Use Travis CI for continuous integration.

http://travis-ci.org
Add repository documentation.