maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Graham <chrisgw...@gmail.com>
Subject Building SCM 1.9.5-SNAPSHOT
Date Tue, 31 Mar 2015 20:20:57 GMT
Hi All.

I've forked the apache scm repo on github and cloned it locally.

I'm simply trying to build it, before I start making any changes at all.

I've run into several issues, something is truly not right here, but I can
not quite work out what.

At the moment, either under 2.2.1 or 3.0.4, I'm getting a RAT failure.
Using IBM 1.6 JDK on XP.

[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check
(rat-check) on project maven-scm: Too many files with unapproved license:
1745 See RAT report in: C:\CALMData\Workspa
ces\RTC\Deb\maven-scm\target\rat.txt -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
goal org.apache.rat:apache-rat-plugin:0.11:check (rat-check) on project
maven-scm: Too many files with unapproved lice
nse: 1745 See RAT report in:
C:\CALMData\Workspaces\RTC\Deb\maven-scm\target\rat.txt
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
        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:320)
        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:37)
        at java.lang.reflect.Method.invoke(Method.java:599)
        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.rat.mp.RatCheckException: Too many files with
unapproved license: 1745 See RAT report in:
C:\CALMData\Workspaces\RTC\Deb\maven-scm\target\rat.txt
        at org.apache.rat.mp.RatCheckMojo.check(RatCheckMojo.java:194)
        at org.apache.rat.mp.RatCheckMojo.execute(RatCheckMojo.java:182)
        at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
        at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
        ... 19 more

When I look at the report file, I can see that target is being included.
Huh????

*****************************************************
Summary
-------
Generated at: 2015-04-01T07:14:41+11:00
Notes: 176
Binaries: 1010
Archives: 80
Standards: 3075

Apache Licensed: 1305
Generated Documents: 0

JavaDocs are generated and so license header is optional
Generated files do not required license headers

1745 Unknown Licenses

*******************************

Unapproved licenses:

  maven-scm/..project
  maven-scm/.settings/org.maven.ide.eclipse.prefs
  maven-scm/maven-scm-api/.classpath
  maven-scm/maven-scm-api/.project
  maven-scm/maven-scm-api/.settings/org.eclipse.jdt.core.prefs
  maven-scm/maven-scm-api/.settings/org.maven.ide.eclipse.prefs
  maven-scm/maven-scm-api/target/.plxarc
  maven-scm/maven-scm-api/target/checkstyle-cachefile
  maven-scm/maven-scm-api/target/checkstyle-header.txt
  maven-scm/maven-scm-api/target/checkstyle-result.xml

maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst

maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst

maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst

maven-scm/maven-scm-api/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst
  maven-scm/maven-scm-api/target/rat.txt



Given that this was not my initial error, which was this:

ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on
project maven-scm-api: Execution default-test of goal
org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: Unable to
load the mojo 'test' in the plugin
'org.apache.maven.plugins:maven-surefire-plugin:2.17'. A required class is
missing: javax.annotation.Nonnull


I'm kind of lost.

Anders has been able to confirm that it is buildable, but he is using a
slightly different commit (one that I can not find).

Can anyone shed any light on what's going on?

TIA,

-Chris

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message