Hi,

I see. If it's more of a style problem and not a compilation problem, I
should be able to just disable it for now so it can compile (at least for
now).  Where would I find the configuration for the maven-checkstyle-plugin?

Thanks,
Steven


Berentsen, Jon Georg wrote:
> 
> 
> Hi, 
> 
> I think you have found the projects dirty laundry, but then again, every
> project have dirty laundry.
> It's pretty common for a project to have checkstyle errors in the code,
> especially if it's code from the trunk.
> Checkstyle is more of a project health problem, than say a comilation
> problem, considered fatal by all parties, including the java compiler.
> You still get a excellent product, but there may be som trouble here and
> there dealing with this code later on. Ex. it's not easy to extend or
> subclass.
> 
> Running checkstyle on any major or minor open source project out there
> would cause errors.
> There is quite a few talks on this problems over at InfoQ.com and other
> places.
> 
> How to fix them?
> One by one, dude. :)
> 
> Jon
>   
> 
> Den 15. des. 2010 kl. 02.04 skrev medikgt:
> 
>> 
>> 
>> When building magnolia-core with Maven, I got the error message below
>> saying
>> there are 160 checkstyle violations.  How do I correct these?  I haven't
>> changed anything in the code yet since check out.
>> 
>> [INFO] There are 160 checkstyle errors.
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO] 
>> [INFO] magnolia-project .................................. SUCCESS
>> [4.875s]
>> [INFO] magnolia-core ..................................... FAILURE
>> [40.767s]
>> [INFO] magnolia-jaas ..................................... SKIPPED
>> [INFO] magnolia-gui ...................................... SKIPPED
>> [INFO] magnolia-module-templating ........................ SKIPPED
>> [INFO] magnolia-module-exchange-simple ................... SKIPPED
>> [INFO] magnolia-module-admininterface .................... SKIPPED
>> [INFO] Magnolia REST API ................................. SKIPPED
>> [INFO] magnolia-module-fckeditor ......................... SKIPPED
>> [INFO] magnolia-module-cache ............................. SKIPPED
>> [INFO] magnolia-module-admincentral-vaadin ............... SKIPPED
>> [INFO] magnolia-module-templating-components ............. SKIPPED
>> [INFO] CMS Tag Library ................................... SKIPPED
>> [INFO] magnolia-module-mail .............................. SKIPPED
>> [INFO] CMS Utility Tag Library ........................... SKIPPED
>> [INFO] magnolia-module-workflow .......................... SKIPPED
>> [INFO] magnolia-module-samples ........................... SKIPPED
>> [INFO] magnolia-module-store-client ...................... SKIPPED
>> [INFO] magnolia-module-wcm ............................... SKIPPED
>> [INFO] magnolia-empty-webapp ............................. SKIPPED
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 47.220s
>> [INFO] Finished at: Tue Dec 14 13:11:20 PST 2010
>> [INFO] Final Memory: 23M/53M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-checkstyle-plugin:2.6:check (default) on
>> project magnolia-core: You have 160 Checkstyle violations. -> [Help 1]
>> [ERROR] 
>> [ERROR] To see the full stack trace of the errors, re-run Maven with the
>> -e
>> switch.
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR] 
>> [ERROR] For more information about the errors and possible solutions,
>> please
>> read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
>> [ERROR] 
>> [ERROR] After correcting the problems, you can resume the build with the
>> command
>> [ERROR]   mvn <goals> -rf :magnolia-core
>> -- 
>> View this message in context:
>> http://old.nabble.com/Maven-Checkstyle-Error-tp30460236p30460236.html
>> Sent from the Magnolia - User mailing list archive at Nabble.com.
>> 
>> 
>> 
>> ----------------------------------------------------------------
>> For list details see
>> http://www.magnolia-cms.com/home/community/mailing-lists.html
>> To unsubscribe, E-mail to: <[email protected]>
>> ----------------------------------------------------------------
>> 
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Maven-Checkstyle-Error-tp30460236p30461634.html
Sent from the Magnolia - User mailing list archive at Nabble.com.



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to