понедельник, 30 июня 2008 г.

Maven 2 - Site Plugin Specifics

Recently I've tried to use CheckStyle plugin for Maven 2 and had the following problem.

I've followed basic instructions on plugin setup here, but when executing
mvn site the following error appeared on the screen:

[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error parsing site descriptor

Embedded error: expected = after attribute name (position: START_DOCUMENT seen ...mitations\r\nunder the License.\r\n-->\r\n\r\n

Now let's look at how I've defined the name of the module in pom.xml:

<name>"flushpongle" Framework</name>

Soon it became obvious that the cause of the problem is double quotes which are present in the module name. Module name is taken 'as is' for the attribute value inside the root element of project site descriptor XML. After removing the double quotes plugin started working normally.

Afterwards I've identified that it wasn't the problem of CheckStyle plugin, it was the problem of Site plugin, because after removing reporting section and keeping double quotes characters in the module name I've got the same error as before. So I decided to open an item in Codehaus JIRA of Maven 2 Site plugin.

Комментариев нет: