Как исключить пакеты из анализа CheckStyle в многомодульном проекте?JAVA

Программисты JAVA общаются здесь
Anonymous
Как исключить пакеты из анализа CheckStyle в многомодульном проекте?

Сообщение Anonymous »

У меня есть проект Maven с несколькими модулями, включая org.eclipse.cdt.core. For some reason, the customer wants to build org.eclipse.cdt.core as well.

I want to generate an aggregated Checkstyle report, from which some files, including all org.eclipse.cdt.core.* (incl. subpackages) classes are excluded.

For this purpose, I specified the excludes tag as

Код: Выделить всё

**/org/eclipse/cdt/core/**/*,org.eclipse.cdt.core/src/**/*,../org.eclipse.cdt.core/src/**/*,org.eclipse.cdt.core/**/*
Then I ran mvn clean checkstyle-aggregate site, opened the file target/checkstyle-result.xml and found following lines in it:
Это означает, что мой тег не работает.

Затем я помещаю строки
into pom.xml files of all modules to be excluded from Checkstyle, but it didn't help.

How can I generate a CheckStyle report (XML or HTML), without the results for certain modules (other than taking the 180 MB large target/checkstyle-result.xml and removing all "wrong" file enries from there) ?

Код: Выделить всё

    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
mycompany-parentproject
com.mycompany.parent
1.0.0-SNAPSHOT
pom


0.21.0
0.21.0
UTF-8
1.7




Codehaus repository
http://repository.codehaus.org/





${project.artifactId}-site
${project.baseUri}




Вернуться в «JAVA»