You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2023/04/08 21:11:44 UTC

[maven-doap-plugin] branch MDOAP-63 updated (7e599c2 -> 017be8b)

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a change to branch MDOAP-63
in repository https://gitbox.apache.org/repos/asf/maven-doap-plugin.git


 discard 7e599c2  [MDOAP-63] Formatting
 discard 4bba70c  [MDOAP-63] Upgrade parent POM to 39
     new a568c25  [MDOAP-63] Upgrade parent POM to 39
     new 017be8b  [MDOAP-63] Formatting

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (7e599c2)
            \
             N -- N -- N   refs/heads/MDOAP-63 (017be8b)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                                      | 1 +
 src/main/java/org/apache/maven/plugin/doap/DoapMojo.java     | 1 -
 src/test/java/org/apache/maven/plugin/doap/DoapMojoTest.java | 1 -
 src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java | 1 -
 4 files changed, 1 insertion(+), 3 deletions(-)


[maven-doap-plugin] 01/02: [MDOAP-63] Upgrade parent POM to 39

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MDOAP-63
in repository https://gitbox.apache.org/repos/asf/maven-doap-plugin.git

commit a568c257d03067f759c939c6596484a92a01c861
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sat Apr 8 23:03:32 2023 +0200

    [MDOAP-63] Upgrade parent POM to 39
---
 pom.xml | 28 +++-------------------------
 1 file changed, 3 insertions(+), 25 deletions(-)

diff --git a/pom.xml b/pom.xml
index 52bb63f..cbda2b7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -25,8 +25,8 @@ under the License.
   <parent>
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-plugins</artifactId>
-    <version>34</version>
-    <relativePath>../../pom/maven/maven-plugins/pom.xml</relativePath>
+    <version>39</version>
+    <relativePath/>
   </parent>
 
   <artifactId>maven-doap-plugin</artifactId>
@@ -206,25 +206,6 @@ under the License.
               </locales>
             </configuration>
           </plugin>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-changes-plugin</artifactId>
-            <version>2.8</version>
-            <configuration>
-              <!-- For JIRA-report -->
-              <columnNames>Type,Key,Summary,Assignee,Status,Resolution,Fix Version</columnNames>
-              <onlyCurrentVersion>true</onlyCurrentVersion>
-              <resolutionIds>Closed</resolutionIds>
-              <sortColumnNames>Type,Key</sortColumnNames>
-            </configuration>
-            <reportSets>
-              <reportSet>
-                <reports>
-                  <report>jira-report</report>
-                </reports>
-              </reportSet>
-            </reportSets>
-          </plugin>
         </plugins>
       </reporting>
     </profile>
@@ -236,15 +217,12 @@ under the License.
             <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-invoker-plugin</artifactId>
+              <version>3.5.1</version>
               <configuration>
                 <goals>
                   <goal>clean</goal>
                   <goal>${project.groupId}:${project.artifactId}:${project.version}:generate</goal>
                 </goals>
-                <properties>
-                  <!-- e.g. ensure that Java7 picks up TLSv1.2 when connecting with Central -->
-                  <https.protocols>${https.protocols}</https.protocols>
-                </properties>
               </configuration>
             </plugin>
           </plugins>


[maven-doap-plugin] 02/02: [MDOAP-63] Formatting

Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch MDOAP-63
in repository https://gitbox.apache.org/repos/asf/maven-doap-plugin.git

commit 017be8bf53baf3398701a05d9249393344586703
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sat Apr 8 23:05:00 2023 +0200

    [MDOAP-63] Formatting
---
 pom.xml                                            |   22 +-
 .../org/apache/maven/plugin/doap/DoapMojo.java     | 2154 ++++++++------------
 .../org/apache/maven/plugin/doap/DoapUtil.java     |  702 +++----
 .../plugin/doap/options/ASFExtOptionsUtil.java     |  165 +-
 .../org/apache/maven/plugin/doap/DoapMojoTest.java |  514 +++--
 .../org/apache/maven/plugin/doap/DoapUtilTest.java |  232 +--
 .../plugin/doap/stubs/AsfDoapProjectStub.java      |   78 +-
 .../maven/plugin/doap/stubs/DoapProjectStub.java   |   85 +-
 8 files changed, 1685 insertions(+), 2267 deletions(-)

diff --git a/pom.xml b/pom.xml
index cbda2b7..1802120 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,5 +1,4 @@
-<?xml version='1.0' encoding='UTF-8'?>
-
+<?xml version="1.0" encoding="UTF-8"?>
 <!--
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
@@ -18,7 +17,6 @@ KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
 -->
-
 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
   <modelVersion>4.0.0</modelVersion>
 
@@ -26,7 +24,7 @@ under the License.
     <groupId>org.apache.maven.plugins</groupId>
     <artifactId>maven-plugins</artifactId>
     <version>39</version>
-    <relativePath/>
+    <relativePath />
   </parent>
 
   <artifactId>maven-doap-plugin</artifactId>
@@ -43,8 +41,8 @@ under the License.
   <scm>
     <connection>scm:git:https://gitbox.apache.org/repos/asf/maven-doap-plugin.git</connection>
     <developerConnection>scm:git:https://gitbox.apache.org/repos/asf/maven-doap-plugin.git</developerConnection>
-    <url>https://github.com/apache/maven-doap-plugin/tree/${project.scm.tag}</url>
     <tag>HEAD</tag>
+    <url>https://github.com/apache/maven-doap-plugin/tree/${project.scm.tag}</url>
   </scm>
   <issueManagement>
     <system>JIRA</system>
@@ -170,13 +168,6 @@ under the License.
       <plugin>
         <groupId>org.codehaus.modello</groupId>
         <artifactId>modello-maven-plugin</artifactId>
-        <executions>
-          <execution>
-            <goals>
-              <goal>java</goal>
-            </goals>
-          </execution>
-        </executions>
         <configuration>
           <version>1.0.0</version>
           <models>
@@ -185,6 +176,13 @@ under the License.
             <model>src/main/mdo/extOptions.mdo</model>
           </models>
         </configuration>
+        <executions>
+          <execution>
+            <goals>
+              <goal>java</goal>
+            </goals>
+          </execution>
+        </executions>
       </plugin>
     </plugins>
   </build>
diff --git a/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java b/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
index 32ad894..e2484a3 100644
--- a/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
+++ b/src/main/java/org/apache/maven/plugin/doap/DoapMojo.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugin.doap;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -9,7 +7,7 @@ package org.apache.maven.plugin.doap;
  * "License"); you may not use this file except in compliance
  * with the License.  You may obtain a copy of the License at
  *
- *  http://www.apache.org/licenses/LICENSE-2.0
+ *   http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing,
  * software distributed under the License is distributed on an
@@ -18,6 +16,27 @@ package org.apache.maven.plugin.doap;
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.maven.plugin.doap;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.Writer;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.text.DateFormat;
+import java.text.ParseException;
+import java.text.SimpleDateFormat;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.Comparator;
+import java.util.Date;
+import java.util.List;
+import java.util.Locale;
+import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Set;
+import java.util.TimeZone;
 
 import org.apache.maven.artifact.Artifact;
 import org.apache.maven.artifact.factory.ArtifactFactory;
@@ -60,26 +79,6 @@ import org.codehaus.plexus.util.WriterFactory;
 import org.codehaus.plexus.util.xml.PrettyPrintXMLWriter;
 import org.codehaus.plexus.util.xml.XMLWriter;
 
-import java.io.File;
-import java.io.IOException;
-import java.io.Writer;
-import java.net.MalformedURLException;
-import java.net.URL;
-import java.text.DateFormat;
-import java.text.ParseException;
-import java.text.SimpleDateFormat;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.Comparator;
-import java.util.Date;
-import java.util.List;
-import java.util.Locale;
-import java.util.Map;
-import java.util.Map.Entry;
-import java.util.Set;
-import java.util.TimeZone;
-
 /**
  * <p>
  * Generate a <a href="http://usefulinc.com/ns/doap">Description of a Project (DOAP)</a> file from the main information
@@ -92,14 +91,12 @@ import java.util.TimeZone;
  * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
  * @since 1.0-beta-1
  */
-@Mojo( name = "generate" )
-public class DoapMojo
-    extends AbstractMojo
-{
+@Mojo(name = "generate")
+public class DoapMojo extends AbstractMojo {
     /**
      * UTC Time Zone
      */
-    private static final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone( "UTC" );
+    private static final TimeZone UTC_TIME_ZONE = TimeZone.getTimeZone("UTC");
 
     /**
      * Date format for <lastUpdated/> tag in the repository metadata, i.e.: yyyyMMddHHmmss
@@ -111,13 +108,12 @@ public class DoapMojo
      */
     private static final DateFormat DOAP_DATE_FORMAT;
 
-    static
-    {
-        REPOSITORY_DATE_FORMAT = new SimpleDateFormat( "yyyyMMddHHmmss", Locale.ENGLISH );
-        REPOSITORY_DATE_FORMAT.setTimeZone( UTC_TIME_ZONE );
+    static {
+        REPOSITORY_DATE_FORMAT = new SimpleDateFormat("yyyyMMddHHmmss", Locale.ENGLISH);
+        REPOSITORY_DATE_FORMAT.setTimeZone(UTC_TIME_ZONE);
 
-        DOAP_DATE_FORMAT = new SimpleDateFormat( "yyyy-MM-dd", Locale.ENGLISH );
-        DOAP_DATE_FORMAT.setTimeZone( UTC_TIME_ZONE );
+        DOAP_DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd", Locale.ENGLISH);
+        DOAP_DATE_FORMAT.setTimeZone(UTC_TIME_ZONE);
     }
 
     // ----------------------------------------------------------------------
@@ -163,13 +159,13 @@ public class DoapMojo
     /**
      * The POM from which information will be extracted to create a DOAP file.
      */
-    @Parameter( defaultValue = "${project}", readonly = true, required = true )
+    @Parameter(defaultValue = "${project}", readonly = true, required = true)
     private MavenProject project;
 
     /**
      * The name of the DOAP file that will be generated.
      */
-    @Parameter( property = "doapFile", defaultValue = "doap_${project.artifactId}.rdf", required = true )
+    @Parameter(property = "doapFile", defaultValue = "doap_${project.artifactId}.rdf", required = true)
     private String doapFile;
 
     /**
@@ -177,7 +173,7 @@ public class DoapMojo
      *
      * @since 1.1
      */
-    @Parameter( defaultValue = "${project.reporting.outputDirectory}", required = true )
+    @Parameter(defaultValue = "${project.reporting.outputDirectory}", required = true)
     private String outputDirectory;
 
     /**
@@ -185,7 +181,7 @@ public class DoapMojo
      *
      * @since 1.0
      */
-    @Parameter( defaultValue = "${localRepository}", required = true, readonly = true )
+    @Parameter(defaultValue = "${localRepository}", required = true, readonly = true)
     private ArtifactRepository localRepository;
 
     /**
@@ -193,7 +189,7 @@ public class DoapMojo
      *
      * @since 1.0
      */
-    @Parameter( defaultValue = "${project.remoteArtifactRepositories}", required = true, readonly = true )
+    @Parameter(defaultValue = "${project.remoteArtifactRepositories}", required = true, readonly = true)
     private List<ArtifactRepository> remoteRepositories;
 
     /**
@@ -225,7 +221,7 @@ public class DoapMojo
      *
      * @since 1.1
      */
-    @Parameter( defaultValue = "${settings}", readonly = true, required = true )
+    @Parameter(defaultValue = "${settings}", readonly = true, required = true)
     protected Settings settings;
 
     // ----------------------------------------------------------------------
@@ -238,7 +234,7 @@ public class DoapMojo
      * @deprecated Since 1.0. Instead of, configure
      *             <code>&lt;doapOptions&gt;&lt;category/&gt;&lt;/doapOptions&gt;</code> parameter.
      */
-    @Parameter( property = "category" )
+    @Parameter(property = "category")
     private String category;
 
     /**
@@ -247,7 +243,7 @@ public class DoapMojo
      * @deprecated Since 1.0. Instead of, configure
      *             <code>&lt;doapOptions&gt;&lt;programmingLanguage/&gt;&lt;/doapOptions&gt;</code> parameter.
      */
-    @Parameter( property = "language" )
+    @Parameter(property = "language")
     private String language;
 
     /**
@@ -266,7 +262,7 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#">http://usefulinc.com/ns/doap#</a>
      * @since 1.0
      */
-    @Parameter( property = "doapOptions" )
+    @Parameter(property = "doapOptions")
     private DoapOptions doapOptions;
 
     /**
@@ -294,7 +290,7 @@ public class DoapMojo
      * @see ASFExtOptionsUtil#isASFProject(MavenProject)
      * @since 1.0
      */
-    @Parameter( property = "asfExtOptions" )
+    @Parameter(property = "asfExtOptions")
     private ASFExtOptions asfExtOptions;
 
     /**
@@ -305,7 +301,7 @@ public class DoapMojo
      *
      * @since 1.0
      */
-    @Parameter( property = "lang", defaultValue = "en", required = true )
+    @Parameter(property = "lang", defaultValue = "en", required = true)
     private String lang;
 
     /**
@@ -324,7 +320,7 @@ public class DoapMojo
      *
      * @since 1.0
      */
-    @Parameter( property = "about", defaultValue = "${project.url}" )
+    @Parameter(property = "about", defaultValue = "${project.url}")
     private String about;
 
     /**
@@ -332,7 +328,7 @@ public class DoapMojo
      *
      * @since 1.1
      */
-    @Parameter( defaultValue = "true" )
+    @Parameter(defaultValue = "true")
     private boolean validate;
 
     /**
@@ -360,7 +356,7 @@ public class DoapMojo
      *
      * @since 1.1
      */
-    @Parameter( property = "maven.doap.skip", defaultValue = "false" )
+    @Parameter(property = "maven.doap.skip", defaultValue = "false")
     private boolean skip;
 
     /**
@@ -383,7 +379,7 @@ public class DoapMojo
      *
      * @since 1.1
      */
-    @Parameter( property = "extOptions" )
+    @Parameter(property = "extOptions")
     private ExtOptions[] extOptions;
 
     /**
@@ -400,48 +396,39 @@ public class DoapMojo
     /**
      * {@inheritDoc}
      */
-    public void execute()
-        throws MojoExecutionException
-    {
-        if ( skip )
-        {
-            getLog().info( "Skipping DOAP generation" );
+    public void execute() throws MojoExecutionException {
+        if (skip) {
+            getLog().info("Skipping DOAP generation");
             return;
         }
 
         // single artifact
-        if ( artifact != null )
-        {
-            MavenProject givenProject = getMavenProject( artifact );
-            if ( givenProject != null )
-            {
-                File outDir = new File( outputDirectory );
-                if ( !outDir.isAbsolute() )
-                {
-                    outDir = new File( project.getBasedir(), outputDirectory );
+        if (artifact != null) {
+            MavenProject givenProject = getMavenProject(artifact);
+            if (givenProject != null) {
+                File outDir = new File(outputDirectory);
+                if (!outDir.isAbsolute()) {
+                    outDir = new File(project.getBasedir(), outputDirectory);
                 }
-                File outFile = new File( outDir, artifact.getDoapFileName() );
-                writeDoapFile( givenProject, outFile );
+                File outFile = new File(outDir, artifact.getDoapFileName());
+                writeDoapFile(givenProject, outFile);
                 return;
             }
         }
 
         // current project
-        File outFile = new File( doapFile );
-        if ( !outFile.isAbsolute() )
-        {
-            outFile = new File( project.getBasedir(), doapFile );
+        File outFile = new File(doapFile);
+        if (!outFile.isAbsolute()) {
+            outFile = new File(project.getBasedir(), doapFile);
         }
-        if ( !doapFile.replaceAll( "\\\\", "/" ).contains( "/" ) )
-        {
-            File outDir = new File( outputDirectory );
-            if ( !outDir.isAbsolute() )
-            {
-                outDir = new File( project.getBasedir(), outputDirectory );
+        if (!doapFile.replaceAll("\\\\", "/").contains("/")) {
+            File outDir = new File(outputDirectory);
+            if (!outDir.isAbsolute()) {
+                outDir = new File(project.getBasedir(), outputDirectory);
             }
-            outFile = new File( outDir, doapFile );
+            outFile = new File(outDir, doapFile);
         }
-        writeDoapFile( project, outFile );
+        writeDoapFile(project, outFile);
     }
 
     // ----------------------------------------------------------------------
@@ -453,50 +440,39 @@ public class DoapMojo
      * @return the maven project for the given doap artifact
      * @since 1.1
      */
-    private MavenProject getMavenProject( DoapArtifact artifact )
-    {
-        if ( artifact == null )
-        {
+    private MavenProject getMavenProject(DoapArtifact artifact) {
+        if (artifact == null) {
             return null;
         }
 
-        if ( StringUtils.isEmpty( artifact.getGroupId() ) || StringUtils.isEmpty( artifact.getArtifactId() )
-            || StringUtils.isEmpty( artifact.getVersion() ) )
-        {
-            getLog().warn( "Missing groupId or artifactId or version in <artifact/> parameter, ignored it." );
+        if (StringUtils.isEmpty(artifact.getGroupId())
+                || StringUtils.isEmpty(artifact.getArtifactId())
+                || StringUtils.isEmpty(artifact.getVersion())) {
+            getLog().warn("Missing groupId or artifactId or version in <artifact/> parameter, ignored it.");
             return null;
         }
 
-        getLog().info(
-            "Using artifact " + artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getVersion() );
+        getLog().info("Using artifact " + artifact.getGroupId() + ":" + artifact.getArtifactId() + ":"
+                + artifact.getVersion());
 
-        try
-        {
-            Artifact art =
-                factory.createProjectArtifact( artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(),
-                                               Artifact.SCOPE_COMPILE );
+        try {
+            Artifact art = factory.createProjectArtifact(
+                    artifact.getGroupId(), artifact.getArtifactId(), artifact.getVersion(), Artifact.SCOPE_COMPILE);
 
-            if ( art.getFile() == null )
-            {
-                MavenProject proj = mavenProjectBuilder.buildFromRepository( art, remoteRepositories, localRepository );
+            if (art.getFile() == null) {
+                MavenProject proj = mavenProjectBuilder.buildFromRepository(art, remoteRepositories, localRepository);
                 art = proj.getArtifact();
 
-                resolver.resolve( art, remoteRepositories, localRepository );
+                resolver.resolve(art, remoteRepositories, localRepository);
 
                 return proj;
             }
-        }
-        catch ( ArtifactResolutionException e )
-        {
-            getLog().error( "ArtifactResolutionException: " + e.getMessage() + "\nIgnored <artifact/> parameter." );
-        }
-        catch ( ArtifactNotFoundException e )
-        {
-            getLog().error( "ArtifactNotFoundException: " + e.getMessage() + "\nIgnored <artifact/> parameter." );
-        }
-        catch ( ProjectBuildingException e )
-        {
-            getLog().error( "ProjectBuildingException: " + e.getMessage() + "\nIgnored <artifact/> parameter." );
+        } catch (ArtifactResolutionException e) {
+            getLog().error("ArtifactResolutionException: " + e.getMessage() + "\nIgnored <artifact/> parameter.");
+        } catch (ArtifactNotFoundException e) {
+            getLog().error("ArtifactNotFoundException: " + e.getMessage() + "\nIgnored <artifact/> parameter.");
+        } catch (ProjectBuildingException e) {
+            getLog().error("ProjectBuildingException: " + e.getMessage() + "\nIgnored <artifact/> parameter.");
         }
 
         return null;
@@ -509,17 +485,14 @@ public class DoapMojo
      * @param outputFile not null
      * @since 1.1
      */
-    private void writeDoapFile( MavenProject project, File outputFile )
-        throws MojoExecutionException
-    {
+    private void writeDoapFile(MavenProject project, File outputFile) throws MojoExecutionException {
         // ----------------------------------------------------------------------------
         // Includes ASF extensions
         // ----------------------------------------------------------------------------
 
-        if ( !asfExtOptions.isIncluded() && ASFExtOptionsUtil.isASFProject( project ) )
-        {
-            getLog().info( "This project is an ASF project, ASF Extensions to DOAP will be added." );
-            asfExtOptions.setIncluded( true );
+        if (!asfExtOptions.isIncluded() && ASFExtOptionsUtil.isASFProject(project)) {
+            getLog().info("This project is an ASF project, ASF Extensions to DOAP will be added.");
+            asfExtOptions.setIncluded(true);
         }
 
         // ----------------------------------------------------------------------------
@@ -527,294 +500,259 @@ public class DoapMojo
         // ----------------------------------------------------------------------------
 
         Writer w;
-        try
-        {
-            if ( !outputFile.getParentFile().exists() )
-            {
-                FileUtils.mkdir( outputFile.getParentFile().getAbsolutePath() );
+        try {
+            if (!outputFile.getParentFile().exists()) {
+                FileUtils.mkdir(outputFile.getParentFile().getAbsolutePath());
             }
 
-            w = WriterFactory.newXmlWriter( outputFile );
-        }
-        catch ( IOException e )
-        {
-            throw new MojoExecutionException( "Error creating DOAP file " + outputFile.getAbsolutePath(), e );
+            w = WriterFactory.newXmlWriter(outputFile);
+        } catch (IOException e) {
+            throw new MojoExecutionException("Error creating DOAP file " + outputFile.getAbsolutePath(), e);
         }
 
-        try
-        {
-            doWrite( project, outputFile, w );
-        }
-        finally
-        {
+        try {
+            doWrite(project, outputFile, w);
+        } finally {
 
-            try
-            {
+            try {
                 w.close();
-            }
-            catch ( IOException e )
-            {
-                throw new MojoExecutionException( "Error when closing the writer.", e );
+            } catch (IOException e) {
+                throw new MojoExecutionException("Error when closing the writer.", e);
             }
         }
 
-        if ( !messages.getWarnMessages().isEmpty() )
-        {
-            for ( String warn : messages.getWarnMessages() )
-            {
-                getLog().warn( warn );
+        if (!messages.getWarnMessages().isEmpty()) {
+            for (String warn : messages.getWarnMessages()) {
+                getLog().warn(warn);
             }
         }
 
-        if ( !messages.getErrorMessages().isEmpty() )
-        {
-            getLog().error( "" );
-            for ( String error : messages.getErrorMessages() )
-            {
-                getLog().error( error );
+        if (!messages.getErrorMessages().isEmpty()) {
+            getLog().error("");
+            for (String error : messages.getErrorMessages()) {
+                getLog().error(error);
             }
-            getLog().error( "" );
+            getLog().error("");
 
-            if ( ASFExtOptionsUtil.isASFProject( project ) )
-            {
-                getLog().error( "For more information about the errors and possible solutions, "
-                                    + "please read the plugin documentation:" );
-                getLog().error( "http://maven.apache.org/plugins/maven-doap-plugin/usage.html#DOAP_ASF_Configuration" );
-                throw new MojoExecutionException( "The generated DOAP doesn't respect ASF rules, see above." );
+            if (ASFExtOptionsUtil.isASFProject(project)) {
+                getLog().error("For more information about the errors and possible solutions, "
+                        + "please read the plugin documentation:");
+                getLog().error("http://maven.apache.org/plugins/maven-doap-plugin/usage.html#DOAP_ASF_Configuration");
+                throw new MojoExecutionException("The generated DOAP doesn't respect ASF rules, see above.");
             }
         }
 
-        if ( validate )
-        {
-            List<String> errors = DoapUtil.validate( outputFile );
-            if ( !errors.isEmpty() )
-            {
-                getLog().error( "" );
-                for ( String error : errors )
-                {
-                    getLog().error( error );
+        if (validate) {
+            List<String> errors = DoapUtil.validate(outputFile);
+            if (!errors.isEmpty()) {
+                getLog().error("");
+                for (String error : errors) {
+                    getLog().error(error);
                 }
-                getLog().error( "" );
+                getLog().error("");
 
-                throw new MojoExecutionException( "Error parsing the generated DOAP file, see above." );
+                throw new MojoExecutionException("Error parsing the generated DOAP file, see above.");
             }
         }
     }
 
-    private void doWrite( MavenProject project, File outputFile, Writer w )
-        throws MojoExecutionException
-    {
-        if ( asfExtOptions.isIncluded() )
-        {
-            getLog().info( "Generating an ASF DOAP file " + outputFile.getAbsolutePath() );
-        }
-        else
-        {
-            getLog().info( "Generating a pure DOAP file " + outputFile.getAbsolutePath() );
+    private void doWrite(MavenProject project, File outputFile, Writer w) throws MojoExecutionException {
+        if (asfExtOptions.isIncluded()) {
+            getLog().info("Generating an ASF DOAP file " + outputFile.getAbsolutePath());
+        } else {
+            getLog().info("Generating a pure DOAP file " + outputFile.getAbsolutePath());
         }
 
-        XMLWriter writer = new PrettyPrintXMLWriter( w, project.getModel().getModelEncoding(), null );
+        XMLWriter writer = new PrettyPrintXMLWriter(w, project.getModel().getModelEncoding(), null);
 
         // ----------------------------------------------------------------------------
         // Convert POM to DOAP
         // ----------------------------------------------------------------------------
 
-        DoapUtil.writeHeader( writer );
+        DoapUtil.writeHeader(writer);
 
         // Heading
-        DoapUtil.writeStartElement( writer, "rdf", "RDF" );
-        if ( Arrays.binarySearch( Locale.getISOLanguages(), lang ) < 0 )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "lang" }, lang, UserMessages.INVALID_ISO_DATE );
-            throw new MojoExecutionException( messages.getErrorMessages().get( 0 ) );
+        DoapUtil.writeStartElement(writer, "rdf", "RDF");
+        if (Arrays.binarySearch(Locale.getISOLanguages(), lang) < 0) {
+            messages.addMessage(new String[] {"doapOptions", "lang"}, lang, UserMessages.INVALID_ISO_DATE);
+            throw new MojoExecutionException(messages.getErrorMessages().get(0));
         }
-        writer.addAttribute( "xml:lang", lang );
-        if ( StringUtils.isEmpty( doapOptions.getXmlnsNamespaceURI() ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "xmlnsNamespaceURI" }, null, UserMessages.REQUIRED );
-            throw new MojoExecutionException( messages.getErrorMessages().get( 0 ) );
+        writer.addAttribute("xml:lang", lang);
+        if (StringUtils.isEmpty(doapOptions.getXmlnsNamespaceURI())) {
+            messages.addMessage(new String[] {"doapOptions", "xmlnsNamespaceURI"}, null, UserMessages.REQUIRED);
+            throw new MojoExecutionException(messages.getErrorMessages().get(0));
         }
         writer.addAttribute(
-            "xmlns" + ( StringUtils.isEmpty( doapOptions.getXmlnsPrefix() ) ? "" : ":" + doapOptions.getXmlnsPrefix() ),
-            doapOptions.getXmlnsNamespaceURI() );
-        writer.addAttribute( "xmlns:rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#" );
-        writer.addAttribute( "xmlns:foaf", "http://xmlns.com/foaf/0.1/" );
-        if ( asfExtOptions.isIncluded() )
-        {
-            if ( StringUtils.isEmpty( asfExtOptions.getXmlnsPrefix() ) )
-            {
-                messages.addMessage( new String[]{ "doapOptions", "xmlnsPrefix" }, null, UserMessages.REQUIRED );
-                throw new MojoExecutionException( messages.getErrorMessages().get( 0 ) );
-            }
-            if ( StringUtils.isEmpty( asfExtOptions.getXmlnsNamespaceURI() ) )
-            {
-                messages.addMessage( new String[]{ "doapOptions", "xmlnsNamespaceURI" }, null, UserMessages.REQUIRED );
-            }
-            writer.addAttribute( "xmlns" + ( StringUtils.isEmpty( asfExtOptions.getXmlnsPrefix() )
-                ? ""
-                : ":" + asfExtOptions.getXmlnsPrefix() ), asfExtOptions.getXmlnsNamespaceURI() );
-        }
-        if ( extOptions != null && extOptions.length > 0 && !extOptions[0].getExtensions().isEmpty() )
-        {
-            for ( ExtOptions extOption : extOptions )
-            {
-                if ( StringUtils.isEmpty( extOption.getXmlnsPrefix() ) )
-                {
-                    messages.addMessage( new String[]{ "extOptions", "extOption", "xmlnsPrefix" }, null,
-                                         UserMessages.REQUIRED );
-                    throw new MojoExecutionException( messages.getErrorMessages().get( 0 ) );
+                "xmlns" + (StringUtils.isEmpty(doapOptions.getXmlnsPrefix()) ? "" : ":" + doapOptions.getXmlnsPrefix()),
+                doapOptions.getXmlnsNamespaceURI());
+        writer.addAttribute("xmlns:rdf", "http://www.w3.org/1999/02/22-rdf-syntax-ns#");
+        writer.addAttribute("xmlns:foaf", "http://xmlns.com/foaf/0.1/");
+        if (asfExtOptions.isIncluded()) {
+            if (StringUtils.isEmpty(asfExtOptions.getXmlnsPrefix())) {
+                messages.addMessage(new String[] {"doapOptions", "xmlnsPrefix"}, null, UserMessages.REQUIRED);
+                throw new MojoExecutionException(messages.getErrorMessages().get(0));
+            }
+            if (StringUtils.isEmpty(asfExtOptions.getXmlnsNamespaceURI())) {
+                messages.addMessage(new String[] {"doapOptions", "xmlnsNamespaceURI"}, null, UserMessages.REQUIRED);
+            }
+            writer.addAttribute(
+                    "xmlns"
+                            + (StringUtils.isEmpty(asfExtOptions.getXmlnsPrefix())
+                                    ? ""
+                                    : ":" + asfExtOptions.getXmlnsPrefix()),
+                    asfExtOptions.getXmlnsNamespaceURI());
+        }
+        if (extOptions != null
+                && extOptions.length > 0
+                && !extOptions[0].getExtensions().isEmpty()) {
+            for (ExtOptions extOption : extOptions) {
+                if (StringUtils.isEmpty(extOption.getXmlnsPrefix())) {
+                    messages.addMessage(
+                            new String[] {"extOptions", "extOption", "xmlnsPrefix"}, null, UserMessages.REQUIRED);
+                    throw new MojoExecutionException(messages.getErrorMessages().get(0));
                 }
-                if ( StringUtils.isEmpty( extOption.getXmlnsNamespaceURI() ) )
-                {
-                    messages.addMessage( new String[]{ "extOptions", "extOption", "xmlnsNamespaceURI" }, null,
-                                         UserMessages.REQUIRED );
-                    throw new MojoExecutionException( messages.getErrorMessages().get( 0 ) );
+                if (StringUtils.isEmpty(extOption.getXmlnsNamespaceURI())) {
+                    messages.addMessage(
+                            new String[] {"extOptions", "extOption", "xmlnsNamespaceURI"}, null, UserMessages.REQUIRED);
+                    throw new MojoExecutionException(messages.getErrorMessages().get(0));
                 }
-                writer.addAttribute( "xmlns" + ( StringUtils.isEmpty( extOption.getXmlnsPrefix() )
-                    ? ""
-                    : ":" + extOption.getXmlnsPrefix() ), extOption.getXmlnsNamespaceURI() );
+                writer.addAttribute(
+                        "xmlns"
+                                + (StringUtils.isEmpty(extOption.getXmlnsPrefix())
+                                        ? ""
+                                        : ":" + extOption.getXmlnsPrefix()),
+                        extOption.getXmlnsNamespaceURI());
             }
         }
 
         // Project
-        DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "Project" );
+        DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "Project");
         boolean added = false;
-        if ( artifact != null )
-        {
+        if (artifact != null) {
             String about = project.getUrl();
 
-            if ( StringUtils.isNotEmpty( about ) )
-            {
-                try
-                {
-                    new URL( about );
+            if (StringUtils.isNotEmpty(about)) {
+                try {
+                    new URL(about);
 
-                    writer.addAttribute( "rdf:about", about );
+                    writer.addAttribute("rdf:about", about);
                     added = true;
-                }
-                catch ( MalformedURLException e )
-                {
+                } catch (MalformedURLException e) {
                     // ignore
                 }
             }
 
-            if ( !added )
-            {
-                messages.getWarnMessages().add( "The project's url defined from " + artifact.toConfiguration()
-                                                    + " is empty or not a valid URL, using <about/> parameter." );
+            if (!added) {
+                messages.getWarnMessages()
+                        .add("The project's url defined from " + artifact.toConfiguration()
+                                + " is empty or not a valid URL, using <about/> parameter.");
             }
         }
 
-        if ( !added )
-        {
-            if ( StringUtils.isNotEmpty( about ) )
-            {
-                try
-                {
-                    new URL( about );
+        if (!added) {
+            if (StringUtils.isNotEmpty(about)) {
+                try {
+                    new URL(about);
 
-                    writer.addAttribute( "rdf:about", about );
-                }
-                catch ( MalformedURLException e )
-                {
-                    messages.addMessage( new String[]{ "about" }, about, UserMessages.INVALID_URL );
+                    writer.addAttribute("rdf:about", about);
+                } catch (MalformedURLException e) {
+                    messages.addMessage(new String[] {"about"}, about, UserMessages.INVALID_URL);
                 }
                 added = true;
             }
         }
 
-        if ( !added )
-        {
-            messages.addMessage( new String[]{ "about" }, null, UserMessages.RECOMMENDED );
+        if (!added) {
+            messages.addMessage(new String[] {"about"}, null, UserMessages.RECOMMENDED);
         }
 
         // name
-        writeName( writer, project );
+        writeName(writer, project);
 
         // description
-        writeDescription( writer, project );
+        writeDescription(writer, project);
 
         // implements
-        writeImplements( writer );
+        writeImplements(writer);
 
         // Audience
-        writeAudience( writer );
+        writeAudience(writer);
 
         // Vendor
-        writeVendor( writer, project );
+        writeVendor(writer, project);
 
         // created
-        writeCreated( writer, project );
+        writeCreated(writer, project);
 
         // homepage and old-homepage
-        writeHomepage( writer, project );
+        writeHomepage(writer, project);
 
         // Blog
-        writeBlog( writer );
+        writeBlog(writer);
 
         // licenses
-        writeLicenses( writer, project );
+        writeLicenses(writer, project);
 
         // programming-language
-        writeProgrammingLanguage( writer, project );
+        writeProgrammingLanguage(writer, project);
 
         // category
-        writeCategory( writer, project );
+        writeCategory(writer, project);
 
         // os
-        writeOS( writer, project );
+        writeOS(writer, project);
 
         // Plateform
-        writePlateform( writer );
+        writePlateform(writer);
 
         // Language
-        writeLanguage( writer );
+        writeLanguage(writer);
 
         // SCM
-        writeSourceRepositories( writer, project );
+        writeSourceRepositories(writer, project);
 
         // bug-database
-        writeBugDatabase( writer, project );
+        writeBugDatabase(writer, project);
 
         // mailing list
-        writeMailingList( writer, project );
+        writeMailingList(writer, project);
 
         // download-page and download-mirror
-        writeDownloadPage( writer, project );
+        writeDownloadPage(writer, project);
 
         // screenshots
-        writeScreenshots( writer, project );
+        writeScreenshots(writer, project);
 
         // service-endpoint
-        writeServiceEndpoint( writer );
+        writeServiceEndpoint(writer);
 
         // wiki
-        writeWiki( writer, project );
+        writeWiki(writer, project);
 
         // Releases
-        writeReleases( writer, project );
+        writeReleases(writer, project);
 
         // Developers
         List<Contributor> developers = project.getDevelopers();
-        writeContributors( writer, developers );
+        writeContributors(writer, developers);
 
         // Contributors
         List<Contributor> contributors = project.getContributors();
-        writeContributors( writer, contributors );
+        writeContributors(writer, contributors);
 
         // Extra DOAP
         Map<Object, String> map = doapOptions.getExtra();
-        writeExtra( writer, project, "Extra DOAP vocabulary.", map, doapOptions.getXmlnsPrefix() );
+        writeExtra(writer, project, "Extra DOAP vocabulary.", map, doapOptions.getXmlnsPrefix());
 
         // ASFext
-        writeASFext( writer, project );
+        writeASFext(writer, project);
 
         // Extra extensions
-        writeExtensions( writer );
+        writeExtensions(writer);
 
         writer.endElement(); // Project
 
-        writeOrganizations( writer );
+        writeOrganizations(writer);
 
         writer.endElement(); // rdf:RDF
     }
@@ -826,22 +764,20 @@ public class DoapMojo
      * @param project the Maven project, not null
      * @see <a href="http://usefulinc.com/ns/doap#name">http://usefulinc.com/ns/doap#name</a>
      */
-    private void writeName( XMLWriter writer, MavenProject project )
-    {
-        String name = DoapUtil.interpolate( doapOptions.getName(), project, settings );
-        if ( StringUtils.isEmpty( name ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "name" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
+    private void writeName(XMLWriter writer, MavenProject project) {
+        String name = DoapUtil.interpolate(doapOptions.getName(), project, settings);
+        if (StringUtils.isEmpty(name)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "name"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
             return;
         }
 
-        DoapUtil.writeComment( writer, "A name of something." );
-        if ( ASFExtOptionsUtil.isASFProject( project ) && !name.toLowerCase( Locale.ENGLISH ).startsWith( "apache" ) )
-        {
+        DoapUtil.writeComment(writer, "A name of something.");
+        if (ASFExtOptionsUtil.isASFProject(project)
+                && !name.toLowerCase(Locale.ENGLISH).startsWith("apache")) {
             name = "Apache " + name;
         }
-        DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "name", name );
+        DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "name", name);
     }
 
     /**
@@ -852,52 +788,42 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#description">http://usefulinc.com/ns/doap#description</a>
      * @see <a href="http://usefulinc.com/ns/doap#shortdesc">http://usefulinc.com/ns/doap#shortdesc</a>
      */
-    private void writeDescription( XMLWriter writer, MavenProject project )
-    {
+    private void writeDescription(XMLWriter writer, MavenProject project) {
         boolean addComment = false;
-        String description = DoapUtil.interpolate( doapOptions.getDescription(), project, settings );
-        if ( StringUtils.isEmpty( description ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "description" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
-        }
-        else
-        {
-            DoapUtil.writeComment( writer, "Plain text description of a project, of 2-4 sentences in length." );
+        String description = DoapUtil.interpolate(doapOptions.getDescription(), project, settings);
+        if (StringUtils.isEmpty(description)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "description"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
+        } else {
+            DoapUtil.writeComment(writer, "Plain text description of a project, of 2-4 sentences in length.");
             addComment = true;
-            DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "description", description, lang );
+            DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "description", description, lang);
         }
 
         String comment = "Short plain text description of a project.";
-        String shortdesc = DoapUtil.interpolate( doapOptions.getShortdesc(), project, settings );
-        if ( StringUtils.isEmpty( shortdesc ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "shortdesc" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
+        String shortdesc = DoapUtil.interpolate(doapOptions.getShortdesc(), project, settings);
+        if (StringUtils.isEmpty(shortdesc)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "shortdesc"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
             return;
         }
-        if ( description.equals( shortdesc ) )
-        {
+        if (description.equals(shortdesc)) {
             // try to get the first 10 words of the description
-            String sentence = StringUtils.split( shortdesc, "." )[0];
-            if ( StringUtils.split( sentence, " " ).length > 10 )
-            {
-                messages.addMessage( new String[]{ "doapOptions", "shortdesc" }, null,
-                                     UserMessages.SHORT_DESC_TOO_LONG );
+            String sentence = StringUtils.split(shortdesc, ".")[0];
+            if (StringUtils.split(sentence, " ").length > 10) {
+                messages.addMessage(new String[] {"doapOptions", "shortdesc"}, null, UserMessages.SHORT_DESC_TOO_LONG);
                 return;
             }
-            if ( !addComment )
-            {
-                DoapUtil.writeComment( writer, comment );
+            if (!addComment) {
+                DoapUtil.writeComment(writer, comment);
             }
-            DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "shortdesc", sentence, lang );
+            DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "shortdesc", sentence, lang);
             return;
         }
-        if ( !addComment )
-        {
-            DoapUtil.writeComment( writer, comment );
+        if (!addComment) {
+            DoapUtil.writeComment(writer, comment);
         }
-        DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "shortdesc", shortdesc, lang );
+        DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "shortdesc", shortdesc, lang);
     }
 
     /**
@@ -907,28 +833,23 @@ public class DoapMojo
      * @param project the Maven project, not null
      * @see <a href="http://usefulinc.com/ns/doap#created">http://usefulinc.com/ns/doap#created</a>
      */
-    private void writeCreated( XMLWriter writer, MavenProject project )
-    {
-        String created = DoapUtil.interpolate( doapOptions.getCreated(), project, settings );
-        if ( StringUtils.isEmpty( created ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "created" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
+    private void writeCreated(XMLWriter writer, MavenProject project) {
+        String created = DoapUtil.interpolate(doapOptions.getCreated(), project, settings);
+        if (StringUtils.isEmpty(created)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "created"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
             return;
         }
 
-        try
-        {
-            DOAP_DATE_FORMAT.parse( created );
-        }
-        catch ( ParseException e )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "created" }, null, UserMessages.INVALID_DATE );
+        try {
+            DOAP_DATE_FORMAT.parse(created);
+        } catch (ParseException e) {
+            messages.addMessage(new String[] {"doapOptions", "created"}, null, UserMessages.INVALID_DATE);
             return;
         }
 
-        DoapUtil.writeComment( writer, "Date when something was created, in YYYY-MM-DD form. e.g. 2004-04-05" );
-        DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "created", created );
+        DoapUtil.writeComment(writer, "Date when something was created, in YYYY-MM-DD form. e.g. 2004-04-05");
+        DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "created", created);
     }
 
     /**
@@ -939,49 +860,35 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#homepage">http://usefulinc.com/ns/doap#homepage</a>
      * @see <a href="http://usefulinc.com/ns/doap#old-homepage">http://usefulinc.com/ns/doap#old-homepage</a>
      */
-    private void writeHomepage( XMLWriter writer, MavenProject project )
-    {
-        String homepage = DoapUtil.interpolate( doapOptions.getHomepage(), project, settings );
-        if ( StringUtils.isEmpty( homepage ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "homepage" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
-        }
-        else
-        {
-            try
-            {
-                new URL( homepage );
+    private void writeHomepage(XMLWriter writer, MavenProject project) {
+        String homepage = DoapUtil.interpolate(doapOptions.getHomepage(), project, settings);
+        if (StringUtils.isEmpty(homepage)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "homepage"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
+        } else {
+            try {
+                new URL(homepage);
 
-                DoapUtil.writeComment( writer, "URL of a project's homepage, associated with exactly one project." );
-                DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "homepage", homepage );
-            }
-            catch ( MalformedURLException e )
-            {
-                messages.addMessage( new String[]{ "doapOptions", "homepage" }, homepage, UserMessages.INVALID_URL );
+                DoapUtil.writeComment(writer, "URL of a project's homepage, associated with exactly one project.");
+                DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "homepage", homepage);
+            } catch (MalformedURLException e) {
+                messages.addMessage(new String[] {"doapOptions", "homepage"}, homepage, UserMessages.INVALID_URL);
             }
         }
 
-        if ( StringUtils.isNotEmpty( doapOptions.getOldHomepage() ) )
-        {
-            String oldHomepage = DoapUtil.interpolate( doapOptions.getOldHomepage(), project, settings );
-            if ( StringUtils.isEmpty( oldHomepage ) )
-            {
+        if (StringUtils.isNotEmpty(doapOptions.getOldHomepage())) {
+            String oldHomepage = DoapUtil.interpolate(doapOptions.getOldHomepage(), project, settings);
+            if (StringUtils.isEmpty(oldHomepage)) {
                 return;
             }
 
-            try
-            {
-                new URL( oldHomepage );
+            try {
+                new URL(oldHomepage);
 
-                DoapUtil.writeComment( writer,
-                                       "URL of a project's past homepage, associated with exactly one project." );
-                DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "old-homepage", oldHomepage );
-            }
-            catch ( MalformedURLException e )
-            {
-                messages.addMessage( new String[]{ "doapOptions", "oldHomepage" }, oldHomepage,
-                                     UserMessages.INVALID_URL );
+                DoapUtil.writeComment(writer, "URL of a project's past homepage, associated with exactly one project.");
+                DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "old-homepage", oldHomepage);
+            } catch (MalformedURLException e) {
+                messages.addMessage(new String[] {"doapOptions", "oldHomepage"}, oldHomepage, UserMessages.INVALID_URL);
             }
         }
     }
@@ -994,86 +901,74 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#programming-language">
      *      http://usefulinc.com/ns/doap#programming-language</a>
      */
-    private void writeProgrammingLanguage( XMLWriter writer, MavenProject project )
-    {
-        if ( StringUtils.isEmpty( doapOptions.getProgrammingLanguage() ) && StringUtils.isEmpty( language ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "programmingLanguage" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
+    private void writeProgrammingLanguage(XMLWriter writer, MavenProject project) {
+        if (StringUtils.isEmpty(doapOptions.getProgrammingLanguage()) && StringUtils.isEmpty(language)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "programmingLanguage"},
+                    null,
+                    UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
             return;
         }
 
         boolean addComment = false;
         String comment = "Programming language.";
-        if ( StringUtils.isNotEmpty( language ) ) // backward compatible
+        if (StringUtils.isNotEmpty(language)) // backward compatible
         {
-            getLog().warn( "The <language/> parameter is deprecated, please use " + messages.toConfiguration(
-                new String[]{ "doapOptions", "programmingLanguage" }, null ) + " parameter instead of." );
+            getLog().warn("The <language/> parameter is deprecated, please use "
+                    + messages.toConfiguration(new String[] {"doapOptions", "programmingLanguage"}, null)
+                    + " parameter instead of.");
 
             language = language.trim();
 
-            if ( asfExtOptions.isIncluded() )
-            {
-                String asfLanguage = ASFExtOptionsUtil.getProgrammingLanguageSupportedByASF( language );
-                if ( asfLanguage == null )
-                {
-                    messages.getErrorMessages().add(
-                        "The deprecated " + messages.toConfiguration( new String[]{ "language" }, language )
-                            + " parameter is not supported by ASF. Should be one of " + Arrays.toString(
-                            ASFExtOptionsUtil.PROGRAMMING_LANGUAGES ) );
-                }
-                else
-                {
-                    DoapUtil.writeComment( writer, comment );
+            if (asfExtOptions.isIncluded()) {
+                String asfLanguage = ASFExtOptionsUtil.getProgrammingLanguageSupportedByASF(language);
+                if (asfLanguage == null) {
+                    messages.getErrorMessages()
+                            .add("The deprecated " + messages.toConfiguration(new String[] {"language"}, language)
+                                    + " parameter is not supported by ASF. Should be one of "
+                                    + Arrays.toString(ASFExtOptionsUtil.PROGRAMMING_LANGUAGES));
+                } else {
+                    DoapUtil.writeComment(writer, comment);
                     addComment = true;
-                    DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "programming-language",
-                                           asfLanguage.trim() );
+                    DoapUtil.writeElement(
+                            writer, doapOptions.getXmlnsPrefix(), "programming-language", asfLanguage.trim());
                 }
-            }
-            else
-            {
-                DoapUtil.writeComment( writer, comment );
+            } else {
+                DoapUtil.writeComment(writer, comment);
                 addComment = true;
-                DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "programming-language", language.trim() );
+                DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "programming-language", language.trim());
             }
         }
 
-        if ( StringUtils.isNotEmpty( doapOptions.getProgrammingLanguage() ) )
-        {
-            String[] languages = StringUtils.split( doapOptions.getProgrammingLanguage(), "," );
-            for ( String language : languages )
-            {
+        if (StringUtils.isNotEmpty(doapOptions.getProgrammingLanguage())) {
+            String[] languages = StringUtils.split(doapOptions.getProgrammingLanguage(), ",");
+            for (String language : languages) {
                 language = language.trim();
 
-                if ( asfExtOptions.isIncluded() )
-                {
-                    String asfLanguage = ASFExtOptionsUtil.getProgrammingLanguageSupportedByASF( language );
-                    if ( asfLanguage == null )
-                    {
-                        messages.getErrorMessages().add(
-                            "The " + messages.toConfiguration( new String[]{ "doapOptions", "programmingLanguage" },
-                                                               language ) + " parameter is not supported by ASF. "
-                                + "Should be one of " + Arrays.toString( ASFExtOptionsUtil.PROGRAMMING_LANGUAGES ) );
-                    }
-                    else
-                    {
-                        if ( !addComment )
-                        {
-                            DoapUtil.writeComment( writer, comment );
+                if (asfExtOptions.isIncluded()) {
+                    String asfLanguage = ASFExtOptionsUtil.getProgrammingLanguageSupportedByASF(language);
+                    if (asfLanguage == null) {
+                        messages.getErrorMessages()
+                                .add("The "
+                                        + messages.toConfiguration(
+                                                new String[] {"doapOptions", "programmingLanguage"}, language)
+                                        + " parameter is not supported by ASF. "
+                                        + "Should be one of "
+                                        + Arrays.toString(ASFExtOptionsUtil.PROGRAMMING_LANGUAGES));
+                    } else {
+                        if (!addComment) {
+                            DoapUtil.writeComment(writer, comment);
                             addComment = true;
                         }
-                        DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "programming-language",
-                                               asfLanguage );
+                        DoapUtil.writeElement(
+                                writer, doapOptions.getXmlnsPrefix(), "programming-language", asfLanguage);
                     }
-                }
-                else
-                {
-                    if ( !addComment )
-                    {
-                        DoapUtil.writeComment( writer, comment );
+                } else {
+                    if (!addComment) {
+                        DoapUtil.writeComment(writer, comment);
                         addComment = true;
                     }
-                    DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "programming-language", language );
+                    DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "programming-language", language);
                 }
             }
         }
@@ -1086,87 +981,77 @@ public class DoapMojo
      * @param project the Maven project, not null
      * @see <a href="http://usefulinc.com/ns/doap#category">http://usefulinc.com/ns/doap#category</a>
      */
-    private void writeCategory( XMLWriter writer, MavenProject project )
-    {
-        if ( StringUtils.isEmpty( doapOptions.getCategory() ) && StringUtils.isEmpty( category ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "category" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
+    private void writeCategory(XMLWriter writer, MavenProject project) {
+        if (StringUtils.isEmpty(doapOptions.getCategory()) && StringUtils.isEmpty(category)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "category"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
             return;
         }
 
         // TODO: how to lookup category, map it, or just declare it.
         boolean addComment = false;
         String comment = "A category of project.";
-        if ( StringUtils.isNotEmpty( category ) ) // backward compatible
+        if (StringUtils.isNotEmpty(category)) // backward compatible
         {
-            getLog().warn( "The <category/> parameter is deprecated, please use " + messages.toConfiguration(
-                new String[]{ "doapOptions", "category" }, null ) + " parameter instead of." );
+            getLog().warn("The <category/> parameter is deprecated, please use "
+                    + messages.toConfiguration(new String[] {"doapOptions", "category"}, null)
+                    + " parameter instead of.");
 
             category = category.trim();
 
-            if ( asfExtOptions.isIncluded() )
-            {
-                String asfCategory = ASFExtOptionsUtil.getCategorySupportedByASF( category );
-                if ( asfCategory == null )
-                {
-                    messages.getErrorMessages().add(
-                        "The deprecated " + messages.toConfiguration( new String[]{ "category" }, category )
-                            + " parameter is not supported by ASF. Should be one of " + Arrays.toString(
-                            ASFExtOptionsUtil.CATEGORIES ) );
-                }
-                else
-                {
-                    DoapUtil.writeComment( writer, comment );
+            if (asfExtOptions.isIncluded()) {
+                String asfCategory = ASFExtOptionsUtil.getCategorySupportedByASF(category);
+                if (asfCategory == null) {
+                    messages.getErrorMessages()
+                            .add("The deprecated " + messages.toConfiguration(new String[] {"category"}, category)
+                                    + " parameter is not supported by ASF. Should be one of "
+                                    + Arrays.toString(ASFExtOptionsUtil.CATEGORIES));
+                } else {
+                    DoapUtil.writeComment(writer, comment);
                     addComment = true;
-                    DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "category",
-                                                      ASFExtOptionsUtil.CATEGORY_RESOURCE + asfCategory );
+                    DoapUtil.writeRdfResourceElement(
+                            writer,
+                            doapOptions.getXmlnsPrefix(),
+                            "category",
+                            ASFExtOptionsUtil.CATEGORY_RESOURCE + asfCategory);
                 }
-            }
-            else
-            {
-                DoapUtil.writeComment( writer, comment );
+            } else {
+                DoapUtil.writeComment(writer, comment);
                 addComment = true;
-                DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "category", category );
+                DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "category", category);
             }
         }
 
-        if ( StringUtils.isNotEmpty( doapOptions.getCategory() ) )
-        {
-            String[] categories = StringUtils.split( doapOptions.getCategory(), "," );
-            for ( String category : categories )
-            {
+        if (StringUtils.isNotEmpty(doapOptions.getCategory())) {
+            String[] categories = StringUtils.split(doapOptions.getCategory(), ",");
+            for (String category : categories) {
                 category = category.trim();
 
-                if ( asfExtOptions.isIncluded() )
-                {
-                    String asfCategory = ASFExtOptionsUtil.getCategorySupportedByASF( category );
-                    if ( asfCategory == null )
-                    {
-                        messages.getErrorMessages().add(
-                            "The " + messages.toConfiguration( new String[]{ "doapOptions", "category" }, category )
-                                + " parameter is not supported by ASF. Should be one of " + Arrays.toString(
-                                ASFExtOptionsUtil.CATEGORIES ) );
-                    }
-                    else
-                    {
-                        if ( !addComment )
-                        {
-                            DoapUtil.writeComment( writer, comment );
+                if (asfExtOptions.isIncluded()) {
+                    String asfCategory = ASFExtOptionsUtil.getCategorySupportedByASF(category);
+                    if (asfCategory == null) {
+                        messages.getErrorMessages()
+                                .add("The "
+                                        + messages.toConfiguration(new String[] {"doapOptions", "category"}, category)
+                                        + " parameter is not supported by ASF. Should be one of "
+                                        + Arrays.toString(ASFExtOptionsUtil.CATEGORIES));
+                    } else {
+                        if (!addComment) {
+                            DoapUtil.writeComment(writer, comment);
                             addComment = true;
                         }
-                        DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "category",
-                                                          ASFExtOptionsUtil.CATEGORY_RESOURCE + asfCategory );
+                        DoapUtil.writeRdfResourceElement(
+                                writer,
+                                doapOptions.getXmlnsPrefix(),
+                                "category",
+                                ASFExtOptionsUtil.CATEGORY_RESOURCE + asfCategory);
                     }
-                }
-                else
-                {
-                    if ( !addComment )
-                    {
-                        DoapUtil.writeComment( writer, comment );
+                } else {
+                    if (!addComment) {
+                        DoapUtil.writeComment(writer, comment);
                         addComment = true;
                     }
-                    DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "category", category );
+                    DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "category", category);
                 }
             }
         }
@@ -1180,53 +1065,41 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#download-page">http://usefulinc.com/ns/doap#download-page</a>
      * @see <a href="http://usefulinc.com/ns/doap#download-mirror">http://usefulinc.com/ns/doap#download-mirror</a>
      */
-    private void writeDownloadPage( XMLWriter writer, MavenProject project )
-    {
-        String downloadPage = DoapUtil.interpolate( doapOptions.getDownloadPage(), project, settings );
-        if ( StringUtils.isEmpty( downloadPage ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "downloadPage" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
+    private void writeDownloadPage(XMLWriter writer, MavenProject project) {
+        String downloadPage = DoapUtil.interpolate(doapOptions.getDownloadPage(), project, settings);
+        if (StringUtils.isEmpty(downloadPage)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "downloadPage"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
             return;
         }
 
-        try
-        {
-            new URL( downloadPage );
+        try {
+            new URL(downloadPage);
 
-            DoapUtil.writeComment( writer, "Download page." );
-            DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "download-page", downloadPage );
-        }
-        catch ( MalformedURLException e )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "downloadPage" }, downloadPage,
-                                 UserMessages.INVALID_URL );
+            DoapUtil.writeComment(writer, "Download page.");
+            DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "download-page", downloadPage);
+        } catch (MalformedURLException e) {
+            messages.addMessage(new String[] {"doapOptions", "downloadPage"}, downloadPage, UserMessages.INVALID_URL);
         }
 
-        if ( StringUtils.isNotEmpty( doapOptions.getDownloadMirror() ) )
-        {
+        if (StringUtils.isNotEmpty(doapOptions.getDownloadMirror())) {
             boolean addComment = false;
-            String[] downloadMirrors = StringUtils.split( doapOptions.getDownloadMirror(), "," );
-            for ( String downloadMirror : downloadMirrors )
-            {
+            String[] downloadMirrors = StringUtils.split(doapOptions.getDownloadMirror(), ",");
+            for (String downloadMirror : downloadMirrors) {
                 downloadMirror = downloadMirror.trim();
 
-                try
-                {
-                    new URL( downloadMirror );
+                try {
+                    new URL(downloadMirror);
 
-                    if ( !addComment )
-                    {
-                        DoapUtil.writeComment( writer, "Mirror of software download web page." );
+                    if (!addComment) {
+                        DoapUtil.writeComment(writer, "Mirror of software download web page.");
                         addComment = true;
                     }
-                    DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "download-mirror",
-                                                      downloadMirror );
-                }
-                catch ( MalformedURLException e )
-                {
-                    messages.addMessage( new String[]{ "doapOptions", "downloadMirror" }, downloadMirror,
-                                         UserMessages.INVALID_URL );
+                    DoapUtil.writeRdfResourceElement(
+                            writer, doapOptions.getXmlnsPrefix(), "download-mirror", downloadMirror);
+                } catch (MalformedURLException e) {
+                    messages.addMessage(
+                            new String[] {"doapOptions", "downloadMirror"}, downloadMirror, UserMessages.INVALID_URL);
                 }
             }
         }
@@ -1239,19 +1112,16 @@ public class DoapMojo
      * @param project the Maven project, not null
      * @see <a href="http://usefulinc.com/ns/doap#os">http://usefulinc.com/ns/doap#os</a>
      */
-    private void writeOS( XMLWriter writer, MavenProject project )
-    {
-        String osList = DoapUtil.interpolate( doapOptions.getOs(), project, settings );
-        if ( StringUtils.isEmpty( osList ) )
-        {
+    private void writeOS(XMLWriter writer, MavenProject project) {
+        String osList = DoapUtil.interpolate(doapOptions.getOs(), project, settings);
+        if (StringUtils.isEmpty(osList)) {
             return;
         }
 
-        DoapUtil.writeComment( writer, "Operating system that a project is limited to." );
-        String[] oses = StringUtils.split( osList, "," );
-        for ( String os : oses )
-        {
-            DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "os", os.trim() );
+        DoapUtil.writeComment(writer, "Operating system that a project is limited to.");
+        String[] oses = StringUtils.split(osList, ",");
+        for (String os : oses) {
+            DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "os", os.trim());
         }
     }
 
@@ -1262,27 +1132,22 @@ public class DoapMojo
      * @param project the Maven project, not null
      * @see <a href="http://usefulinc.com/ns/doap#screenshots">http://usefulinc.com/ns/doap#screenshots</a>
      */
-    private void writeScreenshots( XMLWriter writer, MavenProject project )
-    {
-        String screenshots = DoapUtil.interpolate( doapOptions.getScreenshots(), project, settings );
-        if ( StringUtils.isEmpty( screenshots ) )
-        {
+    private void writeScreenshots(XMLWriter writer, MavenProject project) {
+        String screenshots = DoapUtil.interpolate(doapOptions.getScreenshots(), project, settings);
+        if (StringUtils.isEmpty(screenshots)) {
             return;
         }
 
         screenshots = screenshots.trim();
-        try
-        {
-            new URL( screenshots );
-        }
-        catch ( MalformedURLException e )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "screenshots" }, screenshots, UserMessages.INVALID_URL );
+        try {
+            new URL(screenshots);
+        } catch (MalformedURLException e) {
+            messages.addMessage(new String[] {"doapOptions", "screenshots"}, screenshots, UserMessages.INVALID_URL);
             return;
         }
 
-        DoapUtil.writeComment( writer, "Web page with screenshots of project." );
-        DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "screenshots", screenshots );
+        DoapUtil.writeComment(writer, "Web page with screenshots of project.");
+        DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "screenshots", screenshots);
     }
 
     /**
@@ -1292,27 +1157,22 @@ public class DoapMojo
      * @param project the Maven project, not null
      * @see <a href="http://usefulinc.com/ns/doap#wiki">http://usefulinc.com/ns/doap#wiki</a>
      */
-    private void writeWiki( XMLWriter writer, MavenProject project )
-    {
-        String wiki = DoapUtil.interpolate( doapOptions.getWiki(), project, settings );
-        if ( StringUtils.isEmpty( wiki ) )
-        {
+    private void writeWiki(XMLWriter writer, MavenProject project) {
+        String wiki = DoapUtil.interpolate(doapOptions.getWiki(), project, settings);
+        if (StringUtils.isEmpty(wiki)) {
             return;
         }
 
         wiki = wiki.trim();
-        try
-        {
-            new URL( wiki );
-        }
-        catch ( MalformedURLException e )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "wiki" }, wiki, UserMessages.INVALID_URL );
+        try {
+            new URL(wiki);
+        } catch (MalformedURLException e) {
+            messages.addMessage(new String[] {"doapOptions", "wiki"}, wiki, UserMessages.INVALID_URL);
             return;
         }
 
-        DoapUtil.writeComment( writer, "URL of Wiki for collaborative discussion of project." );
-        DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "wiki", wiki );
+        DoapUtil.writeComment(writer, "URL of Wiki for collaborative discussion of project.");
+        DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "wiki", wiki);
     }
 
     /**
@@ -1322,56 +1182,47 @@ public class DoapMojo
      * @param project the Maven project, not null
      * @see <a href="http://usefulinc.com/ns/doap#license">http://usefulinc.com/ns/doap#license</a>
      */
-    private void writeLicenses( XMLWriter writer, MavenProject project )
-    {
-        String license = DoapUtil.interpolate( doapOptions.getLicense(), project, settings );
-        if ( StringUtils.isEmpty( license ) )
-        {
+    private void writeLicenses(XMLWriter writer, MavenProject project) {
+        String license = DoapUtil.interpolate(doapOptions.getLicense(), project, settings);
+        if (StringUtils.isEmpty(license)) {
             boolean added = false;
-            @SuppressWarnings( "unchecked" ) List<License> licenses = project.getLicenses();
-            if ( licenses.size() > 1 )
-            {
-                for ( int i = 1; i < licenses.size(); i++ )
-                {
-                    if ( StringUtils.isEmpty( licenses.get( i ).getUrl() ) )
-                    {
+            @SuppressWarnings("unchecked")
+            List<License> licenses = project.getLicenses();
+            if (licenses.size() > 1) {
+                for (int i = 1; i < licenses.size(); i++) {
+                    if (StringUtils.isEmpty(licenses.get(i).getUrl())) {
                         continue;
                     }
 
-                    String licenseUrl = licenses.get( i ).getUrl().trim();
-                    try
-                    {
-                        new URL( licenseUrl );
+                    String licenseUrl = licenses.get(i).getUrl().trim();
+                    try {
+                        new URL(licenseUrl);
 
-                        DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "license", licenseUrl );
+                        DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "license", licenseUrl);
                         added = true;
-                    }
-                    catch ( MalformedURLException e )
-                    {
-                        messages.addMessage( new String[]{ "project", "licenses", "license", "url" }, licenseUrl,
-                                             UserMessages.INVALID_URL );
+                    } catch (MalformedURLException e) {
+                        messages.addMessage(
+                                new String[] {"project", "licenses", "license", "url"},
+                                licenseUrl,
+                                UserMessages.INVALID_URL);
                     }
                 }
             }
 
-            if ( !added )
-            {
-                messages.addMessage( new String[]{ "doapOptions", "license" }, null,
-                                     UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
+            if (!added) {
+                messages.addMessage(
+                        new String[] {"doapOptions", "license"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
             }
             return;
         }
 
-        try
-        {
-            new URL( license );
+        try {
+            new URL(license);
 
-            DoapUtil.writeComment( writer, "The URI of the license the software is distributed under." );
-            DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "license", license );
-        }
-        catch ( MalformedURLException e )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "license" }, license, UserMessages.INVALID_URL );
+            DoapUtil.writeComment(writer, "The URI of the license the software is distributed under.");
+            DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "license", license);
+        } catch (MalformedURLException e) {
+            messages.addMessage(new String[] {"doapOptions", "license"}, license, UserMessages.INVALID_URL);
         }
     }
 
@@ -1382,26 +1233,21 @@ public class DoapMojo
      * @param project the Maven project, not null
      * @see <a href="http://usefulinc.com/ns/doap#bug-database">http://usefulinc.com/ns/doap#bug-database</a>
      */
-    private void writeBugDatabase( XMLWriter writer, MavenProject project )
-    {
-        String bugDatabase = DoapUtil.interpolate( doapOptions.getBugDatabase(), project, settings );
-        if ( StringUtils.isEmpty( bugDatabase ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "bugDatabase" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
+    private void writeBugDatabase(XMLWriter writer, MavenProject project) {
+        String bugDatabase = DoapUtil.interpolate(doapOptions.getBugDatabase(), project, settings);
+        if (StringUtils.isEmpty(bugDatabase)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "bugDatabase"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
             return;
         }
 
-        try
-        {
-            new URL( bugDatabase );
+        try {
+            new URL(bugDatabase);
 
-            DoapUtil.writeComment( writer, "Bug database." );
-            DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "bug-database", bugDatabase );
-        }
-        catch ( MalformedURLException e )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "bugDatabase" }, bugDatabase, UserMessages.INVALID_URL );
+            DoapUtil.writeComment(writer, "Bug database.");
+            DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "bug-database", bugDatabase);
+        } catch (MalformedURLException e) {
+            messages.addMessage(new String[] {"doapOptions", "bugDatabase"}, bugDatabase, UserMessages.INVALID_URL);
         }
     }
 
@@ -1413,26 +1259,21 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#mailing-list">http://usefulinc.com/ns/doap#mailing-list</a>
      * @see DoapOptions#getMailingList()
      */
-    private void writeMailingList( XMLWriter writer, MavenProject project )
-    {
-        String ml = DoapUtil.interpolate( doapOptions.getMailingList(), project, settings );
-        if ( StringUtils.isEmpty( ml ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "mailingList" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
+    private void writeMailingList(XMLWriter writer, MavenProject project) {
+        String ml = DoapUtil.interpolate(doapOptions.getMailingList(), project, settings);
+        if (StringUtils.isEmpty(ml)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "mailingList"}, null, UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
             return;
         }
 
-        try
-        {
-            new URL( ml );
+        try {
+            new URL(ml);
 
-            DoapUtil.writeComment( writer, "Mailing lists." );
-            DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "mailing-list", ml );
-        }
-        catch ( MalformedURLException e )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "mailingList" }, ml, UserMessages.INVALID_URL );
+            DoapUtil.writeComment(writer, "Mailing lists.");
+            DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "mailing-list", ml);
+        } catch (MalformedURLException e) {
+            messages.addMessage(new String[] {"doapOptions", "mailingList"}, ml, UserMessages.INVALID_URL);
         }
     }
 
@@ -1445,120 +1286,95 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#release">http://usefulinc.com/ns/doap#release</a>
      * @see <a href="http://usefulinc.com/ns/doap#Version">http://usefulinc.com/ns/doap#Version</a>
      */
-    private void writeReleases( XMLWriter writer, MavenProject project )
-        throws MojoExecutionException
-    {
-        Artifact artifact =
-            artifactFactory.createArtifact( project.getGroupId(), project.getArtifactId(), project.getVersion(), null,
-                                            project.getPackaging() );
-        RepositoryMetadata metadata = new ArtifactRepositoryMetadata( artifact );
+    private void writeReleases(XMLWriter writer, MavenProject project) throws MojoExecutionException {
+        Artifact artifact = artifactFactory.createArtifact(
+                project.getGroupId(), project.getArtifactId(), project.getVersion(), null, project.getPackaging());
+        RepositoryMetadata metadata = new ArtifactRepositoryMetadata(artifact);
 
-        for ( ArtifactRepository repo : remoteRepositories )
-        {
-            if ( repo.isBlacklisted() )
-            {
+        for (ArtifactRepository repo : remoteRepositories) {
+            if (repo.isBlacklisted()) {
                 continue;
             }
-            if ( repo.getSnapshots().isEnabled() )
-            {
+            if (repo.getSnapshots().isEnabled()) {
                 continue;
             }
-            if ( repo.getReleases().isEnabled() )
-            {
-                try
-                {
-                    repositoryMetadataManager.resolveAlways( metadata, localRepository, repo );
+            if (repo.getReleases().isEnabled()) {
+                try {
+                    repositoryMetadataManager.resolveAlways(metadata, localRepository, repo);
                     break;
-                }
-                catch ( RepositoryMetadataResolutionException e )
-                {
+                } catch (RepositoryMetadataResolutionException e) {
                     throw new MojoExecutionException(
-                        metadata.extendedToString() + " could not be retrieved from repositories due to an error: "
-                            + e.getMessage(), e );
+                            metadata.extendedToString() + " could not be retrieved from repositories due to an error: "
+                                    + e.getMessage(),
+                            e);
                 }
             }
         }
 
-        if ( metadata.getMetadata().getVersioning() == null )
-        {
-            messages.getWarnMessages().add(
-                "No versioning was found for " + artifact.getGroupId() + ":" + artifact.getArtifactId()
-                    + ". Ignored DOAP <release/> tag." );
+        if (metadata.getMetadata().getVersioning() == null) {
+            messages.getWarnMessages()
+                    .add("No versioning was found for " + artifact.getGroupId() + ":" + artifact.getArtifactId()
+                            + ". Ignored DOAP <release/> tag.");
             return;
         }
 
         List<String> versions = metadata.getMetadata().getVersioning().getVersions();
 
         // Recent releases in first
-        Collections.reverse( versions );
+        Collections.reverse(versions);
         boolean addComment = false;
         int i = 0;
-        for ( String version : versions )
-        {
-            if ( !addComment )
-            {
-                DoapUtil.writeComment( writer, "Project releases." );
+        for (String version : versions) {
+            if (!addComment) {
+                DoapUtil.writeComment(writer, "Project releases.");
                 addComment = true;
             }
 
-            DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "release" );
-            DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "Version" );
+            DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "release");
+            DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "Version");
 
-            DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "name" );
-            if ( version.equals( metadata.getMetadata().getVersioning().getRelease() ) )
-            {
-                writer.writeText( "Latest stable release" );
-            }
-            else
-            {
-                writer.writeText( project.getName() + " - " + version );
+            DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "name");
+            if (version.equals(metadata.getMetadata().getVersioning().getRelease())) {
+                writer.writeText("Latest stable release");
+            } else {
+                writer.writeText(project.getName() + " - " + version);
             }
             writer.endElement(); // name
 
-            DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "revision", version );
+            DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "revision", version);
 
             // list all file release from all remote repos
-            for ( ArtifactRepository repo : remoteRepositories )
-            {
-                Artifact artifactRelease =
-                    artifactFactory.createArtifact( project.getGroupId(), project.getArtifactId(), version, null,
-                                                    project.getPackaging() );
-
-                if ( artifactRelease == null )
-                {
+            for (ArtifactRepository repo : remoteRepositories) {
+                Artifact artifactRelease = artifactFactory.createArtifact(
+                        project.getGroupId(), project.getArtifactId(), version, null, project.getPackaging());
+
+                if (artifactRelease == null) {
                     continue;
                 }
 
-                String fileRelease = repo.getUrl() + "/" + repo.pathOf( artifactRelease );
-                try
-                {
-                    DoapUtil.fetchURL( settings, new URL( fileRelease ) );
-                }
-                catch ( IOException e )
-                {
-                    getLog().debug( "IOException :" + e.getMessage() );
+                String fileRelease = repo.getUrl() + "/" + repo.pathOf(artifactRelease);
+                try {
+                    DoapUtil.fetchURL(settings, new URL(fileRelease));
+                } catch (IOException e) {
+                    getLog().debug("IOException :" + e.getMessage());
                     continue;
                 }
-                DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "file-release", fileRelease );
+                DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "file-release", fileRelease);
 
                 Date releaseDate = null;
-                try
-                {
-                    releaseDate =
-                        REPOSITORY_DATE_FORMAT.parse( metadata.getMetadata().getVersioning().getLastUpdated() );
-                }
-                catch ( ParseException e )
-                {
-                    getLog().error(
-                        "Unable to parse date '" + metadata.getMetadata().getVersioning().getLastUpdated() + "'" );
+                try {
+                    releaseDate = REPOSITORY_DATE_FORMAT.parse(
+                            metadata.getMetadata().getVersioning().getLastUpdated());
+                } catch (ParseException e) {
+                    getLog().error("Unable to parse date '"
+                            + metadata.getMetadata().getVersioning().getLastUpdated() + "'");
                     continue;
                 }
 
                 // See MDOAP-11
-                if ( i == 0 )
-                {
-                    DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "created",
-                                           DOAP_DATE_FORMAT.format( releaseDate ) );
+                if (i == 0) {
+                    DoapUtil.writeElement(
+                            writer, doapOptions.getXmlnsPrefix(), "created", DOAP_DATE_FORMAT.format(releaseDate));
                 }
             }
 
@@ -1578,58 +1394,48 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#CVSRepository">http://usefulinc.com/ns/doap#CVSRepository</a>
      * @see <a href="http://usefulinc.com/ns/doap#SVNRepository">http://usefulinc.com/ns/doap#SVNRepository</a>
      */
-    private void writeSourceRepositories( XMLWriter writer, MavenProject project )
-    {
-        String anonymousConnection = DoapUtil.interpolate( doapOptions.getScmAnonymous(), project, settings );
-        if ( StringUtils.isEmpty( anonymousConnection ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "scmAnonymousConnection" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
-        }
-        else
-        {
-            DoapUtil.writeComment( writer, "Anonymous Source Repository." );
-
-            try
-            {
-                new URL( anonymousConnection );
-
-                DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "repository" );
-                DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "Repository" );
-                DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "location",
-                                                  anonymousConnection );
+    private void writeSourceRepositories(XMLWriter writer, MavenProject project) {
+        String anonymousConnection = DoapUtil.interpolate(doapOptions.getScmAnonymous(), project, settings);
+        if (StringUtils.isEmpty(anonymousConnection)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "scmAnonymousConnection"},
+                    null,
+                    UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
+        } else {
+            DoapUtil.writeComment(writer, "Anonymous Source Repository.");
+
+            try {
+                new URL(anonymousConnection);
+
+                DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "repository");
+                DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "Repository");
+                DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "location", anonymousConnection);
                 writer.endElement(); // Repository
                 writer.endElement(); // repository
-            }
-            catch ( MalformedURLException e )
-            {
-                writeSourceRepository( writer, project, anonymousConnection );
+            } catch (MalformedURLException e) {
+                writeSourceRepository(writer, project, anonymousConnection);
             }
         }
 
-        String devConnection = DoapUtil.interpolate( doapOptions.getScmDeveloper(), project, settings );
-        if ( StringUtils.isEmpty( devConnection ) )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "scmDeveloperConnection" }, null,
-                                 UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED );
-        }
-        else
-        {
-            DoapUtil.writeComment( writer, "Developer Source Repository." );
+        String devConnection = DoapUtil.interpolate(doapOptions.getScmDeveloper(), project, settings);
+        if (StringUtils.isEmpty(devConnection)) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "scmDeveloperConnection"},
+                    null,
+                    UserMessages.REQUIRED_BY_ASF_OR_RECOMMENDED);
+        } else {
+            DoapUtil.writeComment(writer, "Developer Source Repository.");
 
-            try
-            {
-                new URL( devConnection );
+            try {
+                new URL(devConnection);
 
-                DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "repository" );
-                DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "Repository" );
-                DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "location", devConnection );
+                DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "repository");
+                DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "Repository");
+                DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "location", devConnection);
                 writer.endElement(); // Repository
                 writer.endElement(); // repository
-            }
-            catch ( MalformedURLException e )
-            {
-                writeSourceRepository( writer, project, devConnection );
+            } catch (MalformedURLException e) {
+                writeSourceRepository(writer, project, devConnection);
             }
         }
     }
@@ -1653,48 +1459,41 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#CVSRepository">http://usefulinc.com/ns/doap#CVSRepository</a>
      * @see <a href="http://usefulinc.com/ns/doap#SVNRepository">http://usefulinc.com/ns/doap#SVNRepository</a>
      */
-    private void writeSourceRepository( XMLWriter writer, MavenProject project, String connection )
-    {
-        ScmRepository repository = getScmRepository( connection );
+    private void writeSourceRepository(XMLWriter writer, MavenProject project, String connection) {
+        ScmRepository repository = getScmRepository(connection);
 
-        DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "repository" );
+        DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "repository");
 
-        if ( isScmSystem( repository, "cvs" ) )
-        {
-            DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "CVSRepository" );
+        if (isScmSystem(repository, "cvs")) {
+            DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "CVSRepository");
 
             CvsScmProviderRepository cvsRepo = (CvsScmProviderRepository) repository.getProviderRepository();
 
-            DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "anon-root", cvsRepo.getCvsRoot() );
-            DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "module", cvsRepo.getModule() );
-        }
-        else if ( isScmSystem( repository, "svn" ) )
-        {
-            DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "SVNRepository" );
+            DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "anon-root", cvsRepo.getCvsRoot());
+            DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "module", cvsRepo.getModule());
+        } else if (isScmSystem(repository, "svn")) {
+            DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "SVNRepository");
 
             SvnScmProviderRepository svnRepo = (SvnScmProviderRepository) repository.getProviderRepository();
 
-            DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "location", svnRepo.getUrl() );
-        }
-        else
-        {
+            DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "location", svnRepo.getUrl());
+        } else {
             /*
              * Supported DOAP repositories actually unsupported by SCM: BitKeeper
              * (http://usefulinc.com/ns/doap#BKRepository) Arch (http://usefulinc.com/ns/doap#ArchRepository) Other SCM
              * repos are unsupported by DOAP.
              */
-            DoapUtil.writeStartElement( writer, doapOptions.getXmlnsPrefix(), "Repository" );
+            DoapUtil.writeStartElement(writer, doapOptions.getXmlnsPrefix(), "Repository");
 
-            if ( connection.length() < 4 )
-            {
-                throw new IllegalArgumentException( "The source repository connection is too short." );
+            if (connection.length() < 4) {
+                throw new IllegalArgumentException("The source repository connection is too short.");
             }
 
-            DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "location",
-                                              connection.substring( 4 ) );
+            DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "location", connection.substring(4));
         }
 
-        DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "browse", project.getScm().getUrl() );
+        DoapUtil.writeRdfResourceElement(
+                writer, doapOptions.getXmlnsPrefix(), "browse", project.getScm().getUrl());
 
         writer.endElement(); // CVSRepository || SVNRepository || Repository
         writer.endElement(); // repository
@@ -1706,65 +1505,52 @@ public class DoapMojo
      * @param writer       not null
      * @param contributors list of developers or contributors
      */
-    private void writeContributors( XMLWriter writer, List<Contributor> contributors )
-    {
-        if ( contributors == null || contributors.isEmpty() )
-        {
+    private void writeContributors(XMLWriter writer, List<Contributor> contributors) {
+        if (contributors == null || contributors.isEmpty()) {
             return;
         }
 
-        boolean isDeveloper = Developer.class.isAssignableFrom( contributors.get( 0 ).getClass() );
-        if ( isDeveloper )
-        {
-            DoapUtil.writeComment( writer, "Main committers." );
-        }
-        else
-        {
-            DoapUtil.writeComment( writer, "Contributed persons." );
+        boolean isDeveloper =
+                Developer.class.isAssignableFrom(contributors.get(0).getClass());
+        if (isDeveloper) {
+            DoapUtil.writeComment(writer, "Main committers.");
+        } else {
+            DoapUtil.writeComment(writer, "Contributed persons.");
         }
 
-        List<Contributor> maintainers = DoapUtil.getContributorsWithMaintainerRole( i18n, contributors );
-        List<Contributor> developers = DoapUtil.getContributorsWithDeveloperRole( i18n, contributors );
-        List<Contributor> documenters = DoapUtil.getContributorsWithDocumenterRole( i18n, contributors );
-        List<Contributor> translators = DoapUtil.getContributorsWithTranslatorRole( i18n, contributors );
-        List<Contributor> testers = DoapUtil.getContributorsWithTesterRole( i18n, contributors );
-        List<Contributor> helpers = DoapUtil.getContributorsWithHelperRole( i18n, contributors );
-        List<Contributor> unknowns = DoapUtil.getContributorsWithUnknownRole( i18n, contributors );
+        List<Contributor> maintainers = DoapUtil.getContributorsWithMaintainerRole(i18n, contributors);
+        List<Contributor> developers = DoapUtil.getContributorsWithDeveloperRole(i18n, contributors);
+        List<Contributor> documenters = DoapUtil.getContributorsWithDocumenterRole(i18n, contributors);
+        List<Contributor> translators = DoapUtil.getContributorsWithTranslatorRole(i18n, contributors);
+        List<Contributor> testers = DoapUtil.getContributorsWithTesterRole(i18n, contributors);
+        List<Contributor> helpers = DoapUtil.getContributorsWithHelperRole(i18n, contributors);
+        List<Contributor> unknowns = DoapUtil.getContributorsWithUnknownRole(i18n, contributors);
 
         // By default, all developers are maintainers and contributors are helpers
-        if ( isDeveloper )
-        {
-            maintainers.addAll( unknowns );
-        }
-        else
-        {
-            helpers.addAll( unknowns );
+        if (isDeveloper) {
+            maintainers.addAll(unknowns);
+        } else {
+            helpers.addAll(unknowns);
         }
 
         // all alphabetical
-        if ( developers.size() != 0 )
-        {
-            writeContributor( writer, developers, "developer" );
+        if (developers.size() != 0) {
+            writeContributor(writer, developers, "developer");
         }
-        if ( documenters.size() != 0 )
-        {
-            writeContributor( writer, documenters, "documenter" );
+        if (documenters.size() != 0) {
+            writeContributor(writer, documenters, "documenter");
         }
-        if ( helpers.size() != 0 )
-        {
-            writeContributor( writer, helpers, "helper" );
+        if (helpers.size() != 0) {
+            writeContributor(writer, helpers, "helper");
         }
-        if ( maintainers.size() != 0 )
-        {
-            writeContributor( writer, maintainers, "maintainer" );
+        if (maintainers.size() != 0) {
+            writeContributor(writer, maintainers, "maintainer");
         }
-        if ( testers.size() != 0 )
-        {
-            writeContributor( writer, testers, "tester" );
+        if (testers.size() != 0) {
+            writeContributor(writer, testers, "tester");
         }
-        if ( translators.size() != 0 )
-        {
-            writeContributor( writer, translators, "translator" );
+        if (translators.size() != 0) {
+            writeContributor(writer, translators, "translator");
         }
     }
 
@@ -1785,18 +1571,15 @@ public class DoapMojo
      * @param doapType                 not null
      * @see #writeContributor(XMLWriter, Object, String)
      */
-    private void writeContributor( XMLWriter writer, List<Contributor> developersOrContributors, String doapType )
-    {
-        if ( developersOrContributors == null || developersOrContributors.isEmpty() )
-        {
+    private void writeContributor(XMLWriter writer, List<Contributor> developersOrContributors, String doapType) {
+        if (developersOrContributors == null || developersOrContributors.isEmpty()) {
             return;
         }
 
-        sortContributors( developersOrContributors );
+        sortContributors(developersOrContributors);
 
-        for ( Contributor developersOrContributor : developersOrContributors )
-        {
-            writeContributor( writer, developersOrContributor, doapOptions.getXmlnsPrefix(), doapType );
+        for (Contributor developersOrContributor : developersOrContributors) {
+            writeContributor(writer, developersOrContributor, doapOptions.getXmlnsPrefix(), doapType);
         }
     }
 
@@ -1819,17 +1602,14 @@ public class DoapMojo
      * @see <a href="http://xmlns.com/foaf/0.1/Organization">http://xmlns.com/foaf/0.1/Organization</a>
      * @see <a href="http://xmlns.com/foaf/0.1/homepage">http://xmlns.com/foaf/0.1/homepage</a>
      */
-    private void writeContributor( XMLWriter writer, Contributor developerOrContributor, String xmlsPrefix,
-                                   String doapType )
-    {
-        if ( developerOrContributor == null )
-        {
+    private void writeContributor(
+            XMLWriter writer, Contributor developerOrContributor, String xmlsPrefix, String doapType) {
+        if (developerOrContributor == null) {
             return;
         }
 
-        if ( StringUtils.isEmpty( doapType ) )
-        {
-            throw new IllegalArgumentException( "doapType is required." );
+        if (StringUtils.isEmpty(doapType)) {
+            throw new IllegalArgumentException("doapType is required.");
         }
 
         String name = developerOrContributor.getName();
@@ -1840,70 +1620,60 @@ public class DoapMojo
         String nodeId = null;
 
         // Name is required to write doap
-        if ( StringUtils.isEmpty( name ) )
-        {
-            messages.addMessage( new String[]{ "project", "developers|contributors", "developer|contributor", "name" },
-                                 null, UserMessages.REQUIRED );
+        if (StringUtils.isEmpty(name)) {
+            messages.addMessage(
+                    new String[] {"project", "developers|contributors", "developer|contributor", "name"},
+                    null,
+                    UserMessages.REQUIRED);
             return;
         }
 
-        if ( !StringUtils.isEmpty( organization ) || !StringUtils.isEmpty( organizationUrl ) )
-        {
-            DoapUtil.Organization doapOrganization = DoapUtil.addOrganization( organization, organizationUrl );
+        if (!StringUtils.isEmpty(organization) || !StringUtils.isEmpty(organizationUrl)) {
+            DoapUtil.Organization doapOrganization = DoapUtil.addOrganization(organization, organizationUrl);
             nodeId = DoapUtil.getNodeId();
-            doapOrganization.addMember( nodeId );
+            doapOrganization.addMember(nodeId);
         }
 
-        DoapUtil.writeStartElement( writer, xmlsPrefix, doapType );
-        DoapUtil.writeStartElement( writer, "foaf", "Person" );
-        if ( StringUtils.isNotEmpty( nodeId ) )
-        {
-            writer.addAttribute( "rdf:nodeID", nodeId );
+        DoapUtil.writeStartElement(writer, xmlsPrefix, doapType);
+        DoapUtil.writeStartElement(writer, "foaf", "Person");
+        if (StringUtils.isNotEmpty(nodeId)) {
+            writer.addAttribute("rdf:nodeID", nodeId);
         }
-        DoapUtil.writeStartElement( writer, "foaf", "name" );
-        writer.writeText( name );
+        DoapUtil.writeStartElement(writer, "foaf", "name");
+        writer.writeText(name);
         writer.endElement(); // foaf:name
-        if ( StringUtils.isNotEmpty( email ) )
-        {
-            if ( DoapUtil.isValidEmail( email ) )
-            {
-                DoapUtil.writeRdfResourceElement( writer, "foaf", "mbox", "mailto:" + email );
-            }
-            else
-            {
+        if (StringUtils.isNotEmpty(email)) {
+            if (DoapUtil.isValidEmail(email)) {
+                DoapUtil.writeRdfResourceElement(writer, "foaf", "mbox", "mailto:" + email);
+            } else {
                 messages.addMessage(
-                    new String[]{ "project", "developers|contributors", "developer|contributor", "email" }, null,
-                    UserMessages.INVALID_EMAIL );
+                        new String[] {"project", "developers|contributors", "developer|contributor", "email"},
+                        null,
+                        UserMessages.INVALID_EMAIL);
             }
         }
-        if ( StringUtils.isNotEmpty( organization ) && StringUtils.isNotEmpty( organizationUrl ) )
-        {
-            try
-            {
-                new URL( organizationUrl );
+        if (StringUtils.isNotEmpty(organization) && StringUtils.isNotEmpty(organizationUrl)) {
+            try {
+                new URL(organizationUrl);
 
-                DoapUtil.addOrganization( organization, organizationUrl );
-            }
-            catch ( MalformedURLException e )
-            {
+                DoapUtil.addOrganization(organization, organizationUrl);
+            } catch (MalformedURLException e) {
                 messages.addMessage(
-                    new String[]{ "project", "developers|contributors", "developer|contributor", "organizationUrl" },
-                    organizationUrl, UserMessages.INVALID_URL );
+                        new String[] {"project", "developers|contributors", "developer|contributor", "organizationUrl"},
+                        organizationUrl,
+                        UserMessages.INVALID_URL);
             }
         }
-        if ( StringUtils.isNotEmpty( homepage ) )
-        {
-            try
-            {
-                new URL( homepage );
+        if (StringUtils.isNotEmpty(homepage)) {
+            try {
+                new URL(homepage);
 
-                DoapUtil.writeRdfResourceElement( writer, "foaf", "homepage", homepage );
-            }
-            catch ( MalformedURLException e )
-            {
+                DoapUtil.writeRdfResourceElement(writer, "foaf", "homepage", homepage);
+            } catch (MalformedURLException e) {
                 messages.addMessage(
-                    new String[]{ "project", "developers|contributors", "developer|contributor", "homepage" }, homepage,
-                    UserMessages.INVALID_URL );
+                        new String[] {"project", "developers|contributors", "developer|contributor", "homepage"},
+                        homepage,
+                        UserMessages.INVALID_URL);
             }
         }
         writer.endElement(); // foaf:Person
@@ -1916,20 +1686,14 @@ public class DoapMojo
      * @param scmUrl an SCM URL
      * @return a valid SCM repository or null
      */
-    private ScmRepository getScmRepository( String scmUrl )
-    {
+    private ScmRepository getScmRepository(String scmUrl) {
         ScmRepository repo = null;
-        if ( !StringUtils.isEmpty( scmUrl ) )
-        {
-            try
-            {
-                repo = scmManager.makeScmRepository( scmUrl );
-            }
-            catch ( NoSuchScmProviderException | ScmRepositoryException e )
-            {
-                if ( getLog().isDebugEnabled() )
-                {
-                    getLog().debug( e.getMessage(), e );
+        if (!StringUtils.isEmpty(scmUrl)) {
+            try {
+                repo = scmManager.makeScmRepository(scmUrl);
+            } catch (NoSuchScmProviderException | ScmRepositoryException e) {
+                if (getLog().isDebugEnabled()) {
+                    getLog().debug(e.getMessage(), e);
                 }
             }
         }
@@ -1946,109 +1710,85 @@ public class DoapMojo
      *      http://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/asfext</a>
      * @see <a href="http://projects.apache.org/docs/pmc.html">http://projects.apache.org/docs/pmc.html</a>
      */
-    private void writeASFext( XMLWriter writer, MavenProject project )
-    {
-        if ( !asfExtOptions.isIncluded() )
-        {
+    private void writeASFext(XMLWriter writer, MavenProject project) {
+        if (!asfExtOptions.isIncluded()) {
             return;
         }
 
-        DoapUtil.writeComment( writer, "ASF extension." );
+        DoapUtil.writeComment(writer, "ASF extension.");
 
         // asfext:pmc
-        String pmc = DoapUtil.interpolate( asfExtOptions.getPmc(), project, settings );
-        if ( StringUtils.isNotEmpty( pmc ) )
-        {
-            DoapUtil.writeRdfResourceElement( writer, asfExtOptions.getXmlnsPrefix(), "pmc", pmc );
-        }
-        else
-        {
-            messages.addMessage( new String[]{ "asfExtOptions", "pmc" }, null, UserMessages.REQUIRED_BY_ASF );
+        String pmc = DoapUtil.interpolate(asfExtOptions.getPmc(), project, settings);
+        if (StringUtils.isNotEmpty(pmc)) {
+            DoapUtil.writeRdfResourceElement(writer, asfExtOptions.getXmlnsPrefix(), "pmc", pmc);
+        } else {
+            messages.addMessage(new String[] {"asfExtOptions", "pmc"}, null, UserMessages.REQUIRED_BY_ASF);
         }
 
         // asfext:name
-        String name = DoapUtil.interpolate( asfExtOptions.getName(), project, settings );
-        if ( StringUtils.isNotEmpty( name ) )
-        {
-            if ( !name.toLowerCase( Locale.ENGLISH ).trim().startsWith( "apache" ) )
-            {
+        String name = DoapUtil.interpolate(asfExtOptions.getName(), project, settings);
+        if (StringUtils.isNotEmpty(name)) {
+            if (!name.toLowerCase(Locale.ENGLISH).trim().startsWith("apache")) {
                 name = "Apache " + name;
             }
-            DoapUtil.writeElement( writer, asfExtOptions.getXmlnsPrefix(), "name", name );
-        }
-        else
-        {
-            messages.addMessage( new String[]{ "asfExtOptions", "name" }, null, UserMessages.REQUIRED_BY_ASF );
+            DoapUtil.writeElement(writer, asfExtOptions.getXmlnsPrefix(), "name", name);
+        } else {
+            messages.addMessage(new String[] {"asfExtOptions", "name"}, null, UserMessages.REQUIRED_BY_ASF);
         }
 
-        String homepage = DoapUtil.interpolate( doapOptions.getHomepage(), project, settings );
-        if ( StringUtils.isNotEmpty( homepage ) )
-        {
-            try
-            {
-                new URL( homepage );
+        String homepage = DoapUtil.interpolate(doapOptions.getHomepage(), project, settings);
+        if (StringUtils.isNotEmpty(homepage)) {
+            try {
+                new URL(homepage);
 
-                DoapUtil.writeRdfResourceElement( writer, "foaf", "homepage", homepage );
-            }
-            catch ( MalformedURLException e )
-            {
-                messages.addMessage( new String[]{ "doapOptions", "homepage" }, homepage, UserMessages.INVALID_URL );
+                DoapUtil.writeRdfResourceElement(writer, "foaf", "homepage", homepage);
+            } catch (MalformedURLException e) {
+                messages.addMessage(new String[] {"doapOptions", "homepage"}, homepage, UserMessages.INVALID_URL);
             }
         }
 
         // asfext:charter
-        if ( StringUtils.isEmpty( asfExtOptions.getCharter() ) )
-        {
-            messages.addMessage( new String[]{ "asfExtOptions", "charter" }, null, UserMessages.REQUIRED_BY_ASF );
-        }
-        else
-        {
-            DoapUtil.writeElement( writer, asfExtOptions.getXmlnsPrefix(), "charter", asfExtOptions.getCharter() );
+        if (StringUtils.isEmpty(asfExtOptions.getCharter())) {
+            messages.addMessage(new String[] {"asfExtOptions", "charter"}, null, UserMessages.REQUIRED_BY_ASF);
+        } else {
+            DoapUtil.writeElement(writer, asfExtOptions.getXmlnsPrefix(), "charter", asfExtOptions.getCharter());
         }
 
         // asfext:chair
-        @SuppressWarnings( "unchecked" ) List<Developer> developers =
-            new ArrayList<Developer>( project.getDevelopers() );
-        sortContributors( developers );
-
-        if ( StringUtils.isNotEmpty( asfExtOptions.getChair() ) )
-        {
-            DoapUtil.writeStartElement( writer, asfExtOptions.getXmlnsPrefix(), "chair" );
-            DoapUtil.writeStartElement( writer, "foaf", "Person" );
-            DoapUtil.writeStartElement( writer, "foaf", "name" );
-            writer.writeText( asfExtOptions.getChair() );
+        @SuppressWarnings("unchecked")
+        List<Developer> developers = new ArrayList<Developer>(project.getDevelopers());
+        sortContributors(developers);
+
+        if (StringUtils.isNotEmpty(asfExtOptions.getChair())) {
+            DoapUtil.writeStartElement(writer, asfExtOptions.getXmlnsPrefix(), "chair");
+            DoapUtil.writeStartElement(writer, "foaf", "Person");
+            DoapUtil.writeStartElement(writer, "foaf", "name");
+            writer.writeText(asfExtOptions.getChair());
             writer.endElement(); // foaf:name
             writer.endElement(); // foaf:Person
             writer.endElement(); // asfext:chair
-        }
-        else
-        {
-            Developer chair = ASFExtOptionsUtil.findChair( developers );
-            if ( chair != null )
-            {
-                writeContributor( writer, chair, asfExtOptions.getXmlnsPrefix(), "chair" );
-                developers.remove( chair );
-            }
-            else
-            {
-                messages.addMessage( new String[]{ "asfExtOptions", "chair" }, null, UserMessages.REQUIRED_BY_ASF );
+        } else {
+            Developer chair = ASFExtOptionsUtil.findChair(developers);
+            if (chair != null) {
+                writeContributor(writer, chair, asfExtOptions.getXmlnsPrefix(), "chair");
+                developers.remove(chair);
+            } else {
+                messages.addMessage(new String[] {"asfExtOptions", "chair"}, null, UserMessages.REQUIRED_BY_ASF);
             }
         }
 
         // asfext:member
-        if ( developers != null && developers.size() > 0 )
-        {
-            List<Developer> pmcMembers = ASFExtOptionsUtil.findPMCMembers( developers );
-            for ( Developer pmcMember : pmcMembers )
-            {
-                writeContributor( writer, pmcMember, asfExtOptions.getXmlnsPrefix(), "member" );
+        if (developers != null && developers.size() > 0) {
+            List<Developer> pmcMembers = ASFExtOptionsUtil.findPMCMembers(developers);
+            for (Developer pmcMember : pmcMembers) {
+                writeContributor(writer, pmcMember, asfExtOptions.getXmlnsPrefix(), "member");
             }
         }
 
-        writeASFImplements( writer );
+        writeASFImplements(writer);
 
         Map<Object, String> map = asfExtOptions.getExtra();
-        writeExtra( writer, project, "Extra ASFExt vocabulary.", map, asfExtOptions.getXmlnsPrefix() );
+        writeExtra(writer, project, "Extra ASFExt vocabulary.", map, asfExtOptions.getXmlnsPrefix());
     }
 
     /**
@@ -2059,61 +1799,57 @@ public class DoapMojo
      *      http://svn.apache.org/repos/asf/infrastructure/site-tools/trunk/projects/asfext</a>
      * @see <a href="http://projects.apache.org/docs/standards.html">http://projects.apache.org/docs/standards.html</a>
      */
-    private void writeASFImplements( XMLWriter writer )
-    {
-        if ( asfExtOptions.getStandards() == null || asfExtOptions.getStandards().isEmpty() )
-        {
+    private void writeASFImplements(XMLWriter writer) {
+        if (asfExtOptions.getStandards() == null || asfExtOptions.getStandards().isEmpty()) {
             return;
         }
 
-        for ( Standard standard : asfExtOptions.getStandards() )
-        {
-            DoapUtil.writeStartElement( writer, asfExtOptions.getXmlnsPrefix(), "implements" );
-            DoapUtil.writeStartElement( writer, asfExtOptions.getXmlnsPrefix(), "Standard" );
+        for (Standard standard : asfExtOptions.getStandards()) {
+            DoapUtil.writeStartElement(writer, asfExtOptions.getXmlnsPrefix(), "implements");
+            DoapUtil.writeStartElement(writer, asfExtOptions.getXmlnsPrefix(), "Standard");
 
-            if ( StringUtils.isEmpty( standard.getTitle() ) )
-            {
-                messages.addMessage( new String[]{ "asfExtOptions", "standards", "title" }, null,
-                                     UserMessages.REQUIRED_BY_ASF );
-            }
-            else
-            {
-                DoapUtil.writeElement( writer, asfExtOptions.getXmlnsPrefix(), "title", standard.getTitle().trim() );
+            if (StringUtils.isEmpty(standard.getTitle())) {
+                messages.addMessage(
+                        new String[] {"asfExtOptions", "standards", "title"}, null, UserMessages.REQUIRED_BY_ASF);
+            } else {
+                DoapUtil.writeElement(
+                        writer,
+                        asfExtOptions.getXmlnsPrefix(),
+                        "title",
+                        standard.getTitle().trim());
             }
 
-            if ( StringUtils.isEmpty( standard.getBody() ) )
-            {
-                messages.addMessage( new String[]{ "asfExtOptions", "standards", "body" }, null,
-                                     UserMessages.REQUIRED_BY_ASF );
-            }
-            else
-            {
-                DoapUtil.writeElement( writer, asfExtOptions.getXmlnsPrefix(), "body", standard.getBody().trim() );
+            if (StringUtils.isEmpty(standard.getBody())) {
+                messages.addMessage(
+                        new String[] {"asfExtOptions", "standards", "body"}, null, UserMessages.REQUIRED_BY_ASF);
+            } else {
+                DoapUtil.writeElement(
+                        writer,
+                        asfExtOptions.getXmlnsPrefix(),
+                        "body",
+                        standard.getBody().trim());
             }
 
-            if ( StringUtils.isEmpty( standard.getId() ) )
-            {
-                messages.addMessage( new String[]{ "asfExtOptions", "standards", "id" }, null,
-                                     UserMessages.REQUIRED_BY_ASF );
-            }
-            else
-            {
-                DoapUtil.writeElement( writer, asfExtOptions.getXmlnsPrefix(), "id", standard.getId().trim() );
+            if (StringUtils.isEmpty(standard.getId())) {
+                messages.addMessage(
+                        new String[] {"asfExtOptions", "standards", "id"}, null, UserMessages.REQUIRED_BY_ASF);
+            } else {
+                DoapUtil.writeElement(
+                        writer,
+                        asfExtOptions.getXmlnsPrefix(),
+                        "id",
+                        standard.getId().trim());
             }
 
-            if ( StringUtils.isNotEmpty( standard.getUrl() ) )
-            {
+            if (StringUtils.isNotEmpty(standard.getUrl())) {
                 String standardUrl = standard.getUrl().trim();
-                try
-                {
-                    new URL( standardUrl );
+                try {
+                    new URL(standardUrl);
 
-                    DoapUtil.writeElement( writer, asfExtOptions.getXmlnsPrefix(), "url", standardUrl );
-                }
-                catch ( MalformedURLException e )
-                {
-                    messages.addMessage( new String[]{ "asfExtOptions", "standards", "url" }, standardUrl,
-                                         UserMessages.INVALID_URL );
+                    DoapUtil.writeElement(writer, asfExtOptions.getXmlnsPrefix(), "url", standardUrl);
+                } catch (MalformedURLException e) {
+                    messages.addMessage(
+                            new String[] {"asfExtOptions", "standards", "url"}, standardUrl, UserMessages.INVALID_URL);
                 }
             }
 
@@ -2138,37 +1874,29 @@ public class DoapMojo
      * @param doapType                 not null
      * @see #writeContributor(XMLWriter, Object, String)
      */
-    private void writeOrganizations( XMLWriter writer )
-    {
+    private void writeOrganizations(XMLWriter writer) {
         Set<Entry<String, DoapUtil.Organization>> organizations = DoapUtil.getOrganizations();
 
-        for ( Entry<String, DoapUtil.Organization> organizationEntry : organizations )
-        {
+        for (Entry<String, DoapUtil.Organization> organizationEntry : organizations) {
             DoapUtil.Organization organization = organizationEntry.getValue();
 
-            DoapUtil.writeStartElement( writer, "foaf", "Organization" );
-            if ( !StringUtils.isEmpty( organization.getName() ) )
-            {
-                DoapUtil.writeElement( writer, "foaf", "name", organization.getName() );
+            DoapUtil.writeStartElement(writer, "foaf", "Organization");
+            if (!StringUtils.isEmpty(organization.getName())) {
+                DoapUtil.writeElement(writer, "foaf", "name", organization.getName());
             }
-            if ( !StringUtils.isEmpty( organization.getUrl() ) )
-            {
-                try
-                {
-                    new URL( organization.getUrl() );
+            if (!StringUtils.isEmpty(organization.getUrl())) {
+                try {
+                    new URL(organization.getUrl());
 
-                    DoapUtil.writeRdfResourceElement( writer, "foaf", "homepage", organization.getUrl() );
-                }
-                catch ( MalformedURLException e )
-                {
+                    DoapUtil.writeRdfResourceElement(writer, "foaf", "homepage", organization.getUrl());
+                } catch (MalformedURLException e) {
                     messages.errorMessages.add(
-                        "The organization URL " + organization.getUrl() + " is not a valid URL." );
+                            "The organization URL " + organization.getUrl() + " is not a valid URL.");
                 }
             }
             List<String> members = organization.getMembers();
-            for ( String member : members )
-            {
-                DoapUtil.writeRdfNodeIdElement( writer, "foaf", "member", member );
+            for (String member : members) {
+                DoapUtil.writeRdfNodeIdElement(writer, "foaf", "member", member);
             }
             writer.endElement(); // foaf:Organization
         }
@@ -2181,16 +1909,14 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#audience">http://usefulinc.com/ns/doap#audience</a>
      * @since 1.1
      */
-    private void writeAudience( XMLWriter writer )
-    {
-        String audience = DoapUtil.interpolate( doapOptions.getAudience(), project, settings );
-        if ( StringUtils.isEmpty( audience ) )
-        {
+    private void writeAudience(XMLWriter writer) {
+        String audience = DoapUtil.interpolate(doapOptions.getAudience(), project, settings);
+        if (StringUtils.isEmpty(audience)) {
             return;
         }
 
-        DoapUtil.writeComment( writer, "Audience." );
-        DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "audience", audience );
+        DoapUtil.writeComment(writer, "Audience.");
+        DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "audience", audience);
     }
 
     /**
@@ -2200,27 +1926,22 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#blog">http://usefulinc.com/ns/doap#blog</a>
      * @since 1.1
      */
-    private void writeBlog( XMLWriter writer )
-    {
-        String blog = DoapUtil.interpolate( doapOptions.getBlog(), project, settings );
-        if ( StringUtils.isEmpty( doapOptions.getBlog() ) )
-        {
+    private void writeBlog(XMLWriter writer) {
+        String blog = DoapUtil.interpolate(doapOptions.getBlog(), project, settings);
+        if (StringUtils.isEmpty(doapOptions.getBlog())) {
             return;
         }
 
         blog = blog.trim();
-        try
-        {
-            new URL( blog );
-        }
-        catch ( MalformedURLException e )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "blog" }, blog, UserMessages.INVALID_URL );
+        try {
+            new URL(blog);
+        } catch (MalformedURLException e) {
+            messages.addMessage(new String[] {"doapOptions", "blog"}, blog, UserMessages.INVALID_URL);
             return;
         }
 
-        DoapUtil.writeComment( writer, "Blog page." );
-        DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "blog", blog );
+        DoapUtil.writeComment(writer, "Blog page.");
+        DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "blog", blog);
     }
 
     /**
@@ -2230,18 +1951,15 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#plateform">http://usefulinc.com/ns/doap#plateform</a>
      * @since 1.1
      */
-    private void writePlateform( XMLWriter writer )
-    {
-        if ( StringUtils.isEmpty( doapOptions.getPlatform() ) )
-        {
+    private void writePlateform(XMLWriter writer) {
+        if (StringUtils.isEmpty(doapOptions.getPlatform())) {
             return;
         }
 
-        DoapUtil.writeComment( writer, "Platform." );
-        String[] platforms = StringUtils.split( doapOptions.getPlatform(), "," );
-        for ( String platform : platforms )
-        {
-            DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "platform", platform.trim() );
+        DoapUtil.writeComment(writer, "Platform.");
+        String[] platforms = StringUtils.split(doapOptions.getPlatform(), ",");
+        for (String platform : platforms) {
+            DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "platform", platform.trim());
         }
     }
 
@@ -2253,16 +1971,14 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#vendor">http://usefulinc.com/ns/doap#vendor</a>
      * @since 1.1
      */
-    private void writeVendor( XMLWriter writer, MavenProject project )
-    {
-        String vendor = DoapUtil.interpolate( doapOptions.getVendor(), project, settings );
-        if ( StringUtils.isEmpty( vendor ) )
-        {
+    private void writeVendor(XMLWriter writer, MavenProject project) {
+        String vendor = DoapUtil.interpolate(doapOptions.getVendor(), project, settings);
+        if (StringUtils.isEmpty(vendor)) {
             return;
         }
 
-        DoapUtil.writeComment( writer, "Vendor." );
-        DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "vendor", vendor );
+        DoapUtil.writeComment(writer, "Vendor.");
+        DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "vendor", vendor);
     }
 
     /**
@@ -2272,32 +1988,26 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#language">http://usefulinc.com/ns/doap#language</a>
      * @since 1.1
      */
-    private void writeLanguage( XMLWriter writer )
-    {
-        if ( StringUtils.isEmpty( doapOptions.getLanguage() ) )
-        {
+    private void writeLanguage(XMLWriter writer) {
+        if (StringUtils.isEmpty(doapOptions.getLanguage())) {
             return;
         }
 
         boolean addComment = false;
-        String[] languages = StringUtils.split( doapOptions.getLanguage(), "," );
-        for ( String language : languages )
-        {
+        String[] languages = StringUtils.split(doapOptions.getLanguage(), ",");
+        for (String language : languages) {
             language = language.trim();
 
-            if ( Arrays.binarySearch( Locale.getISOLanguages(), language ) < 0 )
-            {
-                messages.addMessage( new String[]{ "doapOptions", "languages" }, language,
-                                     UserMessages.INVALID_ISO_DATE );
+            if (Arrays.binarySearch(Locale.getISOLanguages(), language) < 0) {
+                messages.addMessage(new String[] {"doapOptions", "languages"}, language, UserMessages.INVALID_ISO_DATE);
                 continue;
             }
 
-            if ( !addComment )
-            {
-                DoapUtil.writeComment( writer, "Language." );
+            if (!addComment) {
+                DoapUtil.writeComment(writer, "Language.");
                 addComment = true;
             }
-            DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "language", language );
+            DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "language", language);
         }
     }
 
@@ -2308,28 +2018,23 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#service-endpoint">http://usefulinc.com/ns/doap#service-endpoint</a>
      * @since 1.1
      */
-    private void writeServiceEndpoint( XMLWriter writer )
-    {
-        String serviceEndpoint = DoapUtil.interpolate( doapOptions.getServiceEndpoint(), project, settings );
-        if ( StringUtils.isEmpty( serviceEndpoint ) )
-        {
+    private void writeServiceEndpoint(XMLWriter writer) {
+        String serviceEndpoint = DoapUtil.interpolate(doapOptions.getServiceEndpoint(), project, settings);
+        if (StringUtils.isEmpty(serviceEndpoint)) {
             return;
         }
 
         serviceEndpoint = serviceEndpoint.trim();
-        try
-        {
-            new URL( serviceEndpoint );
-        }
-        catch ( MalformedURLException e )
-        {
-            messages.addMessage( new String[]{ "doapOptions", "serviceEndpoint" }, serviceEndpoint,
-                                 UserMessages.INVALID_URL );
+        try {
+            new URL(serviceEndpoint);
+        } catch (MalformedURLException e) {
+            messages.addMessage(
+                    new String[] {"doapOptions", "serviceEndpoint"}, serviceEndpoint, UserMessages.INVALID_URL);
             return;
         }
 
-        DoapUtil.writeComment( writer, "Service endpoint." );
-        DoapUtil.writeRdfResourceElement( writer, doapOptions.getXmlnsPrefix(), "service-endpoint", serviceEndpoint );
+        DoapUtil.writeComment(writer, "Service endpoint.");
+        DoapUtil.writeRdfResourceElement(writer, doapOptions.getXmlnsPrefix(), "service-endpoint", serviceEndpoint);
     }
 
     /**
@@ -2339,18 +2044,15 @@ public class DoapMojo
      * @see <a href="http://usefulinc.com/ns/doap#implements">http://usefulinc.com/ns/doap#implements</a>
      * @since 1.1
      */
-    private void writeImplements( XMLWriter writer )
-    {
-        if ( StringUtils.isEmpty( doapOptions.getImplementations() ) )
-        {
+    private void writeImplements(XMLWriter writer) {
+        if (StringUtils.isEmpty(doapOptions.getImplementations())) {
             return;
         }
 
-        DoapUtil.writeComment( writer, "Implements." );
-        String[] implementations = StringUtils.split( doapOptions.getImplementations(), "," );
-        for ( String implementation : implementations )
-        {
-            DoapUtil.writeElement( writer, doapOptions.getXmlnsPrefix(), "implements", implementation.trim() );
+        DoapUtil.writeComment(writer, "Implements.");
+        String[] implementations = StringUtils.split(doapOptions.getImplementations(), ",");
+        for (String implementation : implementations) {
+            DoapUtil.writeElement(writer, doapOptions.getXmlnsPrefix(), "implements", implementation.trim());
         }
     }
 
@@ -2364,46 +2066,37 @@ public class DoapMojo
      * @param xmlnsPrefix not null
      * @since 1.1
      */
-    private void writeExtra( XMLWriter writer, MavenProject project, String comment, Map<Object, String> map,
-                             String xmlnsPrefix )
-    {
-        if ( map == null || map.isEmpty() )
-        {
+    private void writeExtra(
+            XMLWriter writer, MavenProject project, String comment, Map<Object, String> map, String xmlnsPrefix) {
+        if (map == null || map.isEmpty()) {
             return;
         }
 
         boolean addComment = false;
-        for ( Map.Entry<Object, String> entry : map.entrySet() )
-        {
+        for (Map.Entry<Object, String> entry : map.entrySet()) {
             String key = (String) entry.getKey();
             String value = entry.getValue();
 
-            if ( value == null )
-            {
+            if (value == null) {
                 continue;
             }
 
-            String interpolatedValue = DoapUtil.interpolate( value, project, settings );
-            if ( interpolatedValue == null )
-            {
+            String interpolatedValue = DoapUtil.interpolate(value, project, settings);
+            if (interpolatedValue == null) {
                 continue;
             }
 
-            if ( !addComment )
-            {
-                DoapUtil.writeComment( writer, comment );
+            if (!addComment) {
+                DoapUtil.writeComment(writer, comment);
                 addComment = true;
             }
 
-            try
-            {
-                new URL( interpolatedValue );
+            try {
+                new URL(interpolatedValue);
 
-                DoapUtil.writeRdfResourceElement( writer, xmlnsPrefix, key, interpolatedValue );
-            }
-            catch ( MalformedURLException e )
-            {
-                DoapUtil.writeElement( writer, xmlnsPrefix, key, interpolatedValue );
+                DoapUtil.writeRdfResourceElement(writer, xmlnsPrefix, key, interpolatedValue);
+            } catch (MalformedURLException e) {
+                DoapUtil.writeElement(writer, xmlnsPrefix, key, interpolatedValue);
             }
         }
     }
@@ -2414,17 +2107,16 @@ public class DoapMojo
      * @param writer not null
      * @since 1.1
      */
-    private void writeExtensions( XMLWriter writer )
-    {
-        if ( !( extOptions != null && extOptions.length > 0 && !extOptions[0].getExtensions().isEmpty() ) )
-        {
+    private void writeExtensions(XMLWriter writer) {
+        if (!(extOptions != null
+                && extOptions.length > 0
+                && !extOptions[0].getExtensions().isEmpty())) {
             return;
         }
 
-        for ( ExtOptions extOption : extOptions )
-        {
+        for (ExtOptions extOption : extOptions) {
             Map<Object, String> map = extOption.getExtensions();
-            writeExtra( writer, project, "Other extension vocabulary.", map, extOption.getXmlnsPrefix() );
+            writeExtra(writer, project, "Other extension vocabulary.", map, extOption.getXmlnsPrefix());
         }
     }
 
@@ -2443,15 +2135,12 @@ public class DoapMojo
      * @return true if the provider of the given SCM repository is equal to the given scm provider.
      * @see <a href="http://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-providers/">maven-scm-providers</a>
      */
-    private static boolean isScmSystem( ScmRepository scmRepository, String scmProvider )
-    {
-        if ( StringUtils.isEmpty( scmProvider ) )
-        {
+    private static boolean isScmSystem(ScmRepository scmRepository, String scmProvider) {
+        if (StringUtils.isEmpty(scmProvider)) {
             return false;
         }
 
-        if ( scmRepository != null && scmProvider.equalsIgnoreCase( scmRepository.getProvider() ) )
-        {
+        if (scmRepository != null && scmProvider.equalsIgnoreCase(scmRepository.getProvider())) {
             return true;
         }
 
@@ -2464,56 +2153,45 @@ public class DoapMojo
      * @param contributors not null
      * @since 1.1
      */
-    @SuppressWarnings( { "unchecked", "rawtypes" } )
-    private static void sortContributors( List contributors )
-    {
-        Collections.sort( contributors, new Comparator<Contributor>()
-        {
-            public int compare( Contributor contributor1, Contributor contributor2 )
-            {
-                if ( contributor1 == contributor2 )
-                {
+    @SuppressWarnings({"unchecked", "rawtypes"})
+    private static void sortContributors(List contributors) {
+        Collections.sort(contributors, new Comparator<Contributor>() {
+            public int compare(Contributor contributor1, Contributor contributor2) {
+                if (contributor1 == contributor2) {
                     return 0;
                 }
 
-                if ( contributor1 == null && contributor2 != null )
-                {
+                if (contributor1 == null && contributor2 != null) {
                     return -1;
                 }
-                if ( contributor1 != null && contributor2 == null )
-                {
+                if (contributor1 != null && contributor2 == null) {
                     return +1;
                 }
 
-                if ( Developer.class.isAssignableFrom( contributor1.getClass() ) && Developer.class.isAssignableFrom(
-                    contributor2.getClass() ) )
-                {
+                if (Developer.class.isAssignableFrom(contributor1.getClass())
+                        && Developer.class.isAssignableFrom(contributor2.getClass())) {
                     Developer developer1 = (Developer) contributor1;
                     Developer developer2 = (Developer) contributor2;
 
-                    if ( developer1.getId() == null && developer2.getId() != null )
-                    {
+                    if (developer1.getId() == null && developer2.getId() != null) {
                         return -1;
                     }
-                    if ( developer1.getId() != null && developer2.getId() == null )
-                    {
+                    if (developer1.getId() != null && developer2.getId() == null) {
                         return +1;
                     }
 
-                    return developer1.getId().compareTo( developer2.getId() );
+                    return developer1.getId().compareTo(developer2.getId());
                 }
 
-                if ( contributor1.getName() == null && contributor2.getName() != null )
-                {
+                if (contributor1.getName() == null && contributor2.getName() != null) {
                     return -1;
                 }
-                if ( contributor1.getName() != null && contributor2.getName() == null )
-                {
+                if (contributor1.getName() != null && contributor2.getName() == null) {
                     return +1;
                 }
-                return contributor1.getName().compareTo( contributor2.getName() );
+                return contributor1.getName().compareTo(contributor2.getName());
             }
-        } );
+        });
     }
 
     /**
@@ -2521,8 +2199,7 @@ public class DoapMojo
      *
      * @since 1.1
      */
-    private class UserMessages
-    {
+    private class UserMessages {
         public static final int REQUIRED = 10;
 
         public static final int REQUIRED_BY_ASF_OR_RECOMMENDED = 11;
@@ -2548,16 +2225,14 @@ public class DoapMojo
         /**
          * @return the error messages
          */
-        public List<String> getErrorMessages()
-        {
+        public List<String> getErrorMessages() {
             return errorMessages;
         }
 
         /**
          * @return the warn messages
          */
-        public List<String> getWarnMessages()
-        {
+        public List<String> getWarnMessages() {
             return warnMessages;
         }
 
@@ -2566,92 +2241,70 @@ public class DoapMojo
          * @param value   could be null
          * @param errorId positive id
          */
-        protected void addMessage( String[] tags, String value, int errorId )
-        {
-            if ( tags == null )
-            {
-                throw new IllegalArgumentException( "tags is required" );
+        protected void addMessage(String[] tags, String value, int errorId) {
+            if (tags == null) {
+                throw new IllegalArgumentException("tags is required");
             }
 
             boolean isPom = false;
-            if ( tags[0].equalsIgnoreCase( "project" ) )
-            {
+            if (tags[0].equalsIgnoreCase("project")) {
                 isPom = true;
             }
-            switch ( errorId )
-            {
+            switch (errorId) {
                 case REQUIRED:
-                    errorMessages.add( "A " + toConfiguration( tags, null ) + "  parameter is required." );
+                    errorMessages.add("A " + toConfiguration(tags, null) + "  parameter is required.");
                     break;
                 case REQUIRED_BY_ASF_OR_RECOMMENDED:
-                    if ( isPom )
-                    {
-                        if ( asfExtOptions.isIncluded() )
-                        {
-                            errorMessages.add(
-                                "A POM " + toConfiguration( tags, null ) + " value is required by ASF." );
-                        }
-                        else
-                        {
-                            warnMessages.add( "No POM " + toConfiguration( tags, null )
-                                                  + " value is defined, it is highly recommended to have one." );
+                    if (isPom) {
+                        if (asfExtOptions.isIncluded()) {
+                            errorMessages.add("A POM " + toConfiguration(tags, null) + " value is required by ASF.");
+                        } else {
+                            warnMessages.add("No POM " + toConfiguration(tags, null)
+                                    + " value is defined, it is highly recommended to have one.");
                         }
-                    }
-                    else
-                    {
-                        if ( asfExtOptions.isIncluded() )
-                        {
-                            errorMessages.add(
-                                "A " + toConfiguration( tags, null ) + " parameter is required by ASF." );
-                        }
-                        else
-                        {
-                            warnMessages.add( "No " + toConfiguration( tags, null )
-                                                  + " parameter defined, it is highly recommended to have one." );
+                    } else {
+                        if (asfExtOptions.isIncluded()) {
+                            errorMessages.add("A " + toConfiguration(tags, null) + " parameter is required by ASF.");
+                        } else {
+                            warnMessages.add("No " + toConfiguration(tags, null)
+                                    + " parameter defined, it is highly recommended to have one.");
                         }
                     }
                     break;
                 case REQUIRED_BY_ASF:
-                    if ( isPom )
-                    {
-                        errorMessages.add( "A POM " + toConfiguration( tags, null ) + " value is required by ASF." );
-                    }
-                    else
-                    {
-                        errorMessages.add( "A " + toConfiguration( tags, null ) + " parameter is required by ASF." );
+                    if (isPom) {
+                        errorMessages.add("A POM " + toConfiguration(tags, null) + " value is required by ASF.");
+                    } else {
+                        errorMessages.add("A " + toConfiguration(tags, null) + " parameter is required by ASF.");
                     }
                     break;
                 case RECOMMENDED:
-                    warnMessages.add( "No " + toConfiguration( tags, null )
-                                          + " parameter defined, it is highly recommended to have one." );
+                    warnMessages.add("No " + toConfiguration(tags, null)
+                            + " parameter defined, it is highly recommended to have one.");
                     break;
                 case INVALID_URL:
-                    if ( isPom )
-                    {
-                        errorMessages.add( "The POM " + toConfiguration( tags, value ) + " value is not a valid URL." );
-                    }
-                    else
-                    {
-                        errorMessages.add( "The " + toConfiguration( tags, value ) + " parameter is not a valid URL." );
+                    if (isPom) {
+                        errorMessages.add("The POM " + toConfiguration(tags, value) + " value is not a valid URL.");
+                    } else {
+                        errorMessages.add("The " + toConfiguration(tags, value) + " parameter is not a valid URL.");
                     }
                     break;
                 case INVALID_DATE:
-                    errorMessages.add(
-                        "The " + toConfiguration( tags, value ) + " parameter should be in YYYY-MM-DD." );
+                    errorMessages.add("The " + toConfiguration(tags, value) + " parameter should be in YYYY-MM-DD.");
                     break;
                 case INVALID_EMAIL:
-                    errorMessages.add( "The POM " + toConfiguration( tags, value ) + " value is not a valid email." );
+                    errorMessages.add("The POM " + toConfiguration(tags, value) + " value is not a valid email.");
                     break;
                 case INVALID_ISO_DATE:
-                    errorMessages.add( "The " + toConfiguration( tags, value )
-                        + " parameter is not a valid ISO language." );
+                    errorMessages.add(
+                            "The " + toConfiguration(tags, value) + " parameter is not a valid ISO language.");
                     break;
                 case SHORT_DESC_TOO_LONG:
-                    errorMessages.add( "The " + toConfiguration( tags, value )
-                        + " first sentence is too long maximum words number is 10." );
+                    errorMessages.add("The " + toConfiguration(tags, value)
+                            + " first sentence is too long maximum words number is 10.");
                     break;
                 default:
-                    throw new IllegalArgumentException( "Unknown errorId=" + errorId );
+                    throw new IllegalArgumentException("Unknown errorId=" + errorId);
             }
         }
 
@@ -2660,34 +2313,25 @@ public class DoapMojo
          * @param value of the last tag, could be null
          * @return the XML configuration defined in tags.
          */
-        protected String toConfiguration( String[] tags, String value )
-        {
-            if ( tags == null )
-            {
-                throw new IllegalArgumentException( "tags is required" );
+        protected String toConfiguration(String[] tags, String value) {
+            if (tags == null) {
+                throw new IllegalArgumentException("tags is required");
             }
 
             StringBuilder sb = new StringBuilder();
-            for ( int i = 0; i < tags.length; i++ )
-            {
-                if ( i == tags.length - 1 && StringUtils.isEmpty( value ) )
-                {
-                    sb.append( "<" ).append( tags[i] ).append( "/>" );
-                }
-                else
-                {
-                    sb.append( "<" ).append( tags[i] ).append( ">" );
+            for (int i = 0; i < tags.length; i++) {
+                if (i == tags.length - 1 && StringUtils.isEmpty(value)) {
+                    sb.append("<").append(tags[i]).append("/>");
+                } else {
+                    sb.append("<").append(tags[i]).append(">");
                 }
             }
-            if ( StringUtils.isNotEmpty( value ) )
-            {
-                sb.append( value );
+            if (StringUtils.isNotEmpty(value)) {
+                sb.append(value);
             }
-            for ( int i = tags.length - 1; i >= 0; i-- )
-            {
-                if ( !( i == tags.length - 1 && StringUtils.isEmpty( value ) ) )
-                {
-                    sb.append( "</" ).append( tags[i] ).append( ">" );
+            for (int i = tags.length - 1; i >= 0; i--) {
+                if (!(i == tags.length - 1 && StringUtils.isEmpty(value))) {
+                    sb.append("</").append(tags[i]).append(">");
                 }
             }
 
diff --git a/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java b/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java
index be2bd0c..cd5c445 100644
--- a/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java
+++ b/src/main/java/org/apache/maven/plugin/doap/DoapUtil.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugin.doap;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -18,6 +16,7 @@ package org.apache.maven.plugin.doap;
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.maven.plugin.doap;
 
 import java.io.File;
 import java.io.FileNotFoundException;
@@ -36,14 +35,18 @@ import java.util.LinkedList;
 import java.util.List;
 import java.util.Locale;
 import java.util.Map;
+import java.util.Map.Entry;
+import java.util.Properties;
+import java.util.Set;
 import java.util.StringTokenizer;
 import java.util.WeakHashMap;
-import java.util.Map.Entry;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
-import java.util.Set;
-import java.util.Properties;
 
+import com.hp.hpl.jena.rdf.model.Model;
+import com.hp.hpl.jena.rdf.model.ModelFactory;
+import com.hp.hpl.jena.rdf.model.RDFReader;
+import com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler;
 import org.apache.commons.httpclient.Credentials;
 import org.apache.commons.httpclient.HttpClient;
 import org.apache.commons.httpclient.HttpStatus;
@@ -72,25 +75,19 @@ import org.codehaus.plexus.util.introspection.ClassMap;
 import org.codehaus.plexus.util.xml.XMLWriter;
 import org.codehaus.plexus.util.xml.XmlWriterUtil;
 
-import com.hp.hpl.jena.rdf.model.Model;
-import com.hp.hpl.jena.rdf.model.ModelFactory;
-import com.hp.hpl.jena.rdf.model.RDFReader;
-import com.hp.hpl.jena.rdf.model.impl.RDFDefaultErrorHandler;
-
 /**
  * Utility class for {@link DoapMojo} class.
  *
  * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
  * @since 1.0
  */
-public class DoapUtil
-{
+public class DoapUtil {
     /** Email regex */
     private static final String EMAIL_REGEX =
-        "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
+            "^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)*@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)*(\\.[A-Za-z]{2,})$";
 
     /** Email pattern */
-    private static final Pattern EMAIL_PATTERN = Pattern.compile( EMAIL_REGEX );
+    private static final Pattern EMAIL_PATTERN = Pattern.compile(EMAIL_REGEX);
 
     /** Magic number to repeat '=' */
     private static final int REPEAT_EQUALS = 21;
@@ -112,25 +109,28 @@ public class DoapUtil
      *
      * @param writer not null
      */
-    public static void writeHeader( XMLWriter writer )
-    {
-        XmlWriterUtil.writeLineBreak( writer );
-
-        XmlWriterUtil.writeCommentLineBreak( writer );
-        XmlWriterUtil.writeComment( writer, StringUtils.repeat( "=", REPEAT_EQUALS ) + " - DO NOT EDIT THIS FILE! - "
-            + StringUtils.repeat( "=", REPEAT_EQUALS ) );
-        XmlWriterUtil.writeCommentLineBreak( writer );
-        XmlWriterUtil.writeComment( writer, " " );
-        XmlWriterUtil.writeComment( writer, "Any modifications will be overwritten." );
-        XmlWriterUtil.writeComment( writer, " " );
-        DateFormat dateFormat = DateFormat.getDateTimeInstance( DateFormat.SHORT, DateFormat.SHORT, Locale.US );
-        XmlWriterUtil.writeComment( writer, "Generated by Maven Doap Plugin " + getPluginVersion() + " on "
-            + dateFormat.format( new Date( System.currentTimeMillis() ) ) );
-        XmlWriterUtil.writeComment( writer, "See: http://maven.apache.org/plugins/maven-doap-plugin/" );
-        XmlWriterUtil.writeComment( writer, " " );
-        XmlWriterUtil.writeCommentLineBreak( writer );
-
-        XmlWriterUtil.writeLineBreak( writer );
+    public static void writeHeader(XMLWriter writer) {
+        XmlWriterUtil.writeLineBreak(writer);
+
+        XmlWriterUtil.writeCommentLineBreak(writer);
+        XmlWriterUtil.writeComment(
+                writer,
+                StringUtils.repeat("=", REPEAT_EQUALS) + " - DO NOT EDIT THIS FILE! - "
+                        + StringUtils.repeat("=", REPEAT_EQUALS));
+        XmlWriterUtil.writeCommentLineBreak(writer);
+        XmlWriterUtil.writeComment(writer, " ");
+        XmlWriterUtil.writeComment(writer, "Any modifications will be overwritten.");
+        XmlWriterUtil.writeComment(writer, " ");
+        DateFormat dateFormat = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT, Locale.US);
+        XmlWriterUtil.writeComment(
+                writer,
+                "Generated by Maven Doap Plugin " + getPluginVersion() + " on "
+                        + dateFormat.format(new Date(System.currentTimeMillis())));
+        XmlWriterUtil.writeComment(writer, "See: http://maven.apache.org/plugins/maven-doap-plugin/");
+        XmlWriterUtil.writeComment(writer, " ");
+        XmlWriterUtil.writeCommentLineBreak(writer);
+
+        XmlWriterUtil.writeLineBreak(writer);
     }
 
     /**
@@ -141,16 +141,13 @@ public class DoapUtil
      * @throws IllegalArgumentException if comment is null or empty
      * @since 1.1
      */
-    public static void writeComment( XMLWriter writer, String comment )
-        throws IllegalArgumentException
-    {
-        if ( StringUtils.isEmpty( comment ) )
-        {
-            throw new IllegalArgumentException( "comment should be defined" );
+    public static void writeComment(XMLWriter writer, String comment) throws IllegalArgumentException {
+        if (StringUtils.isEmpty(comment)) {
+            throw new IllegalArgumentException("comment should be defined");
         }
 
-        XmlWriterUtil.writeLineBreak( writer );
-        XmlWriterUtil.writeCommentText( writer, comment, 2 );
+        XmlWriterUtil.writeLineBreak(writer);
+        XmlWriterUtil.writeCommentText(writer, comment, 2);
     }
 
     /**
@@ -160,18 +157,15 @@ public class DoapUtil
      * @param value could be null. In this case, the element is not written.
      * @throws IllegalArgumentException if name is null or empty
      */
-    public static void writeElement( XMLWriter writer, String xmlnsPrefix, String name, String value )
-        throws IllegalArgumentException
-    {
-        if ( StringUtils.isEmpty( name ) )
-        {
-            throw new IllegalArgumentException( "name should be defined" );
-        }
-
-        if ( value != null )
-        {
-            writeStartElement( writer, xmlnsPrefix, name );
-            writer.writeText( value );
+    public static void writeElement(XMLWriter writer, String xmlnsPrefix, String name, String value)
+            throws IllegalArgumentException {
+        if (StringUtils.isEmpty(name)) {
+            throw new IllegalArgumentException("name should be defined");
+        }
+
+        if (value != null) {
+            writeStartElement(writer, xmlnsPrefix, name);
+            writer.writeText(value);
             writer.endElement();
         }
     }
@@ -184,25 +178,21 @@ public class DoapUtil
      * @param value could be null. In this case, the element is not written.
      * @throws IllegalArgumentException if name is null or empty
      */
-    public static void writeElement( XMLWriter writer, String xmlnsPrefix, String name, String value, String lang )
-        throws IllegalArgumentException
-    {
-        if ( StringUtils.isEmpty( lang ) )
-        {
-            writeElement( writer, xmlnsPrefix, name, value );
+    public static void writeElement(XMLWriter writer, String xmlnsPrefix, String name, String value, String lang)
+            throws IllegalArgumentException {
+        if (StringUtils.isEmpty(lang)) {
+            writeElement(writer, xmlnsPrefix, name, value);
             return;
         }
 
-        if ( StringUtils.isEmpty( name ) )
-        {
-            throw new IllegalArgumentException( "name should be defined" );
+        if (StringUtils.isEmpty(name)) {
+            throw new IllegalArgumentException("name should be defined");
         }
 
-        if ( value != null )
-        {
-            writeStartElement( writer, xmlnsPrefix, name );
-            writer.addAttribute( "xml:lang", lang );
-            writer.writeText( value );
+        if (value != null) {
+            writeStartElement(writer, xmlnsPrefix, name);
+            writer.addAttribute("xml:lang", lang);
+            writer.writeText(value);
             writer.endElement();
         }
     }
@@ -214,21 +204,16 @@ public class DoapUtil
      * @throws IllegalArgumentException if name is null or empty
      * @since 1.1
      */
-    public static void writeStartElement( XMLWriter writer, String xmlnsPrefix, String name )
-        throws IllegalArgumentException
-    {
-        if ( StringUtils.isEmpty( name ) )
-        {
-            throw new IllegalArgumentException( "name should be defined" );
+    public static void writeStartElement(XMLWriter writer, String xmlnsPrefix, String name)
+            throws IllegalArgumentException {
+        if (StringUtils.isEmpty(name)) {
+            throw new IllegalArgumentException("name should be defined");
         }
 
-        if ( StringUtils.isNotEmpty( xmlnsPrefix ) )
-        {
-            writer.startElement( xmlnsPrefix + ":" + name );
-        }
-        else
-        {
-            writer.startElement( name );
+        if (StringUtils.isNotEmpty(xmlnsPrefix)) {
+            writer.startElement(xmlnsPrefix + ":" + name);
+        } else {
+            writer.startElement(name);
         }
     }
 
@@ -239,18 +224,15 @@ public class DoapUtil
      * @param value could be null. In this case, the element is not written.
      * @throws IllegalArgumentException if name is null or empty
      */
-    public static void writeRdfResourceElement( XMLWriter writer, String xmlnsPrefix, String name, String value )
-        throws IllegalArgumentException
-    {
-        if ( StringUtils.isEmpty( name ) )
-        {
-            throw new IllegalArgumentException( "name should be defined" );
-        }
-
-        if ( value != null )
-        {
-            writeStartElement( writer, xmlnsPrefix, name );
-            writer.addAttribute( RDF_RESOURCE, value );
+    public static void writeRdfResourceElement(XMLWriter writer, String xmlnsPrefix, String name, String value)
+            throws IllegalArgumentException {
+        if (StringUtils.isEmpty(name)) {
+            throw new IllegalArgumentException("name should be defined");
+        }
+
+        if (value != null) {
+            writeStartElement(writer, xmlnsPrefix, name);
+            writer.addAttribute(RDF_RESOURCE, value);
             writer.endElement();
         }
     }
@@ -261,18 +243,15 @@ public class DoapUtil
      * @param value could be null. In this case, the element is not written.
      * @throws IllegalArgumentException if name is null or empty
      */
-    public static void writeRdfNodeIdElement( XMLWriter writer, String xmlnsPrefix, String name, String value )
-        throws IllegalArgumentException
-    {
-        if ( StringUtils.isEmpty( name ) )
-        {
-            throw new IllegalArgumentException( "name should be defined" );
-        }
-
-        if ( value != null )
-        {
-            writeStartElement( writer, xmlnsPrefix, name );
-            writer.addAttribute( RDF_NODE_ID, value );
+    public static void writeRdfNodeIdElement(XMLWriter writer, String xmlnsPrefix, String name, String value)
+            throws IllegalArgumentException {
+        if (StringUtils.isEmpty(name)) {
+            throw new IllegalArgumentException("name should be defined");
+        }
+
+        if (value != null) {
+            writeStartElement(writer, xmlnsPrefix, name);
+            writer.addAttribute(RDF_NODE_ID, value);
             writer.endElement();
         }
     }
@@ -282,10 +261,9 @@ public class DoapUtil
      * @param developersOrContributors list of <code>{@link Contributor}</code>
      * @return a none null list of <code>{@link Contributor}</code> which have a <code>developer</code> DOAP role.
      */
-    public static List<Contributor> getContributorsWithDeveloperRole( I18N i18n,
-                                                                      List<Contributor> developersOrContributors )
-    {
-        return filterContributorsByDoapRoles( i18n, developersOrContributors ).get( "developers" );
+    public static List<Contributor> getContributorsWithDeveloperRole(
+            I18N i18n, List<Contributor> developersOrContributors) {
+        return filterContributorsByDoapRoles(i18n, developersOrContributors).get("developers");
     }
 
     /**
@@ -293,10 +271,9 @@ public class DoapUtil
      * @param developersOrContributors list of <code>{@link Contributor}</code>
      * @return a none null list of <code>{@link Contributor}</code> which have a <code>documenter</code> DOAP role.
      */
-    public static List<Contributor> getContributorsWithDocumenterRole( I18N i18n,
-                                                                       List<Contributor> developersOrContributors )
-    {
-        return filterContributorsByDoapRoles( i18n, developersOrContributors ).get( "documenters" );
+    public static List<Contributor> getContributorsWithDocumenterRole(
+            I18N i18n, List<Contributor> developersOrContributors) {
+        return filterContributorsByDoapRoles(i18n, developersOrContributors).get("documenters");
     }
 
     /**
@@ -304,10 +281,9 @@ public class DoapUtil
      * @param developersOrContributors list of <code>{@link Contributor}</code>
      * @return a none null list of <code>{@link Contributor}</code> which have an <code>helper</code> DOAP role.
      */
-    public static List<Contributor> getContributorsWithHelperRole( I18N i18n,
-                                                                   List<Contributor> developersOrContributors )
-    {
-        return filterContributorsByDoapRoles( i18n, developersOrContributors ).get( "helpers" );
+    public static List<Contributor> getContributorsWithHelperRole(
+            I18N i18n, List<Contributor> developersOrContributors) {
+        return filterContributorsByDoapRoles(i18n, developersOrContributors).get("helpers");
     }
 
     /**
@@ -315,10 +291,9 @@ public class DoapUtil
      * @param developersOrContributors list of <code>{@link Contributor}</code>
      * @return a none null list of <code>{@link Contributor}</code> which have a <code>maintainer</code> DOAP role.
      */
-    public static List<Contributor> getContributorsWithMaintainerRole( I18N i18n,
-                                                                       List<Contributor> developersOrContributors )
-    {
-        return filterContributorsByDoapRoles( i18n, developersOrContributors ).get( "maintainers" );
+    public static List<Contributor> getContributorsWithMaintainerRole(
+            I18N i18n, List<Contributor> developersOrContributors) {
+        return filterContributorsByDoapRoles(i18n, developersOrContributors).get("maintainers");
     }
 
     /**
@@ -326,10 +301,9 @@ public class DoapUtil
      * @param developersOrContributors list of <code>{@link Contributor}</code>
      * @return a none null list of <code>{@link Contributor}</code> which have a <code>tester</code> DOAP role.
      */
-    public static List<Contributor> getContributorsWithTesterRole( I18N i18n,
-                                                                   List<Contributor> developersOrContributors )
-    {
-        return filterContributorsByDoapRoles( i18n, developersOrContributors ).get( "testers" );
+    public static List<Contributor> getContributorsWithTesterRole(
+            I18N i18n, List<Contributor> developersOrContributors) {
+        return filterContributorsByDoapRoles(i18n, developersOrContributors).get("testers");
     }
 
     /**
@@ -337,10 +311,9 @@ public class DoapUtil
      * @param developersOrContributors list of <code>{@link Contributor}</code>
      * @return a none null list of <code>{@link Contributor}</code> which have a <code>translator</code> DOAP role.
      */
-    public static List<Contributor> getContributorsWithTranslatorRole( I18N i18n,
-                                                                       List<Contributor> developersOrContributors )
-    {
-        return filterContributorsByDoapRoles( i18n, developersOrContributors ).get( "translators" );
+    public static List<Contributor> getContributorsWithTranslatorRole(
+            I18N i18n, List<Contributor> developersOrContributors) {
+        return filterContributorsByDoapRoles(i18n, developersOrContributors).get("translators");
     }
 
     /**
@@ -348,10 +321,9 @@ public class DoapUtil
      * @param developersOrContributors list of <code>{@link Contributor}</code>
      * @return a none null list of <code>{@link Contributor}</code> which have an <code>unknown</code> DOAP role.
      */
-    public static List<Contributor> getContributorsWithUnknownRole( I18N i18n,
-                                                                    List<Contributor> developersOrContributors )
-    {
-        return filterContributorsByDoapRoles( i18n, developersOrContributors ).get( "unknowns" );
+    public static List<Contributor> getContributorsWithUnknownRole(
+            I18N i18n, List<Contributor> developersOrContributors) {
+        return filterContributorsByDoapRoles(i18n, developersOrContributors).get("unknowns");
     }
 
     /**
@@ -360,47 +332,39 @@ public class DoapUtil
      * @author <a href="mailto:t.fliss@gmail.com">Tim Fliss</a>
      * @since 1.1
      */
-    public static class Organization
-    {
+    public static class Organization {
         private String name;
 
         private String url;
 
         private List<String> members = new LinkedList<>();
 
-        public Organization( String name, String url )
-        {
+        public Organization(String name, String url) {
             this.name = name;
             this.url = url;
         }
 
-        public void setName( String name )
-        {
+        public void setName(String name) {
             this.name = name;
         }
 
-        public String getName()
-        {
+        public String getName() {
             return name;
         }
 
-        public void setUrl( String url )
-        {
+        public void setUrl(String url) {
             this.url = url;
         }
 
-        public String getUrl()
-        {
+        public String getUrl() {
             return url;
         }
 
-        public void addMember( String nodeId )
-        {
-            members.add( nodeId );
+        public void addMember(String nodeId) {
+            members.add(nodeId);
         }
 
-        public List<String> getMembers()
-        {
+        public List<String> getMembers() {
             return members;
         }
     }
@@ -412,16 +376,14 @@ public class DoapUtil
      * @param url from the pom file (e.g. http://yoyodyne.example.org/about)
      * @return the existing organization if a duplicate, or a new one.
      */
-    public static DoapUtil.Organization addOrganization( String name, String url )
-    {
-        Organization organization = organizations.get( name );
+    public static DoapUtil.Organization addOrganization(String name, String url) {
+        Organization organization = organizations.get(name);
 
-        if ( organization == null )
-        {
-            organization = new DoapUtil.Organization( name, url );
+        if (organization == null) {
+            organization = new DoapUtil.Organization(name, url);
         }
 
-        organizations.put( name, organization );
+        organizations.put(name, organization);
 
         return organization;
     }
@@ -436,8 +398,7 @@ public class DoapUtil
      * @see <a href="http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-blank-nodes">
      *      http://www.w3.org/TR/rdf-syntax-grammar/#section-Syntax-blank-nodes</a>
      */
-    public static String getNodeId()
-    {
+    public static String getNodeId() {
         return "b" + nodeNumber++;
     }
 
@@ -446,8 +407,7 @@ public class DoapUtil
      *
      * @return Map.EntrySet of DoapUtil.Organization
      */
-    public static Set<Entry<String, DoapUtil.Organization>> getOrganizations()
-    {
+    public static Set<Entry<String, DoapUtil.Organization>> getOrganizations() {
         return organizations.entrySet();
     }
 
@@ -458,32 +418,25 @@ public class DoapUtil
      * @return an empty list if the DOAP file is valid, otherwise a list of errors.
      * @since 1.1
      */
-    public static List<String> validate( File doapFile )
-    {
-        if ( doapFile == null || !doapFile.isFile() )
-        {
-            throw new IllegalArgumentException( "The DOAP file should exist" );
+    public static List<String> validate(File doapFile) {
+        if (doapFile == null || !doapFile.isFile()) {
+            throw new IllegalArgumentException("The DOAP file should exist");
         }
 
         Model model = ModelFactory.createDefaultModel();
-        RDFReader r = model.getReader( "RDF/XML" );
-        r.setProperty( "error-mode", "strict-error" );
+        RDFReader r = model.getReader("RDF/XML");
+        r.setProperty("error-mode", "strict-error");
         final List<String> errors = new ArrayList<>();
-        r.setErrorHandler( new RDFDefaultErrorHandler()
-        {
+        r.setErrorHandler(new RDFDefaultErrorHandler() {
             @Override
-            public void error( Exception e )
-            {
-                errors.add( e.getMessage() );
+            public void error(Exception e) {
+                errors.add(e.getMessage());
             }
-        } );
+        });
 
-        try
-        {
-            r.read( model, doapFile.toURI().toURL().toString() );
-        }
-        catch ( MalformedURLException e )
-        {
+        try {
+            r.read(model, doapFile.toURI().toURL().toString());
+        } catch (MalformedURLException e) {
             // ignored
         }
 
@@ -495,14 +448,12 @@ public class DoapUtil
      * @return <code>true</code> if the str parameter is a valid email, <code>false</code> otherwise.
      * @since 1.1
      */
-    public static boolean isValidEmail( String str )
-    {
-        if ( StringUtils.isEmpty( str ) )
-        {
+    public static boolean isValidEmail(String str) {
+        if (StringUtils.isEmpty(str)) {
             return false;
         }
 
-        Matcher matcher = EMAIL_PATTERN.matcher( str );
+        Matcher matcher = EMAIL_PATTERN.matcher(str);
         return matcher.matches();
     }
 
@@ -515,84 +466,68 @@ public class DoapUtil
      * @see #DEFAULT_TIMEOUT
      * @since 1.1
      */
-    public static void fetchURL( Settings settings, URL url )
-        throws IOException
-    {
-        if ( url == null )
-        {
-            throw new IllegalArgumentException( "The url is null" );
+    public static void fetchURL(Settings settings, URL url) throws IOException {
+        if (url == null) {
+            throw new IllegalArgumentException("The url is null");
         }
 
-        if ( "file".equals( url.getProtocol() ) )
-        {
+        if ("file".equals(url.getProtocol())) {
             InputStream in = null;
-            try
-            {
+            try {
                 in = url.openStream();
                 in.close();
                 in = null;
-            }
-            finally
-            {
-                IOUtil.close( in );
+            } finally {
+                IOUtil.close(in);
             }
 
             return;
         }
 
         // http, https...
-        HttpClient httpClient = new HttpClient( new MultiThreadedHttpConnectionManager() );
-        httpClient.getHttpConnectionManager().getParams().setConnectionTimeout( DEFAULT_TIMEOUT );
-        httpClient.getHttpConnectionManager().getParams().setSoTimeout( DEFAULT_TIMEOUT );
-        httpClient.getParams().setBooleanParameter( HttpClientParams.ALLOW_CIRCULAR_REDIRECTS, true );
+        HttpClient httpClient = new HttpClient(new MultiThreadedHttpConnectionManager());
+        httpClient.getHttpConnectionManager().getParams().setConnectionTimeout(DEFAULT_TIMEOUT);
+        httpClient.getHttpConnectionManager().getParams().setSoTimeout(DEFAULT_TIMEOUT);
+        httpClient.getParams().setBooleanParameter(HttpClientParams.ALLOW_CIRCULAR_REDIRECTS, true);
 
         // Some web servers don't allow the default user-agent sent by httpClient
-        httpClient.getParams().setParameter( HttpMethodParams.USER_AGENT,
-                                             "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)" );
+        httpClient
+                .getParams()
+                .setParameter(HttpMethodParams.USER_AGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
 
-        if ( settings != null && settings.getActiveProxy() != null )
-        {
+        if (settings != null && settings.getActiveProxy() != null) {
             Proxy activeProxy = settings.getActiveProxy();
 
             ProxyInfo proxyInfo = new ProxyInfo();
-            proxyInfo.setNonProxyHosts( activeProxy.getNonProxyHosts() );
+            proxyInfo.setNonProxyHosts(activeProxy.getNonProxyHosts());
 
-            if ( StringUtils.isNotEmpty( activeProxy.getHost() )
-                && !ProxyUtils.validateNonProxyHosts( proxyInfo, url.getHost() ) )
-            {
-                httpClient.getHostConfiguration().setProxy( activeProxy.getHost(), activeProxy.getPort() );
+            if (StringUtils.isNotEmpty(activeProxy.getHost())
+                    && !ProxyUtils.validateNonProxyHosts(proxyInfo, url.getHost())) {
+                httpClient.getHostConfiguration().setProxy(activeProxy.getHost(), activeProxy.getPort());
 
-                if ( StringUtils.isNotEmpty( activeProxy.getUsername() ) && activeProxy.getPassword() != null )
-                {
+                if (StringUtils.isNotEmpty(activeProxy.getUsername()) && activeProxy.getPassword() != null) {
                     Credentials credentials =
-                        new UsernamePasswordCredentials( activeProxy.getUsername(), activeProxy.getPassword() );
+                            new UsernamePasswordCredentials(activeProxy.getUsername(), activeProxy.getPassword());
 
-                    httpClient.getState().setProxyCredentials( AuthScope.ANY, credentials );
+                    httpClient.getState().setProxyCredentials(AuthScope.ANY, credentials);
                 }
             }
         }
 
-        GetMethod getMethod = new GetMethod( url.toString() );
-        try
-        {
+        GetMethod getMethod = new GetMethod(url.toString());
+        try {
             int status;
-            try
-            {
-                status = httpClient.executeMethod( getMethod );
-            }
-            catch ( SocketTimeoutException e )
-            {
+            try {
+                status = httpClient.executeMethod(getMethod);
+            } catch (SocketTimeoutException e) {
                 // could be a sporadic failure, one more retry before we give up
-                status = httpClient.executeMethod( getMethod );
+                status = httpClient.executeMethod(getMethod);
             }
 
-            if ( status != HttpStatus.SC_OK )
-            {
-                throw new FileNotFoundException( url.toString() );
+            if (status != HttpStatus.SC_OK) {
+                throw new FileNotFoundException(url.toString());
             }
-        }
-        finally
-        {
+        } finally {
             getMethod.releaseConnection();
         }
     }
@@ -606,71 +541,54 @@ public class DoapUtil
      * @return the value trimmed and interpolated or null if the interpolation doesn't work.
      * @since 1.1
      */
-    public static String interpolate( String value, final MavenProject project, Settings settings )
-    {
-        if ( project == null )
-        {
-            throw new IllegalArgumentException( "project is required" );
+    public static String interpolate(String value, final MavenProject project, Settings settings) {
+        if (project == null) {
+            throw new IllegalArgumentException("project is required");
         }
 
-        if ( value == null )
-        {
+        if (value == null) {
             return value;
         }
 
-        if ( !value.contains( "${" ) )
-        {
+        if (!value.contains("${")) {
             return value.trim();
         }
 
         RegexBasedInterpolator interpolator = new RegexBasedInterpolator();
-        try
-        {
-            interpolator.addValueSource( new EnvarBasedValueSource() );
-        }
-        catch ( IOException e )
-        {
+        try {
+            interpolator.addValueSource(new EnvarBasedValueSource());
+        } catch (IOException e) {
             // ignore
         }
-        interpolator.addValueSource( new PropertiesBasedValueSource( System.getProperties() ) );
-        interpolator.addValueSource( new PropertiesBasedValueSource( project.getProperties() ) );
-        interpolator.addValueSource( new PrefixedObjectValueSource( "project", project ) );
-        interpolator.addValueSource( new PrefixedObjectValueSource( "pom", project ) );
-        interpolator.addValueSource( new ObjectBasedValueSource( project )
-        {
+        interpolator.addValueSource(new PropertiesBasedValueSource(System.getProperties()));
+        interpolator.addValueSource(new PropertiesBasedValueSource(project.getProperties()));
+        interpolator.addValueSource(new PrefixedObjectValueSource("project", project));
+        interpolator.addValueSource(new PrefixedObjectValueSource("pom", project));
+        interpolator.addValueSource(new ObjectBasedValueSource(project) {
             @Override
-            public Object getValue( String expression )
-            {
-                try
-                {
-                    return ReflectionValueExtractor.evaluate( expression, project, true );
-                }
-                catch ( Exception e )
-                {
-                    addFeedback( "Failed to extract \'" + expression + "\' from: " + project, e );
+            public Object getValue(String expression) {
+                try {
+                    return ReflectionValueExtractor.evaluate(expression, project, true);
+                } catch (Exception e) {
+                    addFeedback("Failed to extract \'" + expression + "\' from: " + project, e);
                 }
 
                 return null;
             }
-        } );
+        });
 
-        if ( settings != null )
-        {
-            interpolator.addValueSource( new PrefixedObjectValueSource( "settings", settings ) );
+        if (settings != null) {
+            interpolator.addValueSource(new PrefixedObjectValueSource("settings", settings));
         }
 
         String interpolatedValue = value;
-        try
-        {
-            interpolatedValue = interpolator.interpolate( value ).trim();
-        }
-        catch ( InterpolationException e )
-        {
+        try {
+            interpolatedValue = interpolator.interpolate(value).trim();
+        } catch (InterpolationException e) {
             // ignore
         }
 
-        if ( interpolatedValue.startsWith( "${" ) )
-        {
+        if (interpolatedValue.startsWith("${")) {
             return null;
         }
 
@@ -693,92 +611,62 @@ public class DoapUtil
      *         <code>translators</code>, <code>testers</code>, <code>helpers</code>, <code>unknowns</code> as keys and
      *         list of <code>{@link Contributor}</code> as value.
      */
-    private static Map<String, List<Contributor>> filterContributorsByDoapRoles( I18N i18n,
-                                                                           List<Contributor> developersOrContributors )
-    {
-        Map<String, List<Contributor>> returnMap = new HashMap<>( 7 );
-        returnMap.put( "maintainers", new ArrayList<>() );
-        returnMap.put( "developers", new ArrayList<>() );
-        returnMap.put( "documenters", new ArrayList<>() );
-        returnMap.put( "translators", new ArrayList<>() );
-        returnMap.put( "testers", new ArrayList<>() );
-        returnMap.put( "helpers", new ArrayList<>() );
-        returnMap.put( "unknowns", new ArrayList<>() );
-
-        if ( developersOrContributors == null || developersOrContributors.isEmpty() )
-        {
+    private static Map<String, List<Contributor>> filterContributorsByDoapRoles(
+            I18N i18n, List<Contributor> developersOrContributors) {
+        Map<String, List<Contributor>> returnMap = new HashMap<>(7);
+        returnMap.put("maintainers", new ArrayList<>());
+        returnMap.put("developers", new ArrayList<>());
+        returnMap.put("documenters", new ArrayList<>());
+        returnMap.put("translators", new ArrayList<>());
+        returnMap.put("testers", new ArrayList<>());
+        returnMap.put("helpers", new ArrayList<>());
+        returnMap.put("unknowns", new ArrayList<>());
+
+        if (developersOrContributors == null || developersOrContributors.isEmpty()) {
             return returnMap;
         }
 
-        for ( Contributor contributor : developersOrContributors )
-        {
+        for (Contributor contributor : developersOrContributors) {
             List<String> roles = contributor.getRoles();
 
-            if ( roles != null && roles.size() != 0 )
-            {
-                for ( String role : roles )
-                {
-                    role = role.toLowerCase( Locale.ENGLISH );
-                    if ( role.contains( getLowerCaseString( i18n, "doap.maintainer" ) ) )
-                    {
-                        if ( !returnMap.get( "maintainers" ).contains( contributor ) )
-                        {
-                            returnMap.get( "maintainers" ).add( contributor );
+            if (roles != null && roles.size() != 0) {
+                for (String role : roles) {
+                    role = role.toLowerCase(Locale.ENGLISH);
+                    if (role.contains(getLowerCaseString(i18n, "doap.maintainer"))) {
+                        if (!returnMap.get("maintainers").contains(contributor)) {
+                            returnMap.get("maintainers").add(contributor);
                         }
-                    }
-                    else if ( role.contains( getLowerCaseString( i18n, "doap.developer" ) ) )
-                    {
-                        if ( !returnMap.get( "developers" ).contains( contributor ) )
-                        {
-                            returnMap.get( "developers" ).add( contributor );
+                    } else if (role.contains(getLowerCaseString(i18n, "doap.developer"))) {
+                        if (!returnMap.get("developers").contains(contributor)) {
+                            returnMap.get("developers").add(contributor);
                         }
-                    }
-                    else if ( role.contains( getLowerCaseString( i18n, "doap.documenter" ) ) )
-                    {
-                        if ( !returnMap.get( "documenters" ).contains( contributor ) )
-                        {
-                            returnMap.get( "documenters" ).add( contributor );
+                    } else if (role.contains(getLowerCaseString(i18n, "doap.documenter"))) {
+                        if (!returnMap.get("documenters").contains(contributor)) {
+                            returnMap.get("documenters").add(contributor);
                         }
-                    }
-                    else if ( role.contains( getLowerCaseString( i18n, "doap.translator" ) ) )
-                    {
-                        if ( !returnMap.get( "translators" ).contains( contributor ) )
-                        {
-                            returnMap.get( "translators" ).add( contributor );
+                    } else if (role.contains(getLowerCaseString(i18n, "doap.translator"))) {
+                        if (!returnMap.get("translators").contains(contributor)) {
+                            returnMap.get("translators").add(contributor);
                         }
-                    }
-                    else if ( role.contains( getLowerCaseString( i18n, "doap.tester" ) ) )
-                    {
-                        if ( !returnMap.get( "testers" ).contains( contributor ) )
-                        {
-                            returnMap.get( "testers" ).add( contributor );
+                    } else if (role.contains(getLowerCaseString(i18n, "doap.tester"))) {
+                        if (!returnMap.get("testers").contains(contributor)) {
+                            returnMap.get("testers").add(contributor);
                         }
-                    }
-                    else if ( role.contains( getLowerCaseString( i18n, "doap.helper" ) ) )
-                    {
-                        if ( !returnMap.get( "helpers" ).contains( contributor ) )
-                        {
-                            returnMap.get( "helpers" ).add( contributor );
+                    } else if (role.contains(getLowerCaseString(i18n, "doap.helper"))) {
+                        if (!returnMap.get("helpers").contains(contributor)) {
+                            returnMap.get("helpers").add(contributor);
                         }
-                    }
-                    else if ( role.contains( getLowerCaseString( i18n, "doap.emeritus" ) ) )
-                    {
+                    } else if (role.contains(getLowerCaseString(i18n, "doap.emeritus"))) {
                         // Don't add as developer nor as contributor as the person is no longer involved
-                    }
-                    else
-                    {
-                        if ( !returnMap.get( "unknowns" ).contains( contributor ) )
-                        {
-                            returnMap.get( "unknowns" ).add( contributor );
+                    } else {
+                        if (!returnMap.get("unknowns").contains(contributor)) {
+                            returnMap.get("unknowns").add(contributor);
                         }
                     }
                 }
-            }
-            else
-            {
-                if ( !returnMap.get( "unknowns" ).contains( contributor ) )
-                {
-                    returnMap.get( "unknowns" ).add( contributor );
+            } else {
+                if (!returnMap.get("unknowns").contains(contributor)) {
+                    returnMap.get("unknowns").add(contributor);
                 }
             }
         }
@@ -791,51 +679,41 @@ public class DoapUtil
      * @param key not null
      * @return lower case value for the key in the i18n bundle.
      */
-    private static String getLowerCaseString( I18N i18n, String key )
-    {
-        return i18n.getString( "doap-person", Locale.ENGLISH, key ).toLowerCase( Locale.ENGLISH );
+    private static String getLowerCaseString(I18N i18n, String key) {
+        return i18n.getString("doap-person", Locale.ENGLISH, key).toLowerCase(Locale.ENGLISH);
     }
 
     /**
      * @return the Maven artefact version.
      */
-    private static String getPluginVersion()
-    {
+    private static String getPluginVersion() {
         Properties pomProperties = new Properties();
         InputStream is = null;
-        try
-        {
-            is =
-                DoapUtil.class.getResourceAsStream( "/META-INF/maven/org.apache.maven.plugins/"
-                    + "maven-doap-plugin/pom.properties" );
-            if ( is == null )
-            {
+        try {
+            is = DoapUtil.class.getResourceAsStream(
+                    "/META-INF/maven/org.apache.maven.plugins/" + "maven-doap-plugin/pom.properties");
+            if (is == null) {
                 return "<unknown>";
             }
 
-            pomProperties.load( is );
+            pomProperties.load(is);
 
             is.close();
             is = null;
 
-            return pomProperties.getProperty( "version", "<unknown>" );
-        }
-        catch ( IOException e )
-        {
+            return pomProperties.getProperty("version", "<unknown>");
+        } catch (IOException e) {
             return "<unknown>";
-        }
-        finally
-        {
-            IOUtil.close( is );
+        } finally {
+            IOUtil.close(is);
         }
     }
 
     /**
      * Fork of {@link org.codehaus.plexus.interpolation.reflection.ReflectionValueExtractor} to care of list or arrays.
      */
-    static class ReflectionValueExtractor
-    {
-        @SuppressWarnings( "rawtypes" )
+    static class ReflectionValueExtractor {
+        @SuppressWarnings("rawtypes")
         private static final Class[] CLASS_ARGS = new Class[0];
 
         private static final Object[] OBJECT_ARGS = new Object[0];
@@ -844,27 +722,20 @@ public class DoapUtil
          * Use a WeakHashMap here, so the keys (Class objects) can be garbage collected. This approach prevents permgen
          * space overflows due to retention of discarded classloaders.
          */
-        @SuppressWarnings( "rawtypes" )
+        @SuppressWarnings("rawtypes")
         private static final Map<Class, ClassMap> CLASS_MAPS = new WeakHashMap<>();
 
-        private ReflectionValueExtractor()
-        {
-        }
+        private ReflectionValueExtractor() {}
 
-        public static Object evaluate( String expression, Object root )
-            throws Exception
-        {
-            return evaluate( expression, root, true );
+        public static Object evaluate(String expression, Object root) throws Exception {
+            return evaluate(expression, root, true);
         }
 
         // TODO: don't throw Exception
-        public static Object evaluate( String expression, Object root, boolean trimRootToken )
-            throws Exception
-        {
+        public static Object evaluate(String expression, Object root, boolean trimRootToken) throws Exception {
             // if the root token refers to the supplied root object parameter, remove it.
-            if ( trimRootToken )
-            {
-                expression = expression.substring( expression.indexOf( '.' ) + 1 );
+            if (trimRootToken) {
+                expression = expression.substring(expression.indexOf('.') + 1);
             }
 
             Object value = root;
@@ -874,83 +745,70 @@ public class DoapUtil
             // MavenProject instance.
             // ----------------------------------------------------------------------
 
-            StringTokenizer parser = new StringTokenizer( expression, "." );
+            StringTokenizer parser = new StringTokenizer(expression, ".");
 
-            while ( parser.hasMoreTokens() )
-            {
+            while (parser.hasMoreTokens()) {
                 String token = parser.nextToken();
-                if ( value == null )
-                {
+                if (value == null) {
                     return null;
                 }
 
-                StringTokenizer parser2 = new StringTokenizer( token, "[]" );
+                StringTokenizer parser2 = new StringTokenizer(token, "[]");
                 int index = -1;
-                if ( parser2.countTokens() > 1 )
-                {
+                if (parser2.countTokens() > 1) {
                     token = parser2.nextToken();
-                    try
-                    {
-                        index = Integer.parseInt( parser2.nextToken() );
-                    }
-                    catch ( NumberFormatException e )
-                    {
+                    try {
+                        index = Integer.parseInt(parser2.nextToken());
+                    } catch (NumberFormatException e) {
                         // ignore
                     }
                 }
 
-                final ClassMap classMap = getClassMap( value.getClass() );
+                final ClassMap classMap = getClassMap(value.getClass());
 
-                final String methodBase = StringUtils.capitalizeFirstLetter( token );
+                final String methodBase = StringUtils.capitalizeFirstLetter(token);
 
                 String methodName = "get" + methodBase;
 
-                Method method = classMap.findMethod( methodName, CLASS_ARGS );
+                Method method = classMap.findMethod(methodName, CLASS_ARGS);
 
-                if ( method == null )
-                {
+                if (method == null) {
                     // perhaps this is a boolean property??
                     methodName = "is" + methodBase;
 
-                    method = classMap.findMethod( methodName, CLASS_ARGS );
+                    method = classMap.findMethod(methodName, CLASS_ARGS);
                 }
 
-                if ( method == null )
-                {
+                if (method == null) {
                     return null;
                 }
 
-                value = method.invoke( value, OBJECT_ARGS );
-                if ( value == null )
-                {
+                value = method.invoke(value, OBJECT_ARGS);
+                if (value == null) {
                     return null;
                 }
-                if ( Collection.class.isAssignableFrom( value.getClass() ) )
-                {
-                    ClassMap classMap2 = getClassMap( value.getClass() );
+                if (Collection.class.isAssignableFrom(value.getClass())) {
+                    ClassMap classMap2 = getClassMap(value.getClass());
 
-                    Method method2 = classMap2.findMethod( "toArray", CLASS_ARGS );
+                    Method method2 = classMap2.findMethod("toArray", CLASS_ARGS);
 
-                    value = method2.invoke( value, OBJECT_ARGS );
+                    value = method2.invoke(value, OBJECT_ARGS);
                 }
-                if ( value.getClass().isArray() )
-                {
-                    value = ( (Object[]) value )[index];
+                if (value.getClass().isArray()) {
+                    value = ((Object[]) value)[index];
                 }
             }
 
             return value;
         }
 
-        private static ClassMap getClassMap( Class<? extends Object> clazz )
-        {
-            ClassMap classMap = CLASS_MAPS.get( clazz );
+        private static ClassMap getClassMap(Class<? extends Object> clazz) {
+            ClassMap classMap = CLASS_MAPS.get(clazz);
 
-            if ( classMap == null )
-            {
-                classMap = new ClassMap( clazz );
+            if (classMap == null) {
+                classMap = new ClassMap(clazz);
 
-                CLASS_MAPS.put( clazz, classMap );
+                CLASS_MAPS.put(clazz, classMap);
             }
 
             return classMap;
diff --git a/src/main/java/org/apache/maven/plugin/doap/options/ASFExtOptionsUtil.java b/src/main/java/org/apache/maven/plugin/doap/options/ASFExtOptionsUtil.java
index 750cb7d..1ec626a 100644
--- a/src/main/java/org/apache/maven/plugin/doap/options/ASFExtOptionsUtil.java
+++ b/src/main/java/org/apache/maven/plugin/doap/options/ASFExtOptionsUtil.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugin.doap.options;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -18,6 +16,7 @@ package org.apache.maven.plugin.doap.options;
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.maven.plugin.doap.options;
 
 import java.net.MalformedURLException;
 import java.net.URL;
@@ -34,8 +33,7 @@ import org.codehaus.plexus.util.StringUtils;
  * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
  * @since 1.1
  */
-public class ASFExtOptionsUtil
-{
+public class ASFExtOptionsUtil {
     /** Apache domain name, i.e. apache.org */
     private static final String APACHE_DOMAIN_NAME = "apache.org";
 
@@ -80,9 +78,19 @@ public class ASFExtOptionsUtil
     public static final String XML_CATEGORY = "xml";
 
     /** All categories supported by ASF */
-    public static final String[] CATEGORIES = { BUILD_MANAGEMENT_CATEGORY, DATABASE_CATEGORY, HTTP_CATEGORY,
-        HTTP_MODULES_CATEGORY, LIBRARY_CATEGORY, MAIL_CATEGORY, NETWORK_CLIENT_CATEGORY, NETWORK_SERVER_CATEGORY,
-        TESTING_CATEGORY, WEB_FRAMEWORK_CATEGORY, XML_CATEGORY };
+    public static final String[] CATEGORIES = {
+        BUILD_MANAGEMENT_CATEGORY,
+        DATABASE_CATEGORY,
+        HTTP_CATEGORY,
+        HTTP_MODULES_CATEGORY,
+        LIBRARY_CATEGORY,
+        MAIL_CATEGORY,
+        NETWORK_CLIENT_CATEGORY,
+        NETWORK_SERVER_CATEGORY,
+        TESTING_CATEGORY,
+        WEB_FRAMEWORK_CATEGORY,
+        XML_CATEGORY
+    };
 
     /** C or C++ Programming Language. */
     public static final String C_PROGRAMMING_LANGUAGE = "C";
@@ -103,8 +111,14 @@ public class ASFExtOptionsUtil
     public static final String TCL_PROGRAMMING_LANGUAGE = "Tcl";
 
     /** All Programming Languages supported by ASF */
-    public static final String[] PROGRAMMING_LANGUAGES = { C_PROGRAMMING_LANGUAGE, JAVA_PROGRAMMING_LANGUAGE,
-        PERL_PROGRAMMING_LANGUAGE, PYTHON_PROGRAMMING_LANGUAGE, SVG_PROGRAMMING_LANGUAGE, TCL_PROGRAMMING_LANGUAGE };
+    public static final String[] PROGRAMMING_LANGUAGES = {
+        C_PROGRAMMING_LANGUAGE,
+        JAVA_PROGRAMMING_LANGUAGE,
+        PERL_PROGRAMMING_LANGUAGE,
+        PYTHON_PROGRAMMING_LANGUAGE,
+        SVG_PROGRAMMING_LANGUAGE,
+        TCL_PROGRAMMING_LANGUAGE
+    };
 
     /**
      * @param category not null
@@ -112,12 +126,9 @@ public class ASFExtOptionsUtil
      * @see <a href="http://projects.apache.org/categories.html">http://projects.apache.org/categories.html</a>
      * @see #CATEGORIES
      */
-    public static String getCategorySupportedByASF( String category )
-    {
-        for ( String supportedCategory : CATEGORIES )
-        {
-            if ( supportedCategory.equalsIgnoreCase( category ) )
-            {
+    public static String getCategorySupportedByASF(String category) {
+        for (String supportedCategory : CATEGORIES) {
+            if (supportedCategory.equalsIgnoreCase(category)) {
                 return supportedCategory;
             }
         }
@@ -131,12 +142,9 @@ public class ASFExtOptionsUtil
      * @see <a href="http://projects.apache.org/languages.html">http://projects.apache.org/languages.html</a>
      * @see #PROGRAMMING_LANGUAGES
      */
-    public static String getProgrammingLanguageSupportedByASF( String programmingLanguage )
-    {
-        for ( String supportedProgrammingLanguage : PROGRAMMING_LANGUAGES )
-        {
-            if ( supportedProgrammingLanguage.equalsIgnoreCase( programmingLanguage ) )
-            {
+    public static String getProgrammingLanguageSupportedByASF(String programmingLanguage) {
+        for (String supportedProgrammingLanguage : PROGRAMMING_LANGUAGES) {
+            if (supportedProgrammingLanguage.equalsIgnoreCase(programmingLanguage)) {
                 return supportedProgrammingLanguage;
             }
         }
@@ -150,21 +158,16 @@ public class ASFExtOptionsUtil
      * @param developers list of <code>{@link Developer}</code>
      * @return a Developer or null if not found.
      */
-    public static Developer findChair( List<Developer> developers )
-    {
-        if ( developers == null || developers.isEmpty() )
-        {
+    public static Developer findChair(List<Developer> developers) {
+        if (developers == null || developers.isEmpty()) {
             return null;
         }
 
-        for ( Developer developer : developers )
-        {
+        for (Developer developer : developers) {
             List<String> roles = developer.getRoles();
 
-            for ( String role : roles )
-            {
-                if ( role.toLowerCase().contains( "chair" ) )
-                {
+            for (String role : roles) {
+                if (role.toLowerCase().contains("chair")) {
                     return developer;
                 }
             }
@@ -179,23 +182,18 @@ public class ASFExtOptionsUtil
      * @param developers list of <code>{@link Developer}</code>
      * @return a not null list of Developer.
      */
-    public static List<Developer> findPMCMembers( List<Developer> developers )
-    {
-        if ( developers == null || developers.isEmpty() )
-        {
+    public static List<Developer> findPMCMembers(List<Developer> developers) {
+        if (developers == null || developers.isEmpty()) {
             return null;
         }
 
         List<Developer> pmcs = new ArrayList<>();
-        for ( Developer developer : developers )
-        {
+        for (Developer developer : developers) {
             List<String> roles = developer.getRoles();
 
-            for ( String role : roles )
-            {
-                if ( role.toLowerCase().contains( "pmc" ) )
-                {
-                    pmcs.add( developer );
+            for (String role : roles) {
+                if (role.toLowerCase().contains("pmc")) {
+                    pmcs.add(developer);
                 }
             }
         }
@@ -212,75 +210,68 @@ public class ASFExtOptionsUtil
      * @see #APACHE_DOMAIN_NAME
      * @since 1.1
      */
-    public static boolean isASFProject( MavenProject project )
-    {
-        if ( project == null )
-        {
-            throw new IllegalArgumentException( "project is required" );
+    public static boolean isASFProject(MavenProject project) {
+        if (project == null) {
+            throw new IllegalArgumentException("project is required");
         }
 
         // check organization name
-        if ( project.getOrganization() != null && StringUtils.isNotEmpty( project.getOrganization().getName() )
-            && project.getOrganization().getName().trim().equals( "The Apache Software Foundation" ) )
-            // see org.apache:apache artifact
+        if (project.getOrganization() != null
+                && StringUtils.isNotEmpty(project.getOrganization().getName())
+                && project.getOrganization().getName().trim().equals("The Apache Software Foundation"))
+        // see org.apache:apache artifact
         {
             return true;
         }
 
         // check domain name
-        if ( project.getOrganization() != null && isHostedAtASF( project.getOrganization().getUrl() ) )
-        {
+        if (project.getOrganization() != null
+                && isHostedAtASF(project.getOrganization().getUrl())) {
             return true;
         }
 
-        if ( isHostedAtASF( project.getUrl() ) )
-        {
+        if (isHostedAtASF(project.getUrl())) {
             return true;
         }
 
-        if ( project.getScm() != null )
-        {
-            if ( StringUtils.isNotEmpty( project.getScm().getUrl() )
-                && project.getScm().getUrl().contains( APACHE_DOMAIN_NAME ) )
-            {
+        if (project.getScm() != null) {
+            if (StringUtils.isNotEmpty(project.getScm().getUrl())
+                    && project.getScm().getUrl().contains(APACHE_DOMAIN_NAME)) {
                 return true;
             }
 
-            if ( StringUtils.isNotEmpty( project.getScm().getConnection() )
-                && project.getScm().getConnection().contains( APACHE_DOMAIN_NAME ) )
-            {
+            if (StringUtils.isNotEmpty(project.getScm().getConnection())
+                    && project.getScm().getConnection().contains(APACHE_DOMAIN_NAME)) {
                 return true;
             }
 
-            if ( StringUtils.isNotEmpty( project.getScm().getDeveloperConnection() )
-                && project.getScm().getDeveloperConnection().contains( APACHE_DOMAIN_NAME ) )
-            {
+            if (StringUtils.isNotEmpty(project.getScm().getDeveloperConnection())
+                    && project.getScm().getDeveloperConnection().contains(APACHE_DOMAIN_NAME)) {
                 return true;
             }
         }
 
-        if ( project.getDistributionManagement() != null )
-        {
-            if ( isHostedAtASF( project.getDistributionManagement().getDownloadUrl() ) )
-            {
+        if (project.getDistributionManagement() != null) {
+            if (isHostedAtASF(project.getDistributionManagement().getDownloadUrl())) {
                 return true;
             }
 
-            if ( project.getDistributionManagement().getRepository() != null
-                && isHostedAtASF( project.getDistributionManagement().getRepository().getUrl() ) )
-            {
+            if (project.getDistributionManagement().getRepository() != null
+                    && isHostedAtASF(
+                            project.getDistributionManagement().getRepository().getUrl())) {
                 return true;
             }
 
-            if ( project.getDistributionManagement().getSnapshotRepository() != null
-                && isHostedAtASF( project.getDistributionManagement().getSnapshotRepository().getUrl() ) )
-            {
+            if (project.getDistributionManagement().getSnapshotRepository() != null
+                    && isHostedAtASF(project.getDistributionManagement()
+                            .getSnapshotRepository()
+                            .getUrl())) {
                 return true;
             }
 
-            if ( project.getDistributionManagement().getSite() != null
-                && isHostedAtASF( project.getDistributionManagement().getSite().getUrl() ) )
-            {
+            if (project.getDistributionManagement().getSite() != null
+                    && isHostedAtASF(
+                            project.getDistributionManagement().getSite().getUrl())) {
                 return true;
             }
         }
@@ -293,24 +284,18 @@ public class ASFExtOptionsUtil
      * @return <code>true</code> if the str is hosted by ASF.
      * @see #APACHE_DOMAIN_NAME
      */
-    private static boolean isHostedAtASF( String str )
-    {
-        if ( StringUtils.isEmpty( str ) )
-        {
+    private static boolean isHostedAtASF(String str) {
+        if (StringUtils.isEmpty(str)) {
             return false;
         }
 
         str = str.trim();
-        try
-        {
-            URL url = new URL( str );
-            if ( url.getHost().endsWith( APACHE_DOMAIN_NAME ) )
-            {
+        try {
+            URL url = new URL(str);
+            if (url.getHost().endsWith(APACHE_DOMAIN_NAME)) {
                 return true;
             }
-        }
-        catch ( MalformedURLException e )
-        {
+        } catch (MalformedURLException e) {
             // ignore
         }
 
diff --git a/src/test/java/org/apache/maven/plugin/doap/DoapMojoTest.java b/src/test/java/org/apache/maven/plugin/doap/DoapMojoTest.java
index 9d0945d..31c673c 100644
--- a/src/test/java/org/apache/maven/plugin/doap/DoapMojoTest.java
+++ b/src/test/java/org/apache/maven/plugin/doap/DoapMojoTest.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugin.doap;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -18,6 +16,7 @@ package org.apache.maven.plugin.doap;
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.maven.plugin.doap;
 
 import java.io.File;
 import java.io.FileReader;
@@ -35,20 +34,14 @@ import org.codehaus.plexus.util.StringUtils;
  *
  * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
  */
-public class DoapMojoTest
-    extends AbstractMojoTestCase
-{
+public class DoapMojoTest extends AbstractMojoTestCase {
     @Override
-    protected void setUp()
-        throws Exception
-    {
+    protected void setUp() throws Exception {
         super.setUp();
     }
 
     @Override
-    protected void tearDown()
-        throws Exception
-    {
+    protected void tearDown() throws Exception {
         super.tearDown();
     }
 
@@ -57,131 +50,125 @@ public class DoapMojoTest
      *
      * @throws Exception if any
      */
-    public void testGeneratedDoap()
-        throws Exception
-    {
-        File pluginXmlFile =
-            new File( getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml" );
-        DoapMojo mojo = (DoapMojo) lookupMojo( "generate", pluginXmlFile );
-        assertNotNull( "Mojo found.", mojo );
+    public void testGeneratedDoap() throws Exception {
+        File pluginXmlFile = new File(
+                getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml");
+        DoapMojo mojo = (DoapMojo) lookupMojo("generate", pluginXmlFile);
+        assertNotNull("Mojo found.", mojo);
 
-        MavenProject mavenProject = (MavenProject) getVariableValueFromObject( mojo, "project" );
-        assertNotNull( mavenProject );
+        MavenProject mavenProject = (MavenProject) getVariableValueFromObject(mojo, "project");
+        assertNotNull(mavenProject);
 
         // Set some Mojo parameters
-        setVariableValueToObject( mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories() );
-        setVariableValueToObject( mojo, "about", mavenProject.getUrl() );
+        setVariableValueToObject(mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories());
+        setVariableValueToObject(mojo, "about", mavenProject.getUrl());
 
         mojo.execute();
 
-        File doapFile = new File( getBasedir(), "target/test/unit/doap-configuration/doap-configuration.rdf" );
-        assertTrue( "Doap File was not generated!", doapFile.exists() );
+        File doapFile = new File(getBasedir(), "target/test/unit/doap-configuration/doap-configuration.rdf");
+        assertTrue("Doap File was not generated!", doapFile.exists());
 
-        String readed = readFile( doapFile );
+        String readed = readFile(doapFile);
 
         // Validate
 
         // Pure DOAP
-        assertTrue( readed.contains( "<rdf:RDF xml:lang=\"en\" xmlns=\"http://usefulinc.com/ns/doap#\" "
-            + "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" "
-            + "xmlns:foaf=\"http://xmlns.com/foaf/0.1/\">" ) );
-        assertTrue( readed.contains( "<Project rdf:about=\"" + mavenProject.getUrl() + "\">" ) );
-        assertTrue( readed.contains( "<description xml:lang=\"en\">Test the DOAP plugin</description>" ) );
-        assertTrue( readed.contains( "<shortdesc xml:lang=\"en\">Test the DOAP plugin</shortdesc>" ) );
-        assertTrue( readed.contains( "<homepage rdf:resource=\"" + mavenProject.getUrl() + "\"/>" ) );
-        assertTrue( readed.contains( "<category>library</category>" ) );
-        assertTrue( readed.contains( "<created>2008-01-01</created>" ) );
-        assertTrue( readed.contains( "<name>" + mavenProject.getName() + "</name>" ) );
-        assertTrue( readed.contains( "<download-page rdf:resource=\"http://foo.org/download.html\"/>" ) );
-        assertTrue( readed.contains( "<programming-language>Java</programming-language>" ) );
-        assertTrue( readed.contains( "<bug-database rdf:resource=\"http://jira.codehaus.org/browse/MDOAPTEST\"/>" ) );
-        assertTrue( readed.contains( "<license rdf:resource=\"http://www.apache.org/licenses/LICENSE-2.0.txt\"/>" ) );
-        assertTrue( readed.contains( "<SVNRepository>" ) );
-        assertTrue( readed.contains( "<location rdf:resource=\"http://svn.foo.org/repos/asf/maven/plugins/trunk/maven-doap-plugin/src/test/resources/unit/doap-configuration\"/>" ) );
-        assertTrue( readed.contains( "<browse rdf:resource=\"http://svn.foo.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/test/resources/unit/doap-configuration\"/>" ) );
-        assertTrue( readed.contains( "<location rdf:resource=\"https://svn.foo.org/repos/asf/maven/plugins/trunk/maven-doap-plugin/src/test/resources/unit/doap-configuration\"/>" ) );
+        assertTrue(readed.contains("<rdf:RDF xml:lang=\"en\" xmlns=\"http://usefulinc.com/ns/doap#\" "
+                + "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" "
+                + "xmlns:foaf=\"http://xmlns.com/foaf/0.1/\">"));
+        assertTrue(readed.contains("<Project rdf:about=\"" + mavenProject.getUrl() + "\">"));
+        assertTrue(readed.contains("<description xml:lang=\"en\">Test the DOAP plugin</description>"));
+        assertTrue(readed.contains("<shortdesc xml:lang=\"en\">Test the DOAP plugin</shortdesc>"));
+        assertTrue(readed.contains("<homepage rdf:resource=\"" + mavenProject.getUrl() + "\"/>"));
+        assertTrue(readed.contains("<category>library</category>"));
+        assertTrue(readed.contains("<created>2008-01-01</created>"));
+        assertTrue(readed.contains("<name>" + mavenProject.getName() + "</name>"));
+        assertTrue(readed.contains("<download-page rdf:resource=\"http://foo.org/download.html\"/>"));
+        assertTrue(readed.contains("<programming-language>Java</programming-language>"));
+        assertTrue(readed.contains("<bug-database rdf:resource=\"http://jira.codehaus.org/browse/MDOAPTEST\"/>"));
+        assertTrue(readed.contains("<license rdf:resource=\"http://www.apache.org/licenses/LICENSE-2.0.txt\"/>"));
+        assertTrue(readed.contains("<SVNRepository>"));
+        assertTrue(
+                readed.contains(
+                        "<location rdf:resource=\"http://svn.foo.org/repos/asf/maven/plugins/trunk/maven-doap-plugin/src/test/resources/unit/doap-configuration\"/>"));
+        assertTrue(
+                readed.contains(
+                        "<browse rdf:resource=\"http://svn.foo.org/viewvc/maven/plugins/trunk/maven-doap-plugin/src/test/resources/unit/doap-configuration\"/>"));
+        assertTrue(
+                readed.contains(
+                        "<location rdf:resource=\"https://svn.foo.org/repos/asf/maven/plugins/trunk/maven-doap-plugin/src/test/resources/unit/doap-configuration\"/>"));
 
         // conf
-        assertTrue( readed.contains( "<audience>developers</audience>" ) );
-        assertTrue( readed.contains( "<blog rdf:resource=\"http://myblog.foo.org\"/>" ) );
-        assertTrue( readed.contains( "<implements>JSR-foo</implements>" ) );
-        assertTrue( readed.contains( "<language>en</language>" ) );
-        assertTrue( readed.contains( "<language>fr</language>" ) );
-        assertTrue( readed.contains( "<old-homepage rdf:resource=\"http://old.foo.org\"/>" ) );
-        assertTrue( readed.contains( "<os>windows</os>" ) );
-        assertTrue( readed.contains( "<os>linux</os>" ) );
-        assertTrue( readed.contains( "<os>mac</os>" ) );
-        assertTrue( readed.contains( "<platform>java</platform>" ) );
-        assertTrue( readed.contains( "<platform>firefox</platform>" ) );
-        assertTrue( readed.contains( "<screenshots rdf:resource=\"" + mavenProject.getUrl() +"/screenshots.html\"/>" ) );
-        assertTrue( readed.contains( "<service-endpoint rdf:resource=\"http://webservice.foo.org\"/>" ) );
-        assertTrue( readed.contains( "<wiki rdf:resource=\"http://wiki.foo.org\"/>" ) );
+        assertTrue(readed.contains("<audience>developers</audience>"));
+        assertTrue(readed.contains("<blog rdf:resource=\"http://myblog.foo.org\"/>"));
+        assertTrue(readed.contains("<implements>JSR-foo</implements>"));
+        assertTrue(readed.contains("<language>en</language>"));
+        assertTrue(readed.contains("<language>fr</language>"));
+        assertTrue(readed.contains("<old-homepage rdf:resource=\"http://old.foo.org\"/>"));
+        assertTrue(readed.contains("<os>windows</os>"));
+        assertTrue(readed.contains("<os>linux</os>"));
+        assertTrue(readed.contains("<os>mac</os>"));
+        assertTrue(readed.contains("<platform>java</platform>"));
+        assertTrue(readed.contains("<platform>firefox</platform>"));
+        assertTrue(readed.contains("<screenshots rdf:resource=\"" + mavenProject.getUrl() + "/screenshots.html\"/>"));
+        assertTrue(readed.contains("<service-endpoint rdf:resource=\"http://webservice.foo.org\"/>"));
+        assertTrue(readed.contains("<wiki rdf:resource=\"http://wiki.foo.org\"/>"));
 
         // ASF ext
-        assertFalse( readed.contains( "<asfext:pmc rdf:resource=\"" + mavenProject.getUrl() + "\"/>" ) );
-        assertFalse( readed.contains( "<asfext:name>" + mavenProject.getName() + "</name>" ) );
+        assertFalse(readed.contains("<asfext:pmc rdf:resource=\"" + mavenProject.getUrl() + "\"/>"));
+        assertFalse(readed.contains("<asfext:name>" + mavenProject.getName() + "</name>"));
 
         // Developers and Organizations
-        assertTrue( readed.contains( "<maintainer>" ) );
-        assertTrue( readed.contains( "<foaf:Person rdf:nodeID=\"b" ) );
-        assertTrue( readed.contains( "<foaf:name>Jane Doe</foaf:name>" ) );
-        assertTrue( readed.contains( "<foaf:Organization>" ) );
-        assertTrue( readed.contains( "<foaf:homepage rdf:resource=\"http://www.example.org\"/>" ) );
-        assertTrue( readed.contains( "<foaf:member rdf:nodeID=\"b" ) );
+        assertTrue(readed.contains("<maintainer>"));
+        assertTrue(readed.contains("<foaf:Person rdf:nodeID=\"b"));
+        assertTrue(readed.contains("<foaf:name>Jane Doe</foaf:name>"));
+        assertTrue(readed.contains("<foaf:Organization>"));
+        assertTrue(readed.contains("<foaf:homepage rdf:resource=\"http://www.example.org\"/>"));
+        assertTrue(readed.contains("<foaf:member rdf:nodeID=\"b"));
     }
 
     /**
      * @throws Exception if any
      */
-    public void testLangParameter()
-        throws Exception
-    {
-        File pluginXmlFile =
-            new File( getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml" );
-        DoapMojo mojo = (DoapMojo) lookupMojo( "generate", pluginXmlFile );
-        assertNotNull( "Mojo found.", mojo );
+    public void testLangParameter() throws Exception {
+        File pluginXmlFile = new File(
+                getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml");
+        DoapMojo mojo = (DoapMojo) lookupMojo("generate", pluginXmlFile);
+        assertNotNull("Mojo found.", mojo);
 
-        MavenProject mavenProject = (MavenProject) getVariableValueFromObject( mojo, "project" );
-        assertNotNull( mavenProject );
+        MavenProject mavenProject = (MavenProject) getVariableValueFromObject(mojo, "project");
+        assertNotNull(mavenProject);
 
         // check invalid lang
-        setVariableValueToObject( mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories() );
-        setVariableValueToObject( mojo, "lang", "foo" );
-        try
-        {
+        setVariableValueToObject(mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories());
+        setVariableValueToObject(mojo, "lang", "foo");
+        try {
             mojo.execute();
-            assertTrue( "No lang checked", false );
-        }
-        catch ( Exception e )
-        {
-            assertTrue( true );
+            assertTrue("No lang checked", false);
+        } catch (Exception e) {
+            assertTrue(true);
         }
     }
 
     /**
      * @throws Exception if any
      */
-    public void testAboutParameter()
-        throws Exception
-    {
-        File pluginXmlFile =
-            new File( getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml" );
-        DoapMojo mojo = (DoapMojo) lookupMojo( "generate", pluginXmlFile );
-        assertNotNull( "Mojo found.", mojo );
+    public void testAboutParameter() throws Exception {
+        File pluginXmlFile = new File(
+                getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml");
+        DoapMojo mojo = (DoapMojo) lookupMojo("generate", pluginXmlFile);
+        assertNotNull("Mojo found.", mojo);
 
-        MavenProject mavenProject = (MavenProject) getVariableValueFromObject( mojo, "project" );
-        assertNotNull( mavenProject );
+        MavenProject mavenProject = (MavenProject) getVariableValueFromObject(mojo, "project");
+        assertNotNull(mavenProject);
 
         // check invalid lang
-        setVariableValueToObject( mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories() );
-        setVariableValueToObject( mojo, "about", "foo" );
-        try
-        {
+        setVariableValueToObject(mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories());
+        setVariableValueToObject(mojo, "about", "foo");
+        try {
             mojo.execute();
-        }
-        catch ( Exception e )
-        {
-            assertTrue( true );
+        } catch (Exception e) {
+            assertTrue(true);
         }
     }
 
@@ -190,73 +177,76 @@ public class DoapMojoTest
      *
      * @throws Exception if any
      */
-    public void testGeneratedDoapArtifact()
-        throws Exception
-    {
-        File pluginXmlFile =
-            new File( getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml" );
-        DoapMojo mojo = (DoapMojo) lookupMojo( "generate", pluginXmlFile );
-        assertNotNull( "Mojo found.", mojo );
+    public void testGeneratedDoapArtifact() throws Exception {
+        File pluginXmlFile = new File(
+                getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml");
+        DoapMojo mojo = (DoapMojo) lookupMojo("generate", pluginXmlFile);
+        assertNotNull("Mojo found.", mojo);
 
-        MavenProject mavenProject = (MavenProject) getVariableValueFromObject( mojo, "project" );
-        assertNotNull( mavenProject );
+        MavenProject mavenProject = (MavenProject) getVariableValueFromObject(mojo, "project");
+        assertNotNull(mavenProject);
 
         // Set some Mojo parameters
-        setVariableValueToObject( mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories() );
-        setVariableValueToObject( mojo, "about", mavenProject.getUrl() );
-        DoapOptions doapOptions = (DoapOptions)getVariableValueFromObject(  mojo, "doapOptions" );
-        doapOptions.setDescription( "Common Utilities" );
-        doapOptions.setShortdesc( "Common Utilities" );
-        doapOptions.setDownloadPage( "http://plexus.codehaus.org/download-binaries.html" );
-        setVariableValueToObject( mojo, "doapOptions", doapOptions );
+        setVariableValueToObject(mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories());
+        setVariableValueToObject(mojo, "about", mavenProject.getUrl());
+        DoapOptions doapOptions = (DoapOptions) getVariableValueFromObject(mojo, "doapOptions");
+        doapOptions.setDescription("Common Utilities");
+        doapOptions.setShortdesc("Common Utilities");
+        doapOptions.setDownloadPage("http://plexus.codehaus.org/download-binaries.html");
+        setVariableValueToObject(mojo, "doapOptions", doapOptions);
 
         DoapArtifact artifact = new DoapArtifact();
-        artifact.setGroupId( "org.codehaus.plexus" );
-        artifact.setArtifactId( "plexus-utils" );
-        artifact.setVersion( "1.5.5" );
-        setVariableValueToObject( mojo, "artifact", artifact );
-        setVariableValueToObject( mojo, "outputDirectory", "target/test/unit/doap-configuration/" );
+        artifact.setGroupId("org.codehaus.plexus");
+        artifact.setArtifactId("plexus-utils");
+        artifact.setVersion("1.5.5");
+        setVariableValueToObject(mojo, "artifact", artifact);
+        setVariableValueToObject(mojo, "outputDirectory", "target/test/unit/doap-configuration/");
 
         mojo.execute();
 
-        File doapFile = new File( getBasedir(), "target/test/unit/doap-configuration/doap_plexus-utils.rdf" );
-        assertTrue( "Doap File was not generated!", doapFile.exists() );
+        File doapFile = new File(getBasedir(), "target/test/unit/doap-configuration/doap_plexus-utils.rdf");
+        assertTrue("Doap File was not generated!", doapFile.exists());
 
-        String readed = readFile( doapFile );
+        String readed = readFile(doapFile);
 
         // Validate
 
         // Pure DOAP
-        assertTrue( readed.contains( "<rdf:RDF xml:lang=\"en\" xmlns=\"http://usefulinc.com/ns/doap#\" "
-            + "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" "
-            + "xmlns:foaf=\"http://xmlns.com/foaf/0.1/\">" ) );
-        assertTrue( readed.contains( "<Project rdf:about=\"http://plexus.codehaus.org/plexus-utils\">" ) );
-        assertTrue( readed.contains( "<name>Plexus Common Utilities</name>" ) );
-        assertTrue( readed.contains( "<description xml:lang=\"en\">Common Utilities</description>" ) );
-        assertTrue( readed.contains( "<shortdesc xml:lang=\"en\">Common Utilities</shortdesc>" ) );
-        assertTrue( readed.contains( "<created>2001-01-01</created>" ) );
-        assertTrue( readed.contains( "<download-page rdf:resource=\"http://plexus.codehaus.org/download-binaries.html\"/>" ) );
-        assertTrue( readed.contains( "<programming-language>Java</programming-language>" ) );
-        assertTrue( readed.contains( "<bug-database rdf:resource=\"http://jira.codehaus.org/browse/PLXUTILS\"/>" ) );
-        assertTrue( readed.contains( "<license rdf:resource=\"http://www.apache.org/licenses/LICENSE-2.0.txt\"/>" ) );
-        assertTrue( readed.contains( "<SVNRepository>" ) );
-        assertTrue( readed.contains( "<location rdf:resource=\"http://svn.codehaus.org/plexus/plexus-utils/tags/plexus-utils-1.5.5\"/>" ) );
-        assertTrue( readed.contains( "<browse rdf:resource=\"http://fisheye.codehaus.org/browse/plexus/plexus-utils/tags/plexus-utils-1.5.5\"/>" ) );
+        assertTrue(readed.contains("<rdf:RDF xml:lang=\"en\" xmlns=\"http://usefulinc.com/ns/doap#\" "
+                + "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" "
+                + "xmlns:foaf=\"http://xmlns.com/foaf/0.1/\">"));
+        assertTrue(readed.contains("<Project rdf:about=\"http://plexus.codehaus.org/plexus-utils\">"));
+        assertTrue(readed.contains("<name>Plexus Common Utilities</name>"));
+        assertTrue(readed.contains("<description xml:lang=\"en\">Common Utilities</description>"));
+        assertTrue(readed.contains("<shortdesc xml:lang=\"en\">Common Utilities</shortdesc>"));
+        assertTrue(readed.contains("<created>2001-01-01</created>"));
+        assertTrue(
+                readed.contains("<download-page rdf:resource=\"http://plexus.codehaus.org/download-binaries.html\"/>"));
+        assertTrue(readed.contains("<programming-language>Java</programming-language>"));
+        assertTrue(readed.contains("<bug-database rdf:resource=\"http://jira.codehaus.org/browse/PLXUTILS\"/>"));
+        assertTrue(readed.contains("<license rdf:resource=\"http://www.apache.org/licenses/LICENSE-2.0.txt\"/>"));
+        assertTrue(readed.contains("<SVNRepository>"));
+        assertTrue(readed.contains(
+                "<location rdf:resource=\"http://svn.codehaus.org/plexus/plexus-utils/tags/plexus-utils-1.5.5\"/>"));
+        assertTrue(
+                readed.contains(
+                        "<browse rdf:resource=\"http://fisheye.codehaus.org/browse/plexus/plexus-utils/tags/plexus-utils-1.5.5\"/>"));
 
         // conf
-        assertTrue( readed.contains( "<audience>developers</audience>" ) );
-        assertTrue( readed.contains( "<blog rdf:resource=\"http://myblog.foo.org\"/>" ) );
-        assertTrue( readed.contains( "<implements>JSR-foo</implements>" ) );
-        assertTrue( readed.contains( "<language>en</language>" ) );
-        assertTrue( readed.contains( "<language>fr</language>" ) );
-        assertTrue( readed.contains( "<old-homepage rdf:resource=\"http://old.foo.org\"/>" ) );
-        assertTrue( readed.contains( "<os>windows</os>" ) );
-        assertTrue( readed.contains( "<os>linux</os>" ) );
-        assertTrue( readed.contains( "<os>mac</os>" ) );
-        assertTrue( readed.contains( "<platform>java</platform>" ) );
-        assertTrue( readed.contains( "<screenshots rdf:resource=\"http://plexus.codehaus.org/plexus-utils/screenshots.html\"/>" ) );
-        assertTrue( readed.contains( "<service-endpoint rdf:resource=\"http://webservice.foo.org\"/>" ) );
-        assertTrue( readed.contains( "<wiki rdf:resource=\"http://wiki.foo.org\"/>" ) );
+        assertTrue(readed.contains("<audience>developers</audience>"));
+        assertTrue(readed.contains("<blog rdf:resource=\"http://myblog.foo.org\"/>"));
+        assertTrue(readed.contains("<implements>JSR-foo</implements>"));
+        assertTrue(readed.contains("<language>en</language>"));
+        assertTrue(readed.contains("<language>fr</language>"));
+        assertTrue(readed.contains("<old-homepage rdf:resource=\"http://old.foo.org\"/>"));
+        assertTrue(readed.contains("<os>windows</os>"));
+        assertTrue(readed.contains("<os>linux</os>"));
+        assertTrue(readed.contains("<os>mac</os>"));
+        assertTrue(readed.contains("<platform>java</platform>"));
+        assertTrue(readed.contains(
+                "<screenshots rdf:resource=\"http://plexus.codehaus.org/plexus-utils/screenshots.html\"/>"));
+        assertTrue(readed.contains("<service-endpoint rdf:resource=\"http://webservice.foo.org\"/>"));
+        assertTrue(readed.contains("<wiki rdf:resource=\"http://wiki.foo.org\"/>"));
     }
 
     /**
@@ -264,77 +254,77 @@ public class DoapMojoTest
      *
      * @throws Exception if any
      */
-    public void testGeneratedDoapArtifactMinimalist()
-        throws Exception
-    {
-        File pluginXmlFile =
-            new File( getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml" );
-        DoapMojo mojo = (DoapMojo) lookupMojo( "generate", pluginXmlFile );
-        assertNotNull( "Mojo found.", mojo );
+    public void testGeneratedDoapArtifactMinimalist() throws Exception {
+        File pluginXmlFile = new File(
+                getBasedir(), "src/test/resources/unit/doap-configuration/doap-configuration-plugin-config.xml");
+        DoapMojo mojo = (DoapMojo) lookupMojo("generate", pluginXmlFile);
+        assertNotNull("Mojo found.", mojo);
 
-        MavenProject mavenProject = (MavenProject) getVariableValueFromObject( mojo, "project" );
-        assertNotNull( mavenProject );
+        MavenProject mavenProject = (MavenProject) getVariableValueFromObject(mojo, "project");
+        assertNotNull(mavenProject);
 
         // Set some Mojo parameters
-        setVariableValueToObject( mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories() );
-        setVariableValueToObject( mojo, "about", "foo" );
+        setVariableValueToObject(mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories());
+        setVariableValueToObject(mojo, "about", "foo");
         DoapOptions doapOptions = new DoapOptions();
-        doapOptions.setName( "XStream" );
-        doapOptions.setDescription( "XStream is a simple library to serialize objects to XML and back again." );
-        doapOptions.setShortdesc( "XML Serializer" );
-        doapOptions.setHomepage( "http://xstream.codehaus.org/" );
-        doapOptions.setDownloadPage( "http://xstream.codehaus.org/download.html" );
-        doapOptions.setBugDatabase( "http://jira.codehaus.org/browse/XSTR" );
-        doapOptions.setLicense( "http://xstream.codehaus.org/license.html" );
-        doapOptions.setScmDeveloper( "http://svn.codehaus.org/xstream/trunk/xstream" );
-        doapOptions.setMailingList( "http://xstream.codehaus.org/list-user.html" );
-        doapOptions.setCreated( "2000-01-01");
-        setVariableValueToObject( mojo, "doapOptions", doapOptions );
+        doapOptions.setName("XStream");
+        doapOptions.setDescription("XStream is a simple library to serialize objects to XML and back again.");
+        doapOptions.setShortdesc("XML Serializer");
+        doapOptions.setHomepage("http://xstream.codehaus.org/");
+        doapOptions.setDownloadPage("http://xstream.codehaus.org/download.html");
+        doapOptions.setBugDatabase("http://jira.codehaus.org/browse/XSTR");
+        doapOptions.setLicense("http://xstream.codehaus.org/license.html");
+        doapOptions.setScmDeveloper("http://svn.codehaus.org/xstream/trunk/xstream");
+        doapOptions.setMailingList("http://xstream.codehaus.org/list-user.html");
+        doapOptions.setCreated("2000-01-01");
+        setVariableValueToObject(mojo, "doapOptions", doapOptions);
 
         DoapArtifact artifact = new DoapArtifact();
-        artifact.setGroupId( "xstream" );
-        artifact.setArtifactId( "xstream" );
-        artifact.setVersion( "1.1" );
-        setVariableValueToObject( mojo, "artifact", artifact );
-        setVariableValueToObject( mojo, "outputDirectory", "target/test/unit/doap-configuration/" );
+        artifact.setGroupId("xstream");
+        artifact.setArtifactId("xstream");
+        artifact.setVersion("1.1");
+        setVariableValueToObject(mojo, "artifact", artifact);
+        setVariableValueToObject(mojo, "outputDirectory", "target/test/unit/doap-configuration/");
 
         mojo.execute();
 
-        File doapFile = new File( getBasedir(), "target/test/unit/doap-configuration/doap_xstream.rdf" );
-        assertTrue( "Doap File was not generated!", doapFile.exists() );
+        File doapFile = new File(getBasedir(), "target/test/unit/doap-configuration/doap_xstream.rdf");
+        assertTrue("Doap File was not generated!", doapFile.exists());
 
-        String readed = readFile( doapFile );
+        String readed = readFile(doapFile);
 
         // Validate
 
         // Pure DOAP
-        assertTrue( readed.contains( "<rdf:RDF xml:lang=\"en\" xmlns=\"http://usefulinc.com/ns/doap#\" "
-            + "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" "
-            + "xmlns:foaf=\"http://xmlns.com/foaf/0.1/\">" ) );
-        assertTrue( readed.contains( "<Project>" ) );
-        assertTrue( readed.contains( "<name>XStream</name>" ) );
-        assertTrue( readed.contains( "<description xml:lang=\"en\">XStream is a simple library to serialize objects to XML and back again.</description>" ) );
-        assertTrue( readed.contains( "<shortdesc xml:lang=\"en\">XML Serializer</shortdesc>" ) );
-        assertTrue( readed.contains( "<created>2000-01-01</created>" ) );
-        assertTrue( readed.contains( "<download-page rdf:resource=\"http://xstream.codehaus.org/download.html\"/>" ) );
-        assertTrue( readed.contains( "<programming-language>Java</programming-language>" ) );
-        assertTrue( readed.contains( "<bug-database rdf:resource=\"http://jira.codehaus.org/browse/XSTR\"/>" ) );
-        assertTrue( readed.contains( "<license rdf:resource=\"http://xstream.codehaus.org/license.html\"/>" ) );
-        assertTrue( readed.contains( "<Repository>" ) );
-        assertTrue( readed.contains( "<location rdf:resource=\"http://svn.codehaus.org/xstream/trunk/xstream\"/>" ) );
-        assertTrue( readed.contains( "<mailing-list rdf:resource=\"http://xstream.codehaus.org/list-user.html\"/>" ) );
+        assertTrue(readed.contains("<rdf:RDF xml:lang=\"en\" xmlns=\"http://usefulinc.com/ns/doap#\" "
+                + "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" "
+                + "xmlns:foaf=\"http://xmlns.com/foaf/0.1/\">"));
+        assertTrue(readed.contains("<Project>"));
+        assertTrue(readed.contains("<name>XStream</name>"));
+        assertTrue(
+                readed.contains(
+                        "<description xml:lang=\"en\">XStream is a simple library to serialize objects to XML and back again.</description>"));
+        assertTrue(readed.contains("<shortdesc xml:lang=\"en\">XML Serializer</shortdesc>"));
+        assertTrue(readed.contains("<created>2000-01-01</created>"));
+        assertTrue(readed.contains("<download-page rdf:resource=\"http://xstream.codehaus.org/download.html\"/>"));
+        assertTrue(readed.contains("<programming-language>Java</programming-language>"));
+        assertTrue(readed.contains("<bug-database rdf:resource=\"http://jira.codehaus.org/browse/XSTR\"/>"));
+        assertTrue(readed.contains("<license rdf:resource=\"http://xstream.codehaus.org/license.html\"/>"));
+        assertTrue(readed.contains("<Repository>"));
+        assertTrue(readed.contains("<location rdf:resource=\"http://svn.codehaus.org/xstream/trunk/xstream\"/>"));
+        assertTrue(readed.contains("<mailing-list rdf:resource=\"http://xstream.codehaus.org/list-user.html\"/>"));
 
         // conf
-        assertFalse( readed.contains( "<audience>" ) );
-        assertFalse( readed.contains( "<blog rdf:resource=" ) );
-        assertFalse( readed.contains( "<implements>" ) );
-        assertFalse( readed.contains( "<language>" ) );
-        assertFalse( readed.contains( "<old-homepage rdf:resource=" ) );
-        assertFalse( readed.contains( "<os>" ) );
-        assertFalse( readed.contains( "<platform>" ) );
-        assertFalse( readed.contains( "<screenshots rdf:resource=" ) );
-        assertFalse( readed.contains( "<service-endpoint rdf:resource=" ) );
-        assertFalse( readed.contains( "<wiki rdf:resource=" ) );
+        assertFalse(readed.contains("<audience>"));
+        assertFalse(readed.contains("<blog rdf:resource="));
+        assertFalse(readed.contains("<implements>"));
+        assertFalse(readed.contains("<language>"));
+        assertFalse(readed.contains("<old-homepage rdf:resource="));
+        assertFalse(readed.contains("<os>"));
+        assertFalse(readed.contains("<platform>"));
+        assertFalse(readed.contains("<screenshots rdf:resource="));
+        assertFalse(readed.contains("<service-endpoint rdf:resource="));
+        assertFalse(readed.contains("<wiki rdf:resource="));
     }
 
     /**
@@ -342,49 +332,47 @@ public class DoapMojoTest
      *
      * @throws Exception if any
      */
-    public void testGeneratedDoapForASF()
-        throws Exception
-    {
-        File pluginXmlFile =
-            new File( getBasedir(),
-                      "src/test/resources/unit/asf-doap-configuration/asf-doap-configuration-plugin-config.xml" );
-        DoapMojo mojo = (DoapMojo) lookupMojo( "generate", pluginXmlFile );
-        assertNotNull( "Mojo found.", mojo );
-
-        MavenProject mavenProject = (MavenProject) getVariableValueFromObject( mojo, "project" );
-        assertNotNull( mavenProject );
+    public void testGeneratedDoapForASF() throws Exception {
+        File pluginXmlFile = new File(
+                getBasedir(),
+                "src/test/resources/unit/asf-doap-configuration/asf-doap-configuration-plugin-config.xml");
+        DoapMojo mojo = (DoapMojo) lookupMojo("generate", pluginXmlFile);
+        assertNotNull("Mojo found.", mojo);
+
+        MavenProject mavenProject = (MavenProject) getVariableValueFromObject(mojo, "project");
+        assertNotNull(mavenProject);
 
         // Set some Mojo parameters
-        setVariableValueToObject( mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories() );
-        setVariableValueToObject( mojo, "about", mavenProject.getUrl() );
+        setVariableValueToObject(mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories());
+        setVariableValueToObject(mojo, "about", mavenProject.getUrl());
 
         mojo.execute();
 
-        File doapFile = new File( getBasedir(), "target/test/unit/asf-doap-configuration/asf-doap-configuration.rdf" );
-        assertTrue( "Doap File was not generated!", doapFile.exists() );
+        File doapFile = new File(getBasedir(), "target/test/unit/asf-doap-configuration/asf-doap-configuration.rdf");
+        assertTrue("Doap File was not generated!", doapFile.exists());
 
-        String readed = readFile( doapFile );
+        String readed = readFile(doapFile);
 
         // Validate
 
         // ASF DOAP
-        assertTrue( readed.contains( "<rdf:RDF xml:lang=\"en\" xmlns=\"http://usefulinc.com/ns/doap#\" "
-            + "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" "
-            + "xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" " + "xmlns:asfext=\"http://projects.apache.org/ns/asfext#\">" ) );
-        if ( StringUtils.isNotEmpty( mavenProject.getUrl() ) )
-        {
-            assertTrue( readed.contains( "<Project rdf:about=\"" + mavenProject.getUrl() + "\">" ) );
-            assertTrue( readed.contains( "<homepage rdf:resource=\"" + mavenProject.getUrl() + "\"/>" ) );
+        assertTrue(readed.contains("<rdf:RDF xml:lang=\"en\" xmlns=\"http://usefulinc.com/ns/doap#\" "
+                + "xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" "
+                + "xmlns:foaf=\"http://xmlns.com/foaf/0.1/\" "
+                + "xmlns:asfext=\"http://projects.apache.org/ns/asfext#\">"));
+        if (StringUtils.isNotEmpty(mavenProject.getUrl())) {
+            assertTrue(readed.contains("<Project rdf:about=\"" + mavenProject.getUrl() + "\">"));
+            assertTrue(readed.contains("<homepage rdf:resource=\"" + mavenProject.getUrl() + "\"/>"));
         }
-        assertTrue( readed.contains( "<name>Apache " + mavenProject.getName() + "</name>" ) );
-        assertTrue( readed.contains( "<programming-language>Java</programming-language>" ) );
-        assertTrue( readed.contains( "<category rdf:resource=\"http://projects.apache.org/category/library\"/>" ) );
+        assertTrue(readed.contains("<name>Apache " + mavenProject.getName() + "</name>"));
+        assertTrue(readed.contains("<programming-language>Java</programming-language>"));
+        assertTrue(readed.contains("<category rdf:resource=\"http://projects.apache.org/category/library\"/>"));
 
         // ASF ext
-        assertTrue( readed.contains( "<asfext:pmc rdf:resource=\"" + mavenProject.getUrl() + "\"/>" ) );
-        assertTrue( readed.contains( "<asfext:name>Apache " + mavenProject.getName() + "</asfext:name>" ) );
-        assertTrue( readed.contains( "<asfext:charter>" ) );
-        assertTrue( readed.contains( "<asfext:chair>" ) );
+        assertTrue(readed.contains("<asfext:pmc rdf:resource=\"" + mavenProject.getUrl() + "\"/>"));
+        assertTrue(readed.contains("<asfext:name>Apache " + mavenProject.getName() + "</asfext:name>"));
+        assertTrue(readed.contains("<asfext:charter>"));
+        assertTrue(readed.contains("<asfext:chair>"));
     }
 
     /**
@@ -392,32 +380,29 @@ public class DoapMojoTest
      *
      * @throws Exception if any
      */
-    public void testGeneratedExtraDoap()
-        throws Exception
-    {
-        File pluginXmlFile =
-            new File( getBasedir(),
-                      "src/test/resources/unit/doap-configuration/doap-extra-configuration-plugin-config.xml" );
-        DoapMojo mojo = (DoapMojo) lookupMojo( "generate", pluginXmlFile );
-        assertNotNull( "Mojo found.", mojo );
-
-        MavenProject mavenProject = (MavenProject) getVariableValueFromObject( mojo, "project" );
-        assertNotNull( mavenProject );
+    public void testGeneratedExtraDoap() throws Exception {
+        File pluginXmlFile = new File(
+                getBasedir(), "src/test/resources/unit/doap-configuration/doap-extra-configuration-plugin-config.xml");
+        DoapMojo mojo = (DoapMojo) lookupMojo("generate", pluginXmlFile);
+        assertNotNull("Mojo found.", mojo);
+
+        MavenProject mavenProject = (MavenProject) getVariableValueFromObject(mojo, "project");
+        assertNotNull(mavenProject);
 
         // Set some Mojo parameters
-        setVariableValueToObject( mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories() );
-        setVariableValueToObject( mojo, "about", mavenProject.getUrl() );
+        setVariableValueToObject(mojo, "remoteRepositories", mavenProject.getRemoteArtifactRepositories());
+        setVariableValueToObject(mojo, "about", mavenProject.getUrl());
 
         mojo.execute();
 
-        File doapFile = new File( getBasedir(), "target/test/unit/doap-configuration/doap-extra-configuration.rdf" );
-        assertTrue( "Doap File was not generated!", doapFile.exists() );
+        File doapFile = new File(getBasedir(), "target/test/unit/doap-configuration/doap-extra-configuration.rdf");
+        assertTrue("Doap File was not generated!", doapFile.exists());
 
-        String readed = readFile( doapFile );
+        String readed = readFile(doapFile);
 
-        assertTrue( readed.contains( "<ciManagement rdf:resource=\"http://ci.foo.org\"/>" ) );
-        assertTrue( readed.contains( "<asfext:status>active</asfext:status>" ) );
-        assertTrue( readed.contains( "<labs:status>active</labs:status>" ) );
+        assertTrue(readed.contains("<ciManagement rdf:resource=\"http://ci.foo.org\"/>"));
+        assertTrue(readed.contains("<asfext:status>active</asfext:status>"));
+        assertTrue(readed.contains("<labs:status>active</labs:status>"));
     }
 
     /**
@@ -425,25 +410,20 @@ public class DoapMojoTest
      * @return
      * @throws IOException if any
      */
-    private String readFile( File file )
-        throws IOException
-    {
+    private String readFile(File file) throws IOException {
         String result = null;
 
         FileReader reader = null;
-        try
-        {
+        try {
             // platform encoding
-            reader = new FileReader( file );
+            reader = new FileReader(file);
 
-            result = IOUtil.toString( reader );
+            result = IOUtil.toString(reader);
 
             reader.close();
             reader = null;
-        }
-        finally
-        {
-            IOUtil.close( reader );
+        } finally {
+            IOUtil.close(reader);
         }
 
         return result;
diff --git a/src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java b/src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java
index 70a2d53..34a946a 100644
--- a/src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java
+++ b/src/test/java/org/apache/maven/plugin/doap/DoapUtilTest.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugin.doap;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -18,6 +16,7 @@ package org.apache.maven.plugin.doap;
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.maven.plugin.doap;
 
 import java.io.File;
 import java.io.StringWriter;
@@ -39,20 +38,14 @@ import org.codehaus.plexus.util.xml.XMLWriter;
  *
  * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
  */
-public class DoapUtilTest
-    extends PlexusTestCase
-{
+public class DoapUtilTest extends PlexusTestCase {
     /** {@inheritDoc} */
-    protected void setUp()
-        throws Exception
-    {
+    protected void setUp() throws Exception {
         super.setUp();
     }
 
     /** {@inheritDoc} */
-    protected void tearDown()
-        throws Exception
-    {
+    protected void tearDown() throws Exception {
         super.tearDown();
     }
 
@@ -61,28 +54,21 @@ public class DoapUtilTest
      *
      * @throws Exception if any
      */
-    public void testWriteElement()
-        throws Exception
-    {
+    public void testWriteElement() throws Exception {
         StringWriter w = new StringWriter();
-        XMLWriter writer = new PrettyPrintXMLWriter( w );
-        DoapUtil.writeElement( writer, null, "name", "value" );
+        XMLWriter writer = new PrettyPrintXMLWriter(w);
+        DoapUtil.writeElement(writer, null, "name", "value");
         w.close();
-        assertEquals( w.toString(), "<name>value</name>" );
+        assertEquals(w.toString(), "<name>value</name>");
 
         w = new StringWriter();
-        writer = new PrettyPrintXMLWriter( w );
-        try
-        {
-            DoapUtil.writeElement( writer, null, null, null );
-            assertTrue( "Null not catched", false );
-        }
-        catch ( IllegalArgumentException e )
-        {
-            assertTrue( "IllegalArgumentException catched", true );
-        }
-        finally
-        {
+        writer = new PrettyPrintXMLWriter(w);
+        try {
+            DoapUtil.writeElement(writer, null, null, null);
+            assertTrue("Null not catched", false);
+        } catch (IllegalArgumentException e) {
+            assertTrue("IllegalArgumentException catched", true);
+        } finally {
             w.close();
         }
     }
@@ -92,28 +78,21 @@ public class DoapUtilTest
      *
      * @throws Exception if any
      */
-    public void testWriteRdfResourceElement()
-        throws Exception
-    {
+    public void testWriteRdfResourceElement() throws Exception {
         StringWriter w = new StringWriter();
-        XMLWriter writer = new PrettyPrintXMLWriter( w );
-        DoapUtil.writeRdfResourceElement( writer, null, "name", "value" );
+        XMLWriter writer = new PrettyPrintXMLWriter(w);
+        DoapUtil.writeRdfResourceElement(writer, null, "name", "value");
         w.close();
-        assertEquals( w.toString(), "<name " + DoapUtil.RDF_RESOURCE + "=\"value\"/>" );
+        assertEquals(w.toString(), "<name " + DoapUtil.RDF_RESOURCE + "=\"value\"/>");
 
         w = new StringWriter();
-        writer = new PrettyPrintXMLWriter( w );
-        try
-        {
-            DoapUtil.writeRdfResourceElement( writer, null, null, null );
-            assertTrue( "Null not catched", false );
-        }
-        catch ( IllegalArgumentException e )
-        {
-            assertTrue( "IllegalArgumentException catched", true );
-        }
-        finally
-        {
+        writer = new PrettyPrintXMLWriter(w);
+        try {
+            DoapUtil.writeRdfResourceElement(writer, null, null, null);
+            assertTrue("Null not catched", false);
+        } catch (IllegalArgumentException e) {
+            assertTrue("IllegalArgumentException catched", true);
+        } finally {
             w.close();
         }
     }
@@ -130,65 +109,79 @@ public class DoapUtilTest
      *
      * @throws Exception if any
      */
-    public void testDevelopersOrContributorsByDoapRoles()
-        throws Exception
-    {
-        I18N i18n = (I18N) getContainer().lookup( I18N.ROLE );
-        assertNotNull( i18n );
-        assertNotNull( i18n.getBundle() );
+    public void testDevelopersOrContributorsByDoapRoles() throws Exception {
+        I18N i18n = (I18N) getContainer().lookup(I18N.ROLE);
+        assertNotNull(i18n);
+        assertNotNull(i18n.getBundle());
 
         List<Contributor> developersOrContributors = new ArrayList<>();
 
         // One role
         Developer dev = new Developer();
-        dev.setId( "dev1" );
-        dev.addRole( "maintainer" );
-
-        developersOrContributors.add( dev );
-
-        assertTrue( DoapUtil.getContributorsWithDeveloperRole( i18n, developersOrContributors ).isEmpty() );
-        assertTrue( DoapUtil.getContributorsWithDocumenterRole( i18n, developersOrContributors ).isEmpty() );
-        assertTrue( DoapUtil.getContributorsWithHelperRole( i18n, developersOrContributors ).isEmpty() );
-        assertFalse( DoapUtil.getContributorsWithMaintainerRole( i18n, developersOrContributors ).isEmpty() );
-        assertTrue( DoapUtil.getContributorsWithTesterRole( i18n, developersOrContributors ).isEmpty() );
-        assertTrue( DoapUtil.getContributorsWithTranslatorRole( i18n, developersOrContributors ).isEmpty() );
-        assertTrue( DoapUtil.getContributorsWithUnknownRole( i18n, developersOrContributors ).isEmpty() );
+        dev.setId("dev1");
+        dev.addRole("maintainer");
+
+        developersOrContributors.add(dev);
+
+        assertTrue(DoapUtil.getContributorsWithDeveloperRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertTrue(DoapUtil.getContributorsWithDocumenterRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertTrue(DoapUtil.getContributorsWithHelperRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertFalse(DoapUtil.getContributorsWithMaintainerRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertTrue(DoapUtil.getContributorsWithTesterRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertTrue(DoapUtil.getContributorsWithTranslatorRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertTrue(DoapUtil.getContributorsWithUnknownRole(i18n, developersOrContributors)
+                .isEmpty());
 
         // Several roles
         developersOrContributors.clear();
 
         dev = new Developer();
-        dev.setId( "dev1" );
-        dev.addRole( " MAINTAINER" );
-        dev.addRole( "tesTER " );
-        dev.addRole( "blabla" );
-        dev.addRole( "translato r" );
-
-        developersOrContributors.add( dev );
-
-        assertTrue( DoapUtil.getContributorsWithDeveloperRole( i18n, developersOrContributors ).isEmpty() );
-        assertTrue( DoapUtil.getContributorsWithDocumenterRole( i18n, developersOrContributors ).isEmpty() );
-        assertTrue( DoapUtil.getContributorsWithHelperRole( i18n, developersOrContributors ).isEmpty() );
-        assertFalse( DoapUtil.getContributorsWithMaintainerRole( i18n, developersOrContributors ).isEmpty() );
-        assertFalse( DoapUtil.getContributorsWithTesterRole( i18n, developersOrContributors ).isEmpty() );
-        assertTrue( DoapUtil.getContributorsWithTranslatorRole( i18n, developersOrContributors ).isEmpty() );
-        assertFalse( DoapUtil.getContributorsWithUnknownRole( i18n, developersOrContributors ).isEmpty() );
+        dev.setId("dev1");
+        dev.addRole(" MAINTAINER");
+        dev.addRole("tesTER ");
+        dev.addRole("blabla");
+        dev.addRole("translato r");
+
+        developersOrContributors.add(dev);
+
+        assertTrue(DoapUtil.getContributorsWithDeveloperRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertTrue(DoapUtil.getContributorsWithDocumenterRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertTrue(DoapUtil.getContributorsWithHelperRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertFalse(DoapUtil.getContributorsWithMaintainerRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertFalse(DoapUtil.getContributorsWithTesterRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertTrue(DoapUtil.getContributorsWithTranslatorRole(i18n, developersOrContributors)
+                .isEmpty());
+        assertFalse(DoapUtil.getContributorsWithUnknownRole(i18n, developersOrContributors)
+                .isEmpty());
 
         // Skip emeritus role
         developersOrContributors.clear();
 
         dev = new Developer();
-        dev.setId( "dev1" );
-        dev.addRole( "maintainer" );
-        dev.addRole( "unknown" );
-
-        developersOrContributors.add( dev );
+        dev.setId("dev1");
+        dev.addRole("maintainer");
+        dev.addRole("unknown");
 
-        int sizeBeforeEmeritus = DoapUtil.getContributorsWithUnknownRole( i18n, developersOrContributors).size();
-        dev.addRole( " Emeritus" );
+        developersOrContributors.add(dev);
 
-        assertTrue( DoapUtil.getContributorsWithUnknownRole( i18n, developersOrContributors).size() == sizeBeforeEmeritus );
+        int sizeBeforeEmeritus = DoapUtil.getContributorsWithUnknownRole(i18n, developersOrContributors)
+                .size();
+        dev.addRole(" Emeritus");
 
+        assertTrue(DoapUtil.getContributorsWithUnknownRole(i18n, developersOrContributors)
+                        .size()
+                == sizeBeforeEmeritus);
     }
 
     /**
@@ -197,11 +190,9 @@ public class DoapUtilTest
      *
      * @throws Exception if any
      */
-    public void testValidate()
-        throws Exception
-    {
-        File doapFile = new File( getBasedir(), "src/test/resources/generated-doap-1.0.rdf" );
-        assertFalse( DoapUtil.validate( doapFile ).isEmpty() );
+    public void testValidate() throws Exception {
+        File doapFile = new File(getBasedir(), "src/test/resources/generated-doap-1.0.rdf");
+        assertFalse(DoapUtil.validate(doapFile).isEmpty());
     }
 
     /**
@@ -210,40 +201,39 @@ public class DoapUtilTest
      *
      * @throws Exception if any
      */
-    public void testInterpolate()
-        throws Exception
-    {
+    public void testInterpolate() throws Exception {
         License license = new License();
-        license.setName( "licenseName" );
-        license.setUrl( "licenseUrl" );
+        license.setName("licenseName");
+        license.setUrl("licenseUrl");
 
         List<Developer> developers = new ArrayList<>();
         Developer developer1 = new Developer();
-        developer1.setId( "id1" );
-        developer1.setName( "developerName1" );
-        developers.add( developer1 );
+        developer1.setId("id1");
+        developer1.setName("developerName1");
+        developers.add(developer1);
         Developer developer2 = new Developer();
-        developer2.setId( "id1" );
-        developer2.setName( "developerName2" );
-        developers.add( developer2 );
+        developer2.setId("id1");
+        developer2.setName("developerName2");
+        developers.add(developer2);
 
         MavenProject project = new MavenProject();
-        project.setName( "projectName" );
-        project.setDescription( "projectDescription" );
-        project.setLicenses( Collections.singletonList( license ) );
-        project.setDevelopers( developers );
-        project.getProperties().put( "myKey", "myValue" );
-
-        assertEquals( DoapUtil.interpolate( "${project.name}", project, null ), "projectName" );
-        assertEquals( DoapUtil.interpolate( "my name is ${project.name}", project, null ), "my name is projectName" );
-        assertEquals( DoapUtil.interpolate( "my name is ${project.invalid}", project, null ), "my name is ${project.invalid}" );
-        assertEquals( DoapUtil.interpolate( "${pom.description}", project, null ), "projectDescription" );
-        assertNull( DoapUtil.interpolate( "${project.licenses.name}", project, null ) );
-        assertEquals( DoapUtil.interpolate( "${project.licenses[0].name}", project, null ), "licenseName" );
-        assertNull( DoapUtil.interpolate( "${project.licenses[1].name}", project, null ) );
-        assertNotNull( DoapUtil.interpolate( "${project.developers}", project, null ) );
-        assertEquals( DoapUtil.interpolate( "${project.developers[0].name}", project, null ), "developerName1" );
-        assertEquals( DoapUtil.interpolate( "${project.developers[1].name}", project, null ), "developerName2" );
-        assertEquals( DoapUtil.interpolate( "${myKey}", project, null ), "myValue" );
+        project.setName("projectName");
+        project.setDescription("projectDescription");
+        project.setLicenses(Collections.singletonList(license));
+        project.setDevelopers(developers);
+        project.getProperties().put("myKey", "myValue");
+
+        assertEquals(DoapUtil.interpolate("${project.name}", project, null), "projectName");
+        assertEquals(DoapUtil.interpolate("my name is ${project.name}", project, null), "my name is projectName");
+        assertEquals(
+                DoapUtil.interpolate("my name is ${project.invalid}", project, null), "my name is ${project.invalid}");
+        assertEquals(DoapUtil.interpolate("${pom.description}", project, null), "projectDescription");
+        assertNull(DoapUtil.interpolate("${project.licenses.name}", project, null));
+        assertEquals(DoapUtil.interpolate("${project.licenses[0].name}", project, null), "licenseName");
+        assertNull(DoapUtil.interpolate("${project.licenses[1].name}", project, null));
+        assertNotNull(DoapUtil.interpolate("${project.developers}", project, null));
+        assertEquals(DoapUtil.interpolate("${project.developers[0].name}", project, null), "developerName1");
+        assertEquals(DoapUtil.interpolate("${project.developers[1].name}", project, null), "developerName2");
+        assertEquals(DoapUtil.interpolate("${myKey}", project, null), "myValue");
     }
 }
diff --git a/src/test/java/org/apache/maven/plugin/doap/stubs/AsfDoapProjectStub.java b/src/test/java/org/apache/maven/plugin/doap/stubs/AsfDoapProjectStub.java
index e5562ef..0d7495c 100644
--- a/src/test/java/org/apache/maven/plugin/doap/stubs/AsfDoapProjectStub.java
+++ b/src/test/java/org/apache/maven/plugin/doap/stubs/AsfDoapProjectStub.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugin.doap.stubs;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -18,6 +16,7 @@ package org.apache.maven.plugin.doap.stubs;
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.maven.plugin.doap.stubs;
 
 import java.io.File;
 import java.util.Collections;
@@ -40,95 +39,78 @@ import org.codehaus.plexus.util.ReaderFactory;
 /**
  * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
  */
-public class AsfDoapProjectStub
-    extends MavenProjectStub
-{
+public class AsfDoapProjectStub extends MavenProjectStub {
     private Model model;
 
     /**
      * Default constructor
      */
-    public AsfDoapProjectStub()
-    {
+    public AsfDoapProjectStub() {
         MavenXpp3Reader pomReader = new MavenXpp3Reader();
-        try
-        {
-            model =
-                pomReader.read( ReaderFactory.newXmlReader( new File(
-                                                                      new File( super.getBasedir(),
-                                                                                "/src/test/resources/unit/asf-doap-configuration/" ),
-                                                                      "asf-doap-configuration-plugin-config.xml" ) ) );
-            setModel( model );
-        }
-        catch ( Exception e )
-        {
-            throw new RuntimeException( e );
+        try {
+            model = pomReader.read(ReaderFactory.newXmlReader(new File(
+                    new File(super.getBasedir(), "/src/test/resources/unit/asf-doap-configuration/"),
+                    "asf-doap-configuration-plugin-config.xml")));
+            setModel(model);
+        } catch (Exception e) {
+            throw new RuntimeException(e);
         }
 
-        setGroupId( model.getGroupId() );
-        setArtifactId( model.getArtifactId() );
-        setVersion( model.getVersion() );
-        setName( model.getName() );
-        setDescription( model.getDescription() );
-        setUrl( model.getUrl() );
-        setPackaging( model.getPackaging() );
-        setDevelopers( model.getDevelopers() );
+        setGroupId(model.getGroupId());
+        setArtifactId(model.getArtifactId());
+        setVersion(model.getVersion());
+        setName(model.getName());
+        setDescription(model.getDescription());
+        setUrl(model.getUrl());
+        setPackaging(model.getPackaging());
+        setDevelopers(model.getDevelopers());
     }
 
     @Override
-    public List<Developer> getDevelopers()
-    {
+    public List<Developer> getDevelopers() {
         return model.getDevelopers();
     }
 
     @Override
-    public List<License> getLicenses()
-    {
+    public List<License> getLicenses() {
         return model.getLicenses();
     }
 
     @Override
-    public Organization getOrganization()
-    {
+    public Organization getOrganization() {
         return model.getOrganization();
     }
 
     @Override
-    public Scm getScm()
-    {
+    public Scm getScm() {
         return model.getScm();
     }
 
     @Override
-    public IssueManagement getIssueManagement()
-    {
+    public IssueManagement getIssueManagement() {
         return model.getIssueManagement();
     }
 
     @Override
-    public String getDescription()
-    {
+    public String getDescription() {
         return model.getDescription();
     }
 
     @Override
-    public String getInceptionYear()
-    {
+    public String getInceptionYear() {
         return model.getInceptionYear();
     }
 
     @Override
-    public DistributionManagement getDistributionManagement()
-    {
+    public DistributionManagement getDistributionManagement() {
         return model.getDistributionManagement();
     }
 
     @Override
-    public List<ArtifactRepository> getRemoteArtifactRepositories()
-    {
-        ArtifactRepository repository =
-            new DefaultArtifactRepository( "central", "https://repo.maven.apache.org/maven2", new DefaultRepositoryLayout() );
+    public List<ArtifactRepository> getRemoteArtifactRepositories() {
+        ArtifactRepository repository = new DefaultArtifactRepository(
+                "central", "https://repo.maven.apache.org/maven2", new DefaultRepositoryLayout());
 
-        return Collections.singletonList( repository );
+        return Collections.singletonList(repository);
     }
 }
diff --git a/src/test/java/org/apache/maven/plugin/doap/stubs/DoapProjectStub.java b/src/test/java/org/apache/maven/plugin/doap/stubs/DoapProjectStub.java
index d57880b..c256647 100644
--- a/src/test/java/org/apache/maven/plugin/doap/stubs/DoapProjectStub.java
+++ b/src/test/java/org/apache/maven/plugin/doap/stubs/DoapProjectStub.java
@@ -1,5 +1,3 @@
-package org.apache.maven.plugin.doap.stubs;
-
 /*
  * Licensed to the Apache Software Foundation (ASF) under one
  * or more contributor license agreements.  See the NOTICE file
@@ -18,6 +16,7 @@ package org.apache.maven.plugin.doap.stubs;
  * specific language governing permissions and limitations
  * under the License.
  */
+package org.apache.maven.plugin.doap.stubs;
 
 import java.io.File;
 import java.util.Collections;
@@ -42,103 +41,85 @@ import org.codehaus.plexus.util.xml.XmlStreamReader;
 /**
  * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
  */
-public class DoapProjectStub
-    extends MavenProjectStub
-{
+public class DoapProjectStub extends MavenProjectStub {
     private Model model;
 
     /**
      * Default constructor
      */
-    public DoapProjectStub()
-    {
+    public DoapProjectStub() {
         MavenXpp3Reader pomReader = new MavenXpp3Reader();
         XmlStreamReader reader = null;
-        try
-        {
-            reader = ReaderFactory.newXmlReader(
-                new File( new File( super.getBasedir(), "/src/test/resources/unit/doap-configuration/" ),
-                          "doap-configuration-plugin-config.xml" ) );
-            model =
-                pomReader.read( reader );
-            setModel( model );
+        try {
+            reader = ReaderFactory.newXmlReader(new File(
+                    new File(super.getBasedir(), "/src/test/resources/unit/doap-configuration/"),
+                    "doap-configuration-plugin-config.xml"));
+            model = pomReader.read(reader);
+            setModel(model);
 
             reader.close();
             reader = null;
-        }
-        catch ( Exception e )
-        {
-            throw new RuntimeException( e );
-        }
-        finally
-        {
-            IOUtil.close( reader );
+        } catch (Exception e) {
+            throw new RuntimeException(e);
+        } finally {
+            IOUtil.close(reader);
         }
 
-        setGroupId( model.getGroupId() );
-        setArtifactId( model.getArtifactId() );
-        setVersion( model.getVersion() );
-        setName( model.getName() );
-        setDescription( model.getDescription() );
-        setUrl( model.getUrl() );
-        setPackaging( model.getPackaging() );
-        setDevelopers( model.getDevelopers() );
+        setGroupId(model.getGroupId());
+        setArtifactId(model.getArtifactId());
+        setVersion(model.getVersion());
+        setName(model.getName());
+        setDescription(model.getDescription());
+        setUrl(model.getUrl());
+        setPackaging(model.getPackaging());
+        setDevelopers(model.getDevelopers());
     }
 
     @Override
-    public List<Developer> getDevelopers()
-    {
+    public List<Developer> getDevelopers() {
         return model.getDevelopers();
     }
 
     @Override
-    public String getDescription()
-    {
+    public String getDescription() {
         return model.getDescription();
     }
 
     @Override
-    public String getInceptionYear()
-    {
+    public String getInceptionYear() {
         return model.getInceptionYear();
     }
 
     @Override
-    public List<License> getLicenses()
-    {
+    public List<License> getLicenses() {
         return model.getLicenses();
     }
 
     @Override
-    public Scm getScm()
-    {
+    public Scm getScm() {
         return model.getScm();
     }
 
     @Override
-    public IssueManagement getIssueManagement()
-    {
+    public IssueManagement getIssueManagement() {
         return model.getIssueManagement();
     }
 
     @Override
-    public DistributionManagement getDistributionManagement()
-    {
+    public DistributionManagement getDistributionManagement() {
         return model.getDistributionManagement();
     }
 
     @Override
-    public Organization getOrganization()
-    {
+    public Organization getOrganization() {
         return model.getOrganization();
     }
 
     @Override
-    public List<ArtifactRepository> getRemoteArtifactRepositories()
-    {
-        ArtifactRepository repository =
-            new DefaultArtifactRepository( "central", "https://repo.maven.apache.org/maven2", new DefaultRepositoryLayout() );
+    public List<ArtifactRepository> getRemoteArtifactRepositories() {
+        ArtifactRepository repository = new DefaultArtifactRepository(
+                "central", "https://repo.maven.apache.org/maven2", new DefaultRepositoryLayout());
 
-        return Collections.singletonList( repository );
+        return Collections.singletonList(repository);
     }
 }