Discussion:
maven 2.0.4 & Checkstyle 4.1: Unable to process header location
Dongsheng Song
2006-06-23 09:12:39 UTC
Permalink
mvn -e checkstyle:checkstyle

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'checkstyle'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building nova
[INFO] task-segment: [checkstyle:checkstyle]
[INFO] ----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
[INFO] Velocimacro : error using VM library template VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [checkstyle:checkstyle]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An error has occurred in Checkstyle report generation.

Embedded error: Unable to process header location.
Destination file has no content.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error has occurred in Checkstyle report generation.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error has occurred in Checkstyle report generation.
at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: org.apache.maven.reporting.MavenReportException: Unable to process header location.
at org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:881)
at org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:467)
at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
... 18 more
Caused by: java.io.IOException: Destination file has no content.
at org.apache.maven.plugin.checkstyle.Locator.resolveLocation(Locator.java:139)
at org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:873)
... 21 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Jun 23 17:09:41 CST 2006
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------

Thanks for some help.

PS: here is my pom.xml snippet:

...
<dependency>
<groupId>checkstyle</groupId>
<artifactId>checkstyle</artifactId>
<version>4.1</version>
</dependency>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>sun_checks.xml</configLocation>
</configuration>
</plugin>
...
Carlos Sanchez
2006-06-23 11:08:37 UTC
Permalink
You can check the output of -X, but i think it's just that file
doesn't exist. IIRC is config/sun_checks.xml
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
mvn -e checkstyle:checkstyle
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'checkstyle'.
[INFO] ----------------------------------------------------------------------------
[INFO] Building nova
[INFO] task-segment: [checkstyle:checkstyle]
[INFO] ----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
[INFO] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
[INFO] Resource Loader Instantiated: org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Include
[INFO] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template : VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
org.apache.velocity.exception.ResourceNotFoundException: Unable to find resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [checkstyle:checkstyle]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] An error has occurred in Checkstyle report generation.
Embedded error: Unable to process header location.
Destination file has no content.
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error has occurred in Checkstyle report generation.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error has occurred in Checkstyle report generation.
at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: org.apache.maven.reporting.MavenReportException: Unable to process header location.
at org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:881)
at org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:467)
at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
... 18 more
Caused by: java.io.IOException: Destination file has no content.
at org.apache.maven.plugin.checkstyle.Locator.resolveLocation(Locator.java:139)
at org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties(CheckstyleReport.java:873)
... 21 more
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Jun 23 17:09:41 CST 2006
[INFO] Final Memory: 4M/8M
[INFO] ------------------------------------------------------------------------
Thanks for some help.
...
<dependency>
<groupId>checkstyle</groupId>
<artifactId>checkstyle</artifactId>
<version>4.1</version>
</dependency>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>sun_checks.xml</configLocation>
</configuration>
</plugin>
...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
iD8DBQFEm7CH90pbDJCgbHoRAo+vAJ9rRvlIepfDPFnkx8AAMAQOgoQJIQCePT9/
jfFbGIT5EamMhAwhZ0TvFKc=
=uPPl
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride
Janhavi Phirke
2006-06-23 11:38:34 UTC
Permalink
Why have you included the code in <dependency>? There is no need to do that.
Also if you want to specify your customized .xml file which contains some
specific rules, then you can add that in <configuration>. Otherwise it is
optional. If you don't specify it, then it will take the default .xml file
and run it on your code.

before running the checkstyle:checkstyle goal, first run the command "mvn
install" which will download the plugin in your local repisitory and then
run that command "mvn checkstyle:checkstyle".
Post by Carlos Sanchez
You can check the output of -X, but i think it's just that file
doesn't exist. IIRC is config/sun_checks.xml
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
mvn -e checkstyle:checkstyle
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'checkstyle'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building nova
[INFO] task-segment: [checkstyle:checkstyle]
[INFO]
----------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class => '
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] **************************************************************
[INFO] Starting Jakarta Velocity v1.4
[INFO] RuntimeInstance initializing.
org\apache\velocity\runtime\defaults\velocity.properties
[INFO] Default ResourceManager initializing. (class
org.apache.velocity.runtime.resource.ResourceManagerImpl)
org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader
[INFO] ClasspathResourceLoader : initialization starting.
[INFO] ClasspathResourceLoader : initialization complete.
[INFO] ResourceCache : initialized. (class
org.apache.velocity.runtime.resource.ResourceCacheImpl)
[INFO] Default ResourceManager initialization complete.
org.apache.velocity.runtime.directive.Literal
org.apache.velocity.runtime.directive.Macro
org.apache.velocity.runtime.directive.Parse
org.apache.velocity.runtime.directive.Include
org.apache.velocity.runtime.directive.Foreach
[INFO] Created: 20 parsers.
[INFO] Velocimacro : initialization starting.
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in any resource loader.
[INFO] Velocimacro : error using VM library template
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.
[INFO] [checkstyle:checkstyle]
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An error has occurred in Checkstyle report generation.
Embedded error: Unable to process header location.
Destination file has no content.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error has
occurred in Checkstyle report generation.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:559)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
DefaultLifecycleExecutor.java:488)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
DefaultLifecycleExecutor.java:458)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
(DefaultLifecycleExecutor.java:306)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:273)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
DefaultLifecycleExecutor.java:140)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:256)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.codehaus.classworlds.Launcher.launchEnhanced(
Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(
Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error has
occurred in Checkstyle report generation.
at org.apache.maven.reporting.AbstractMavenReport.execute(
AbstractMavenReport.java:79)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
DefaultPluginManager.java:412)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
DefaultLifecycleExecutor.java:534)
... 16 more
Caused by: org.apache.maven.reporting.MavenReportException: Unable to
process header location.
at
org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties
(CheckstyleReport.java:881)
at
org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(
CheckstyleReport.java:467)
at org.apache.maven.reporting.AbstractMavenReport.generate(
AbstractMavenReport.java:98)
at org.apache.maven.reporting.AbstractMavenReport.execute(
AbstractMavenReport.java:73)
... 18 more
Caused by: java.io.IOException: Destination file has no content.
at org.apache.maven.plugin.checkstyle.Locator.resolveLocation(
Locator.java:139)
at
org.apache.maven.plugin.checkstyle.CheckstyleReport.getOverridingProperties
(CheckstyleReport.java:873)
... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Fri Jun 23 17:09:41 CST 2006
[INFO] Final Memory: 4M/8M
[INFO]
------------------------------------------------------------------------
Thanks for some help.
...
<dependency>
<groupId>checkstyle</groupId>
<artifactId>checkstyle</artifactId>
<version>4.1</version>
</dependency>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>sun_checks.xml</configLocation>
</configuration>
</plugin>
...
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (MingW32)
iD8DBQFEm7CH90pbDJCgbHoRAo+vAJ9rRvlIepfDPFnkx8AAMAQOgoQJIQCePT9/
jfFbGIT5EamMhAwhZ0TvFKc=
=uPPl
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride
---------------------------------------------------------------------
Carlos Sanchez
2006-06-23 12:32:40 UTC
Permalink
Post by Janhavi Phirke
before running the checkstyle:checkstyle goal, first run the command "mvn
install" which will download the plugin in your local repisitory and then
run that command "mvn checkstyle:checkstyle".
that's not needed
Dongsheng Song
2006-06-23 11:39:51 UTC
Permalink
When I use mvn -X checkstyle:checkstyle, found config suspicious:
...
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-checkstyle-plugin:2.1:checkstyle' -->
[DEBUG] (f) cacheFile =
C:\scm_work\nova\trunk\maven\target/checkstyle-cachefile
[DEBUG] (f) configLocation = config/sun_checks.xml
[DEBUG] (f) consoleOutput = false
[DEBUG] (f) enableFilesSummary = true
[DEBUG] (f) enableRSS = true
[DEBUG] (f) enableRulesSummary = true
[DEBUG] (f) enableSeveritySummary = true
[DEBUG] (f) failsOnError = false
[DEBUG] (f) format = sun
[DEBUG] (f) headerFile = C:\scm_work\nova\trunk\maven\LICENSE.txt
[DEBUG] (f) headerLocation = LICENSE.txt
[DEBUG] (f) includes = **/*.java
[DEBUG] (f) linkXRef = true
[DEBUG] (f) outputDirectory = C:\scm_work\nova\trunk\maven\target\site
[DEBUG] (f) outputFile = C:\scm_work\nova\trunk\maven\target\checkstyle-
result.xml
[DEBUG] (f) outputFileFormat = xml
[DEBUG] (f) project = ***@5e90a347
[DEBUG] (f) sourceDirectory = C:\scm_work\nova\trunk\maven\src\main\java
[DEBUG] (f) xrefLocation = C:\scm_work\nova\trunk\maven\target\site\xref
[DEBUG] -- end configuration --
...

Why:
headerFile = C:\scm_work\nova\trunk\maven\LICENSE.txt
headerLocation = LICENSE.txt

I DO NOT set headerFile & headerLocation ! when I delete
C:\scm_work\nova\trunk\maven\LICENSE.txt, all is ok.
Post by Carlos Sanchez
You can check the output of -X, but i think it's just that file
doesn't exist. IIRC is config/sun_checks.xml
Carlos Sanchez
2006-06-23 12:37:32 UTC
Permalink
those are the defaults
Post by Dongsheng Song
...
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-checkstyle-plugin:2.1:checkstyle' -->
[DEBUG] (f) cacheFile =
C:\scm_work\nova\trunk\maven\target/checkstyle-cachefile
[DEBUG] (f) configLocation = config/sun_checks.xml
[DEBUG] (f) consoleOutput = false
[DEBUG] (f) enableFilesSummary = true
[DEBUG] (f) enableRSS = true
[DEBUG] (f) enableRulesSummary = true
[DEBUG] (f) enableSeveritySummary = true
[DEBUG] (f) failsOnError = false
[DEBUG] (f) format = sun
[DEBUG] (f) headerFile = C:\scm_work\nova\trunk\maven\LICENSE.txt
[DEBUG] (f) headerLocation = LICENSE.txt
[DEBUG] (f) includes = **/*.java
[DEBUG] (f) linkXRef = true
[DEBUG] (f) outputDirectory = C:\scm_work\nova\trunk\maven\target\site
[DEBUG] (f) outputFile = C:\scm_work\nova\trunk\maven\target\checkstyle-
result.xml
[DEBUG] (f) outputFileFormat = xml
[DEBUG] (f) sourceDirectory = C:\scm_work\nova\trunk\maven\src\main\java
[DEBUG] (f) xrefLocation = C:\scm_work\nova\trunk\maven\target\site\xref
[DEBUG] -- end configuration --
...
headerFile = C:\scm_work\nova\trunk\maven\LICENSE.txt
headerLocation = LICENSE.txt
I DO NOT set headerFile & headerLocation ! when I delete
C:\scm_work\nova\trunk\maven\LICENSE.txt, all is ok.
Post by Carlos Sanchez
You can check the output of -X, but i think it's just that file
doesn't exist. IIRC is config/sun_checks.xml
--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride
shen kai
2006-06-23 16:44:08 UTC
Permalink
if license.txt is empty, the checkstyle will be occur error.
Post by Carlos Sanchez
those are the defaults
Post by Dongsheng Song
...
[DEBUG] Configuring mojo '
org.apache.maven.plugins:maven-checkstyle-plugin:2.1:checkstyle' -->
[DEBUG] (f) cacheFile =
C:\scm_work\nova\trunk\maven\target/checkstyle-cachefile
[DEBUG] (f) configLocation = config/sun_checks.xml
[DEBUG] (f) consoleOutput = false
[DEBUG] (f) enableFilesSummary = true
[DEBUG] (f) enableRSS = true
[DEBUG] (f) enableRulesSummary = true
[DEBUG] (f) enableSeveritySummary = true
[DEBUG] (f) failsOnError = false
[DEBUG] (f) format = sun
[DEBUG] (f) headerFile = C:\scm_work\nova\trunk\maven\LICENSE.txt
[DEBUG] (f) headerLocation = LICENSE.txt
[DEBUG] (f) includes = **/*.java
[DEBUG] (f) linkXRef = true
[DEBUG] (f) outputDirectory = C:\scm_work\nova\trunk\maven\target\site
[DEBUG] (f) outputFile = C:\scm_work\nova\trunk\maven\target\checkstyle-
result.xml
[DEBUG] (f) outputFileFormat = xml
[DEBUG] (f) sourceDirectory = C:\scm_work\nova\trunk\maven\src\main\java
[DEBUG] (f) xrefLocation = C:\scm_work\nova\trunk\maven\target\site\xref
[DEBUG] -- end configuration --
...
headerFile = C:\scm_work\nova\trunk\maven\LICENSE.txt
headerLocation = LICENSE.txt
I DO NOT set headerFile & headerLocation ! when I delete
C:\scm_work\nova\trunk\maven\LICENSE.txt, all is ok.
Post by Carlos Sanchez
You can check the output of -X, but i think it's just that file
doesn't exist. IIRC is config/sun_checks.xml
--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride
---------------------------------------------------------------------
Dongsheng Song
2006-06-23 18:10:01 UTC
Permalink
Thanks
Post by shen kai
if license.txt is empty, the checkstyle will be occur error.
Loading...