[ 
https://issues.apache.org/jira/browse/WHIRR-352?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081097#comment-13081097
 ] 

Thomas Jungblut commented on WHIRR-352:
---------------------------------------

Hey, I get this problem too.
I'm on the current trunk and followed the instructions in the wiki. 
When I'm in the whirr-examples project I run "mvn install" and get the 
following error (using -e parameter):

{noformat}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.717s
[INFO] Finished at: Mon Aug 08 20:09:42 CEST 2011
[INFO] Final Memory: 24M/194M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-checkstyle-plugin:2.6:checkstyle (default) on 
project whirr-examples: An error has occurred in Checkstyle report generation. 
Failed during checkstyle execution: Unable to find configuration file at 
location ./build-tools/src/main/resources/checkstyle.xml: Could not find 
resource './build-tools/src/main/resources/checkstyle.xml'. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal 
org.apache.maven.plugins:maven-checkstyle-plugin:2.6:checkstyle (default) on 
project whirr-examples: An error has occurred in Checkstyle report generation.
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
        at 
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
        at 
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
        at 
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error has 
occurred in Checkstyle report generation.
        at 
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:122)
        at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more
Caused by: org.apache.maven.reporting.MavenReportException: Failed during 
checkstyle execution
        at 
org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:597)
        at 
org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:190)
        at 
org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:99)
        ... 21 more
Caused by: org.apache.maven.plugin.checkstyle.CheckstyleExecutorException: 
Unable to find configuration file at location 
./build-tools/src/main/resources/checkstyle.xml
        at 
org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.getConfigFile(DefaultCheckstyleExecutor.java:481)
        at 
org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.getConfiguration(DefaultCheckstyleExecutor.java:236)
        at 
org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.executeCheckstyle(DefaultCheckstyleExecutor.java:173)
        at 
org.apache.maven.plugin.checkstyle.CheckstyleReport.executeReport(CheckstyleReport.java:578)
        ... 23 more
Caused by: org.codehaus.plexus.resource.loader.ResourceNotFoundException: Could 
not find resource './build-tools/src/main/resources/checkstyle.xml'.
        at 
org.codehaus.plexus.resource.DefaultResourceManager.getResource(DefaultResourceManager.java:173)
        at 
org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsFile(DefaultResourceManager.java:91)
        at 
org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.getConfigFile(DefaultCheckstyleExecutor.java:471)
        ... 26 more
{noformat}

Which is actually fine, because there is no ./build-tools/ dir in the 
whirr-examples package.
I'm totally wondering why checkstyle is getting called.

Maven version:
{noformat}
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: /usr/local/mvn
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Java home: /usr/local/jdk1.6.0_22/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-28-generic", arch: "amd64", family: "unix"
{noformat}





> mvn package assembly:assembly fails
> -----------------------------------
>
>                 Key: WHIRR-352
>                 URL: https://issues.apache.org/jira/browse/WHIRR-352
>             Project: Whirr
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 0.6.0
>         Environment: linux
>            Reporter: Karel Vervaeke
>              Labels: patch
>             Fix For: 0.7.0
>
>         Attachments: WHIRR-352.patch
>
>
> mvn package assembly:assembly fails. Output ends with:
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] An error has occurred in Checkstyle report generation.
> Embedded error: Failed during checkstyle execution
> Could not find resource './build-tools/src/main/resources/checkstyle.xml'.
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] 
> ------------------------------------------------------------------------

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to