You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Eric Pugh <ep...@upstate.com> on 2003/09/28 17:36:14 UTC

CheckStyle and Multiproject plugin?

Hi all,

when running the maven multiproject plugin, any project with checkstyle as a
report fails:
BUILD FAILED
File......
file:/c:/java/maven/plugins/maven-multiproject-plugin-1.1-SNAPSHOT/
Element... maven:reactor
Line...... 69
Column.... 7
Unable to obtain goal [site] --
file:/c:/java/maven/plugins/maven-checkstyle-plu
gin-2.1-SNAPSHOT/:127:65: <ant:checkstyle> Unable to create a Checker:
unable to
 parse C:\clients\Upstate\catalog\project.properties - Content is not
allowed in
 prolog.:1:1
Total time: 22 seconds
Finished at: Sun Sep 28 17:35:00 CEST 2003

What is this content is not allowed in prolog error that I keep getting?

ERic Pugh


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: CheckStyle and Multiproject plugin?

Posted by Phil Steitz <ph...@steitz.com>.
I don't know exactly what causes this problem, but I suspect it is the 
old properties file format.  I eliminated this problem by removing all 
checkstyle.properties files from subprojects, putting an xml-formatted 
checkstyle.xml file in the top level project directory and setting 
maven.checkstyle.properties=checkstyle.xml in the top level project.xml 
and maven.checkstyle.properties=${basedir}/../checkstyle.xml in the 
subprojects project.xml files.

Phil

Eric Pugh wrote:
> Hi all,
> 
> when running the maven multiproject plugin, any project with checkstyle as a
> report fails:
> BUILD FAILED
> File......
> file:/c:/java/maven/plugins/maven-multiproject-plugin-1.1-SNAPSHOT/
> Element... maven:reactor
> Line...... 69
> Column.... 7
> Unable to obtain goal [site] --
> file:/c:/java/maven/plugins/maven-checkstyle-plu
> gin-2.1-SNAPSHOT/:127:65: <ant:checkstyle> Unable to create a Checker:
> unable to
>  parse C:\clients\Upstate\catalog\project.properties - Content is not
> allowed in
>  prolog.:1:1
> Total time: 22 seconds
> Finished at: Sun Sep 28 17:35:00 CEST 2003
> 
> What is this content is not allowed in prolog error that I keep getting?
> 
> ERic Pugh
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: CheckStyle and Multiproject plugin?

Posted by di...@multitask.com.au.
You're using a properties file instead of the required XML file for 
checkstyle.
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/


"Eric Pugh" <ep...@upstate.com> wrote on 29/09/2003 01:36:14 AM:

> Hi all,
> 
> when running the maven multiproject plugin, any project with checkstyle 
as a
> report fails:
> BUILD FAILED
> File......
> file:/c:/java/maven/plugins/maven-multiproject-plugin-1.1-SNAPSHOT/
> Element... maven:reactor
> Line...... 69
> Column.... 7
> Unable to obtain goal [site] --
> file:/c:/java/maven/plugins/maven-checkstyle-plu
> gin-2.1-SNAPSHOT/:127:65: <ant:checkstyle> Unable to create a Checker:
> unable to
>  parse C:\clients\Upstate\catalog\project.properties - Content is not
> allowed in
>  prolog.:1:1
> Total time: 22 seconds
> Finished at: Sun Sep 28 17:35:00 CEST 2003
> 
> What is this content is not allowed in prolog error that I keep getting?
> 
> ERic Pugh
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org