[
https://jira.codehaus.org/browse/MCHECKSTYLE-225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=343044#comment-343044
]
Diwaker Gupta commented on MCHECKSTYLE-225:
-------------------------------------------
The plugin config looks like:
{noformat}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>${checkstyle.version}</version>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>build-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<configuration>
<excludes>**/package-info.java</excludes>
<configLocation>maginatics/checkstyle.xml</configLocation>
<headerLocation>maginatics/copyright_header.txt</headerLocation>
<suppressionsLocation>maginatics/checkstyle-suppressions.xml</suppressionsLocation>
<propertyExpansion>config_loc=/maginatics</propertyExpansion>
<includeTestSourceDirectory>true</includeTestSourceDirectory>
<violationSeverity>warning</violationSeverity>
</configuration>
</plugin>
{noformat}
> headerLocation no longer sets checkstyle.header.file
> ----------------------------------------------------
>
> Key: MCHECKSTYLE-225
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-225
> Project: Maven Checkstyle Plugin
> Issue Type: Bug
> Affects Versions: 2.12
> Environment: JDK 7u51 on OS X with Maven 3.1.0
> Reporter: Diwaker Gupta
>
> We use a multi-module configuration as described at
> https://maven.apache.org/plugins/maven-checkstyle-plugin/examples/multi-module-config.html
> This morning I tried upgraded to checkstyle-plugin 2.12 and our builds
> started failing with:
> {noformat}
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-checkstyle-plugin:2.12:check (default-cli) on
> project common: Failed during checkstyle execution: Failed during checkstyle
> configuration: unable to read /path/to/common/target/checkstyle-checker.xml -
> unable to parse configuration stream - Property ${checkstyle.header.file} has
> not been set -> [Help 1]
> {noformat}
> Our config hasn't changed in almost two years. We are currently using v2.11
> so this seems like a regression in 2.12
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)