You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by John Coleman <jo...@eurobase.com> on 2009/03/27 12:32:12 UTC

Checktyle report incomplete

Hi,

When I run the command below I only get checkstyle reports for 2 classes
in the project, and the class I have named is missed out. Why isn't the
file I have referred to used? Perhaps I cannot put maven properties on
the command line, who knows?

mvn -Dmaven.checkstyle.includes=**/Named.java compile pre-site
checkstyle:checkstyle

TIA,
John

Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. 

Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited.  If you receive this transmission in error, please notify us immediately, and then delete this E-mail. 

Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments.

Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.


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


Re: Checktyle report incomplete

Posted by Dennis Lundberg <de...@apache.org>.
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#includes

You should use this command instead:

mvn -Dcheckstyle.includes=**/Named.java compile pre-site
checkstyle:checkstyle

John Coleman wrote:
> Hi,
> 
> When I run the command below I only get checkstyle reports for 2 classes
> in the project, and the class I have named is missed out. Why isn't the
> file I have referred to used? Perhaps I cannot put maven properties on
> the command line, who knows?
> 
> mvn -Dmaven.checkstyle.includes=**/Named.java compile pre-site
> checkstyle:checkstyle
> 
> TIA,
> John
> 
> Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. 
> 
> Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited.  If you receive this transmission in error, please notify us immediately, and then delete this E-mail. 
> 
> Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments.
> 
> Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


-- 
Dennis Lundberg


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


RE: Checktyle report incomplete

Posted by John Coleman <jo...@eurobase.com>.
Thanks, but I don't think that works Dennis.

Here is a DOS example including the pmd:pmd goal. The result is not that
the App1 class gets PMDed, instead the App.java class gets PMDed? The
PMD doesn't have an expression for includes so I just tried the
parameter name as suggested - I think that can only work in a plugin
configuration of the pom.

set INCLUDES=com/eurobase/mavenproject/App1.java
set TEST_INCLUDES=com/eurobase/mavenproject/AppTest.java

set MAVEN_OPTS=-Dcheckstyle.includes=%INCLUDES% -Dtest=%TEST_INCLUDES%
-Dincludes=%INCLUDES%

mvn clean compile test-compile pre-site checkstyle:checkstyle pmd:pmd
surefire:test

TIA,
John
 

> -----Original Message-----
> From: Dennis Lundberg [mailto:dennisl@apache.org] 
> Sent: 31 March 2009 20:20
> To: Maven Users List
> Subject: Re: Checktyle report incomplete
> 
> John Coleman wrote:
> > Yes that works, many thanks.
> > 
> > Are there similar ways to do this for the PMD report and 
> Corbertura? 
> > It would be nice if the reporting plugins were more consistent.
> 
> Yes, check out the "Goals" link on a plugins site and then 
> follow the link to the goal you want to use. If you see an 
> "Expression", then that what you'd use on the command line. 
> If there is no "Expression" then you use the name of the 
> parameter itself.
> 
> http://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html
#includes
> 
> This is not available for Cobertura though.
> 
> > TIA
> > John
> >  
> > 
> >> -----Original Message-----
> >> From: Dennis Lundberg [mailto:dennisl.apache@gmail.com] On 
> Behalf Of 
> >> Dennis Lundberg
> >> Sent: 28 March 2009 17:06
> >> To: Maven Users List
> >> Subject: Re: Checktyle report incomplete
> >>
> >> http://maven.apache.org/plugins/maven-checkstyle-plugin/checks
> > tyle-mojo.html#includes
> >> You should use this command instead:
> >>
> >> mvn -Dcheckstyle.includes=**/Named.java compile pre-site 
> >> checkstyle:checkstyle
> >>
> >> John Coleman wrote:
> >>> Hi,
> >>>
> >>> When I run the command below I only get checkstyle reports for 2 
> >>> classes in the project, and the class I have named is
> >> missed out. Why
> >>> isn't the file I have referred to used? Perhaps I cannot 
> put maven 
> >>> properties on the command line, who knows?
> >>>
> >>> mvn -Dmaven.checkstyle.includes=**/Named.java compile pre-site 
> >>> checkstyle:checkstyle
> >>>
> >>> TIA,
> >>> John
> >>>
> >>> Eurobase International Limited and its subsidiaries
> >> (Eurobase) are unable to exercise control over the content of 
> >> information in E-Mails. Any views and opinions expressed may be 
> >> personal to the sender and are not necessarily those of Eurobase. 
> >> Eurobase will not enter into any contractual obligations 
> in respect 
> >> of any part of its business in any E-mail.
> >>> Privileged / confidential information may be contained in
> >> this message and /or any attachments. This E-mail is 
> intended for the 
> >> use of the addressee(s) only and may contain confidential 
> >> information. If you are not the / an intended recipient, you are 
> >> hereby notified that any use or dissemination of this 
> communication 
> >> is strictly prohibited.
> >> If you receive this transmission in error, please notify us 
> >> immediately, and then delete this E-mail.
> >>> Neither the sender nor Eurobase accepts any liability
> >> whatsoever for any defects of any kind either in or 
> arising from this 
> >> E-mail transmission. E-Mail transmission cannot be 
> guaranteed to be 
> >> secure or error-free, as messages can be intercepted, lost, 
> >> corrupted, destroyed, contain viruses, or arrive late or 
> incomplete. 
> >> Eurobase does not accept any responsibility for viruses and it is 
> >> your responsibility to scan any attachments.
> >>> Eurobase Systems Limited is the main trading company in the
> >> Eurobase International Group; registered in England and Wales as 
> >> company number 02251162; registered address: Essex House,
> >> 2 County Place, Chelmsford, Essex CM2 0RE, UK.
> >>>
> >>>
> >> 
> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >>> For additional commands, e-mail: users-help@maven.apache.org
> >>>
> >>>
> >>
> >> --
> >> Dennis Lundberg
> >>
> >> 
> ---------------------------------------------------------------------
> >> 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
> > 
> > 
> 
> 
> --
> Dennis Lundberg
> 
> ---------------------------------------------------------------------
> 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: Checktyle report incomplete

Posted by Dennis Lundberg <de...@apache.org>.
John Coleman wrote:
> Yes that works, many thanks.
> 
> Are there similar ways to do this for the PMD report and Corbertura? It
> would be nice if the reporting plugins were more consistent.

Yes, check out the "Goals" link on a plugins site and then follow the
link to the goal you want to use. If you see an "Expression", then that
what you'd use on the command line. If there is no "Expression" then you
use the name of the parameter itself.

http://maven.apache.org/plugins/maven-pmd-plugin/pmd-mojo.html#includes

This is not available for Cobertura though.

> TIA
> John
>  
> 
>> -----Original Message-----
>> From: Dennis Lundberg [mailto:dennisl.apache@gmail.com] On 
>> Behalf Of Dennis Lundberg
>> Sent: 28 March 2009 17:06
>> To: Maven Users List
>> Subject: Re: Checktyle report incomplete
>>
>> http://maven.apache.org/plugins/maven-checkstyle-plugin/checks
> tyle-mojo.html#includes
>> You should use this command instead:
>>
>> mvn -Dcheckstyle.includes=**/Named.java compile pre-site 
>> checkstyle:checkstyle
>>
>> John Coleman wrote:
>>> Hi,
>>>
>>> When I run the command below I only get checkstyle reports for 2 
>>> classes in the project, and the class I have named is 
>> missed out. Why 
>>> isn't the file I have referred to used? Perhaps I cannot put maven 
>>> properties on the command line, who knows?
>>>
>>> mvn -Dmaven.checkstyle.includes=**/Named.java compile pre-site 
>>> checkstyle:checkstyle
>>>
>>> TIA,
>>> John
>>>
>>> Eurobase International Limited and its subsidiaries 
>> (Eurobase) are unable to exercise control over the content of 
>> information in E-Mails. Any views and opinions expressed may 
>> be personal to the sender and are not necessarily those of 
>> Eurobase. Eurobase will not enter into any contractual 
>> obligations in respect of any part of its business in any E-mail. 
>>> Privileged / confidential information may be contained in 
>> this message and /or any attachments. This E-mail is intended 
>> for the use of the addressee(s) only and may contain 
>> confidential information. If you are not the / an intended 
>> recipient, you are hereby notified that any use or 
>> dissemination of this communication is strictly prohibited.  
>> If you receive this transmission in error, please notify us 
>> immediately, and then delete this E-mail. 
>>> Neither the sender nor Eurobase accepts any liability 
>> whatsoever for any defects of any kind either in or arising 
>> from this E-mail transmission. E-Mail transmission cannot be 
>> guaranteed to be secure or error-free, as messages can be 
>> intercepted, lost, corrupted, destroyed, contain viruses, or 
>> arrive late or incomplete. Eurobase does not accept any 
>> responsibility for viruses and it is your responsibility to 
>> scan any attachments.
>>> Eurobase Systems Limited is the main trading company in the 
>> Eurobase International Group; registered in England and Wales 
>> as company number 02251162; registered address: Essex House, 
>> 2 County Place, Chelmsford, Essex CM2 0RE, UK.
>>>
>>>
>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> --
>> Dennis Lundberg
>>
>> ---------------------------------------------------------------------
>> 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
> 
> 


-- 
Dennis Lundberg

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


RE: Checktyle report incomplete

Posted by John Coleman <jo...@eurobase.com>.
Yes that works, many thanks.

Are there similar ways to do this for the PMD report and Corbertura? It
would be nice if the reporting plugins were more consistent.

TIA
John
 

> -----Original Message-----
> From: Dennis Lundberg [mailto:dennisl.apache@gmail.com] On 
> Behalf Of Dennis Lundberg
> Sent: 28 March 2009 17:06
> To: Maven Users List
> Subject: Re: Checktyle report incomplete
> 
> http://maven.apache.org/plugins/maven-checkstyle-plugin/checks
tyle-mojo.html#includes
> 
> You should use this command instead:
> 
> mvn -Dcheckstyle.includes=**/Named.java compile pre-site 
> checkstyle:checkstyle
> 
> John Coleman wrote:
> > Hi,
> > 
> > When I run the command below I only get checkstyle reports for 2 
> > classes in the project, and the class I have named is 
> missed out. Why 
> > isn't the file I have referred to used? Perhaps I cannot put maven 
> > properties on the command line, who knows?
> > 
> > mvn -Dmaven.checkstyle.includes=**/Named.java compile pre-site 
> > checkstyle:checkstyle
> > 
> > TIA,
> > John
> > 
> > Eurobase International Limited and its subsidiaries 
> (Eurobase) are unable to exercise control over the content of 
> information in E-Mails. Any views and opinions expressed may 
> be personal to the sender and are not necessarily those of 
> Eurobase. Eurobase will not enter into any contractual 
> obligations in respect of any part of its business in any E-mail. 
> > 
> > Privileged / confidential information may be contained in 
> this message and /or any attachments. This E-mail is intended 
> for the use of the addressee(s) only and may contain 
> confidential information. If you are not the / an intended 
> recipient, you are hereby notified that any use or 
> dissemination of this communication is strictly prohibited.  
> If you receive this transmission in error, please notify us 
> immediately, and then delete this E-mail. 
> > 
> > Neither the sender nor Eurobase accepts any liability 
> whatsoever for any defects of any kind either in or arising 
> from this E-mail transmission. E-Mail transmission cannot be 
> guaranteed to be secure or error-free, as messages can be 
> intercepted, lost, corrupted, destroyed, contain viruses, or 
> arrive late or incomplete. Eurobase does not accept any 
> responsibility for viruses and it is your responsibility to 
> scan any attachments.
> > 
> > Eurobase Systems Limited is the main trading company in the 
> Eurobase International Group; registered in England and Wales 
> as company number 02251162; registered address: Essex House, 
> 2 County Place, Chelmsford, Essex CM2 0RE, UK.
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> > 
> > 
> 
> 
> --
> Dennis Lundberg
> 
> ---------------------------------------------------------------------
> 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: Checktyle report incomplete

Posted by Dennis Lundberg <de...@apache.org>.
http://maven.apache.org/plugins/maven-checkstyle-plugin/checkstyle-mojo.html#includes

You should use this command instead:

mvn -Dcheckstyle.includes=**/Named.java compile pre-site
checkstyle:checkstyle

John Coleman wrote:
> Hi,
> 
> When I run the command below I only get checkstyle reports for 2 classes
> in the project, and the class I have named is missed out. Why isn't the
> file I have referred to used? Perhaps I cannot put maven properties on
> the command line, who knows?
> 
> mvn -Dmaven.checkstyle.includes=**/Named.java compile pre-site
> checkstyle:checkstyle
> 
> TIA,
> John
> 
> Eurobase International Limited and its subsidiaries (Eurobase) are unable to exercise control over the content of information in E-Mails. Any views and opinions expressed may be personal to the sender and are not necessarily those of Eurobase. Eurobase will not enter into any contractual obligations in respect of any part of its business in any E-mail. 
> 
> Privileged / confidential information may be contained in this message and /or any attachments. This E-mail is intended for the use of the addressee(s) only and may contain confidential information. If you are not the / an intended recipient, you are hereby notified that any use or dissemination of this communication is strictly prohibited.  If you receive this transmission in error, please notify us immediately, and then delete this E-mail. 
> 
> Neither the sender nor Eurobase accepts any liability whatsoever for any defects of any kind either in or arising from this E-mail transmission. E-Mail transmission cannot be guaranteed to be secure or error-free, as messages can be intercepted, lost, corrupted, destroyed, contain viruses, or arrive late or incomplete. Eurobase does not accept any responsibility for viruses and it is your responsibility to scan any attachments.
> 
> Eurobase Systems Limited is the main trading company in the Eurobase International Group; registered in England and Wales as company number 02251162; registered address: Essex House, 2 County Place, Chelmsford, Essex CM2 0RE, UK.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 


-- 
Dennis Lundberg

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