directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Czurda <hasnoadditi...@gmail.com>
Subject Build error caused by rat-plugin in apacheds 2.0.0-M2 and 2.0.0-M3
Date Sat, 17 Sep 2011 19:16:50 GMT
Hi,

When trying to build apacheds-parent in version 2.0.0-M2 or 2.0.0-M3, I 
got a build error:

[ERROR] Failed to execute goal 
org.apache.rat:apache-rat-plugin:0.7:check (default) on project 
apacheds-parent: Too many unapproved licenses: 1

I got the same error when building its parent project (artifact 
'project' version 23).

What I did then was to remove the plugin from both poms 
(apacheds-parent.2.0.0-M3 and project version 23) and the build worked 
fine on both.

Then I tried to reproduce the error by reverting the poms.
Since then a build of apacheds-parent.2.0.0-M3 succeeds, only the parent 
project fails again.

Unfortunately I didn't copy the output from apacheds-parent but only 
from project.23. So below I can only show you the debug log from a build 
of project.23, where it still fails. I hope this helps too.


[...]
[INFO] --- apache-rat-plugin:0.7:check (default) @ project ---
[DEBUG] org.apache.rat:apache-rat-plugin:jar:0.7:
[DEBUG]    org.apache.rat:apache-rat-core:jar:0.7:compile
[DEBUG]       commons-collections:commons-collections:jar:3.2:compile
[DEBUG]       commons-lang:commons-lang:jar:2.1:compile
[DEBUG]       commons-io:commons-io:jar:1.4:compile
[DEBUG]       org.apache.commons:commons-compress:jar:1.0:compile
[DEBUG]       commons-cli:commons-cli:jar:1.1:compile
[DEBUG]    org.codehaus.plexus:plexus-utils:jar:1.4:compile
[DEBUG]    org.apache.maven:maven-plugin-api:jar:2.0.4:compile
[DEBUG]    
org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-8:compile
[DEBUG]       org.apache.maven.doxia:doxia-core:jar:1.0-alpha-8:compile
[DEBUG]          
org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-8:compile
[DEBUG]       org.codehaus.plexus:plexus-i18n:jar:1.0-beta-6:compile
[DEBUG]       org.codehaus.plexus:plexus-velocity:jar:1.1.3:compile
[DEBUG]          velocity:velocity:jar:1.4:compile
[DEBUG]             velocity:velocity-dep:jar:1.4:runtime
[DEBUG]       
org.apache.maven.doxia:doxia-decoration-model:jar:1.0-alpha-8:compile
[DEBUG]    org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4:compile
[DEBUG]       org.apache.maven:maven-project:jar:2.0.4:compile
[DEBUG]          org.apache.maven:maven-settings:jar:2.0.4:compile
[DEBUG]          org.apache.maven:maven-profile:jar:2.0.4:compile
[DEBUG]          org.apache.maven:maven-model:jar:2.0.4:compile
[DEBUG]       commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG]          commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG]          commons-digester:commons-digester:jar:1.6:compile
[DEBUG]          commons-logging:commons-logging:jar:1.0.4:compile
[DEBUG]          xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG]       oro:oro:jar:2.0.7:compile
[DEBUG]       
org.apache.maven.reporting:maven-reporting-api:jar:2.0.4:compile
[DEBUG]    org.apache.maven:maven-artifact-manager:jar:2.0.4:compile
[DEBUG]       org.apache.maven:maven-repository-metadata:jar:2.0.4:compile
[DEBUG]       org.apache.maven:maven-artifact:jar:2.0.4:compile
[DEBUG]       
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:compile
[DEBUG]          classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG]    
org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0-beta-1:compile
[DEBUG]       org.apache.maven:maven-core:jar:2.0:compile
[DEBUG]          
org.apache.maven:maven-plugin-parameter-documenter:jar:2.0:compile
[DEBUG]          org.apache.maven:maven-error-diagnostics:jar:2.0:compile
[DEBUG]          org.apache.maven:maven-plugin-registry:jar:2.0:compile
[DEBUG]          org.apache.maven:maven-plugin-descriptor:jar:2.0:compile
[DEBUG]          
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG]          org.apache.maven:maven-monitor:jar:2.0:compile
[DEBUG]       junit:junit:jar:3.8.2:test (scope managed from compile) 
(version managed from 3.8.1)
[DEBUG] Created new class realm plugin>org.apache.rat:apache-rat-plugin:0.7
[DEBUG] Importing foreign packages into class realm 
plugin>org.apache.rat:apache-rat-plugin:0.7
[DEBUG]   Imported: < maven.api
[DEBUG] Populating class realm plugin>org.apache.rat:apache-rat-plugin:0.7
[DEBUG]   Included: org.apache.rat:apache-rat-plugin:jar:0.7
[DEBUG]   Included: org.apache.rat:apache-rat-core:jar:0.7
[DEBUG]   Included: commons-collections:commons-collections:jar:3.2
[DEBUG]   Included: commons-lang:commons-lang:jar:2.1
[DEBUG]   Included: commons-io:commons-io:jar:1.4
[DEBUG]   Included: org.apache.commons:commons-compress:jar:1.0
[DEBUG]   Included: commons-cli:commons-cli:jar:1.1
[DEBUG]   Included: org.codehaus.plexus:plexus-utils:jar:1.4
[DEBUG]   Included: 
org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-8
[DEBUG]   Included: org.apache.maven.doxia:doxia-core:jar:1.0-alpha-8
[DEBUG]   Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-8
[DEBUG]   Included: org.codehaus.plexus:plexus-i18n:jar:1.0-beta-6
[DEBUG]   Included: org.codehaus.plexus:plexus-velocity:jar:1.1.3
[DEBUG]   Included: velocity:velocity:jar:1.4
[DEBUG]   Included: velocity:velocity-dep:jar:1.4
[DEBUG]   Included: 
org.apache.maven.doxia:doxia-decoration-model:jar:1.0-alpha-8
[DEBUG]   Included: 
org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4
[DEBUG]   Included: commons-validator:commons-validator:jar:1.2.0
[DEBUG]   Included: commons-beanutils:commons-beanutils:jar:1.7.0
[DEBUG]   Included: commons-digester:commons-digester:jar:1.6
[DEBUG]   Included: commons-logging:commons-logging:jar:1.0.4
[DEBUG]   Included: xml-apis:xml-apis:jar:1.0.b2
[DEBUG]   Included: oro:oro:jar:2.0.7
[DEBUG]   Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.4
[DEBUG]   Included: 
org.apache.maven.shared:maven-plugin-testing-harness:jar:1.0-beta-1
[DEBUG]   Included: 
org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG]   Excluded: org.apache.maven:maven-plugin-api:jar:2.0.4
[DEBUG]   Excluded: org.apache.maven:maven-project:jar:2.0.4
[DEBUG]   Excluded: org.apache.maven:maven-settings:jar:2.0.4
[DEBUG]   Excluded: org.apache.maven:maven-profile:jar:2.0.4
[DEBUG]   Excluded: org.apache.maven:maven-model:jar:2.0.4
[DEBUG]   Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.4
[DEBUG]   Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.4
[DEBUG]   Excluded: org.apache.maven:maven-artifact:jar:2.0.4
[DEBUG]   Excluded: 
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9
[DEBUG]   Excluded: classworlds:classworlds:jar:1.1-alpha-2
[DEBUG]   Excluded: org.apache.maven:maven-core:jar:2.0
[DEBUG]   Excluded: 
org.apache.maven:maven-plugin-parameter-documenter:jar:2.0
[DEBUG]   Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0
[DEBUG]   Excluded: org.apache.maven:maven-plugin-registry:jar:2.0
[DEBUG]   Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0
[DEBUG]   Excluded: org.apache.maven:maven-monitor:jar:2.0
[DEBUG]   Excluded: junit:junit:jar:3.8.2
[DEBUG] Configuring mojo org.apache.rat:apache-rat-plugin:0.7:check from 
plugin realm ClassRealm[plugin>org.apache.rat:apache-rat-plugin:0.7, 
parent: sun.misc.Launcher$AppClassLoader@1f7182c1]
[DEBUG] Configuring mojo 'org.apache.rat:apache-rat-plugin:0.7:check' 
with basic configurator -->
[DEBUG]   (f) addDefaultLicenseMatchers = true
[DEBUG]   (f) addLicenseHeaders = false
[DEBUG]   (f) basedir = 
/home/gouranga/OSGiRelated/apacheds/apachedsSandbox/project-23
[DEBUG]   (f) excludeSubProjects = false
[DEBUG]   (f) excludes = [**/resources/svn_ignore.txt, 
**/resources/Reveal in Finder.launch]
[DEBUG]   (f) numUnapprovedLicenses = 0
[DEBUG]   (f) project = MavenProject: 
org.apache.directory.project:project:23 @ 
/home/gouranga/OSGiRelated/apacheds/apachedsSandbox/project-23/pom.xml
[DEBUG]   (f) reportFile = 
/home/gouranga/OSGiRelated/apacheds/apachedsSandbox/project-23/target/rat.txt
[DEBUG]   (f) reportStyle = plain
[DEBUG]   (f) useDefaultExcludes = true
[DEBUG]   (f) useEclipseDefaultExcludes = true
[DEBUG]   (f) useIdeaDefaultExcludes = true
[DEBUG]   (f) useMavenDefaultExcludes = true
[DEBUG] -- end configuration --
[INFO] Exclude: **/resources/svn_ignore.txt
[INFO] Exclude: **/resources/Reveal in Finder.launch
[INFO] 
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] 
------------------------------------------------------------------------
[INFO] Total time: 4.592s
[INFO] Finished at: Sat Sep 17 20:52:38 CEST 2011
[INFO] Final Memory: 8M/245M
[INFO] 
------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.rat:apache-rat-plugin:0.7:check (default) on project project: 
Too many unapproved licenses: 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to 
execute goal org.apache.rat:apache-rat-plugin:0.7:check (default) on 
project project: Too many unapproved licenses: 1
     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: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:57)
     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
     at java.lang.reflect.Method.invoke(Method.java:616)
     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 unapproved 
licenses: 1
     at org.apache.rat.mp.RatCheckMojo.check(RatCheckMojo.java:167)
     at org.apache.rat.mp.RatCheckMojo.execute(RatCheckMojo.java:159)
     at 
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
     at 
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
     ... 19 more
[ERROR]
[ERROR]



Kind Regards,
Christoph

Mime
View raw message