accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2651) Maven build error running rat check
Date Wed, 09 Apr 2014 18:16:18 GMT

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

ASF subversion and git services commented on ACCUMULO-2651:
-----------------------------------------------------------

Commit 63ca9c93e22d6dcfc9ee134123bc04b0c29140f8 in accumulo's branch refs/heads/1.6.0-SNAPSHOT
from [~ctubbsii]
[ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=63ca9c9 ]

ACCUMULO-2651 Fix rat check problems with maven-invoker-plugin

  Stop causing maven-invoker-plugin to produce build.log in the basedir
  of the test project, which causes RAT check to fail (see RAT-160).
  Change default forkCount=1 to stabilize the default build. We can
  experiment with more forks later.


> Maven build error running rat check
> -----------------------------------
>
>                 Key: ACCUMULO-2651
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2651
>             Project: Accumulo
>          Issue Type: Bug
>          Components: build
>         Environment: Fedora 19 and 20
> CentOS6
> OpenJDK 1.6 and OpenJDK 1.7
> Maven 3.0.5, 3.1.1, and 3.2.1
> (Does not appear to affect Ubuntu or Mac)
>            Reporter: Christopher Tubbs
>            Assignee: Christopher Tubbs
>            Priority: Blocker
>             Fix For: 1.6.0
>
>
> {code}
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] Apache Accumulo ................................... SUCCESS [9.632s]
> [INFO] Trace ............................................. FAILURE [5.960s]
> [INFO] Fate .............................................. SKIPPED
> [INFO] Start ............................................. SKIPPED
> [INFO] Core .............................................. SKIPPED
> [INFO] Simple Examples ................................... SKIPPED
> [INFO] Server Base ....................................... SKIPPED
> [INFO] GC Server ......................................... SKIPPED
> [INFO] Master Server ..................................... SKIPPED
> [INFO] Tablet Server ..................................... SKIPPED
> [INFO] MiniCluster ....................................... SKIPPED
> [INFO] Monitor Server .................................... SKIPPED
> [INFO] Native Libraries .................................. SKIPPED
> [INFO] Tracer Server ..................................... SKIPPED
> [INFO] Accumulo Maven Plugin ............................. SKIPPED
> [INFO] Testing ........................................... SKIPPED
> [INFO] Proxy ............................................. SKIPPED
> [INFO] Assemblies ........................................ SKIPPED
> [INFO] Documentation ..................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 17.217s
> [INFO] Finished at: Tue Apr 08 14:38:14 EDT 2014
> [INFO] Final Memory: 36M/349M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.10:check (default)
on project accumulo-trace: Cannot read header: src/test/java/org/apache/accumulo/trace/instrument/PerformanceTest.java
(No such file or directory) -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.rat:apache-rat-plugin:0.10:check
(default) on project accumulo-trace: Cannot read header
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
> 	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:317)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot read header
> 	at org.apache.rat.mp.AbstractRatMojo.createReport(AbstractRatMojo.java:483)
> 	at org.apache.rat.mp.RatCheckMojo.getRawReport(RatCheckMojo.java:100)
> 	at org.apache.rat.mp.RatCheckMojo.execute(RatCheckMojo.java:170)
> 	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
> 	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> 	... 19 more
> Caused by: org.apache.rat.api.RatException: Cannot read header
> 	at org.apache.rat.report.claim.util.ClaimReporterMultiplexer.report(ClaimReporterMultiplexer.java:44)
> 	at org.apache.rat.mp.FilesReportable.run(FilesReportable.java:68)
> 	at org.apache.rat.Report.report(Report.java:398)
> 	at org.apache.rat.Report.report(Report.java:378)
> 	at org.apache.rat.mp.AbstractRatMojo.createReport(AbstractRatMojo.java:464)
> 	... 23 more
> Caused by: org.apache.rat.document.RatDocumentAnalysisException: Cannot read header
> 	at org.apache.rat.analysis.DocumentHeaderAnalyser.analyse(DocumentHeaderAnalyser.java:45)
> 	at org.apache.rat.analysis.DefaultAnalyserFactory$DefaultAnalyser.analyse(DefaultAnalyserFactory.java:60)
> 	at org.apache.rat.document.impl.util.DocumentAnalyserMultiplexer.analyse(DocumentAnalyserMultiplexer.java:36)
> 	at org.apache.rat.report.claim.util.ClaimReporterMultiplexer.report(ClaimReporterMultiplexer.java:42)
> 	... 27 more
> Caused by: java.io.FileNotFoundException: src/test/java/org/apache/accumulo/trace/instrument/PerformanceTest.java
(No such file or directory)
> 	at java.io.FileInputStream.open(Native Method)
> 	at java.io.FileInputStream.<init>(FileInputStream.java:146)
> 	at org.apache.rat.mp.FilesReportable$FileDocument.reader(FilesReportable.java:88)
> 	at org.apache.rat.analysis.DocumentHeaderAnalyser.analyse(DocumentHeaderAnalyser.java:40)
> 	... 30 more
> {code}
> The problem seems to be caused since ACCUMULO-2616, and fails on the first file checked
by the RAT plugin, which is not always the same file. The RAT check works fine by itself,
and the entire build seems to work fine with -DskipTests enabled. The problem persists on
many versions of Maven, OpenJDK, and Fedora and CentOS. I suspect the problem is caused by
a buggy version of one of the plugins introduced by the updated Apache POM (to version 14).
This version of the RAT plugin also works fine with the previous version of the Apache POM.
> I'd prefer not to revert the ACCUMULO-2616, because it benefits us in other ways. A smaller,
more targeted approach to change back to apache-13 parent POM might be appropriate, if we
cannot identify the problematic plugin.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message