Hi Thomas, you have some "created" file without license, that's why it fails on RAT.
I just tried purging my local ~/.m2/repository/org/apache/karaf and ~/.m2/repository/commons-*
with Maven 3.3.9 and Java 8. And it works fine. Do you have some Maven or HTTP proxy ? Regards JB On 10/14/2016 02:09 PM, Thomas Termin wrote:
@Jean-Baptiste mvn clean install -DskipTests results in: [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 7.785 s [INFO] Finished at: 2016-10-14T14:06:08+02:00 [INFO] Final Memory: 76M/383M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.11:check (default) on project karaf: Too many files with unapproved license: 3 See RAT report in: /local/tterm/apache-karaf-4.0.7/target/karaf-4.0.7.rat -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException @Christian Apache Maven 3.3.9 java version "1.7.0_65" Java(TM) SE Runtime Environment (build 1.7.0_65-b17) Java HotSpot(TM) Server VM (build 24.65-b04, mixed mode) and java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b25) Java HotSpot(TM) Server VM (build 25.40-b25, mixed mode) Regards, Thomas On Fri, Oct 14, 2016 at 1:53 PM, Christian Schneider <ch...@die-schneider.net <mailto:ch...@die-schneider.net>> wrote: What java and maven versions do you use? Christian On 14.10.2016 13:47, Thomas Termin wrote: Hello, why is it not possible to build the karaf source code? If I download the src for 4.0.7 or checkout the tag and try to build karaf with mvn -Pfastinstall I always get the output below. It seems that there are missing dependencies on apache.commons. What do I wrong? Regards, Thomas [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project karaf-maven-plugin: Compilation failure: Compilation failure: [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46] package org.apache.commons.lang.reflect does not exist [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1] static import only from classes and interfaces [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46] package org.apache.commons.lang.reflect does not exist [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1] static import only from classes and interfaces [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,46] package org.apache.commons.lang.reflect does not exist [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[22,1] static import only from classes and interfaces [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,46] package org.apache.commons.lang.reflect does not exist [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[50,1] static import only from classes and interfaces [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency30Helper.java:[95,25] cannot find symbol [ERROR] symbol: method invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.sonatype.aether.RepositorySystemSession) [ERROR] location: class org.apache.karaf.tooling.utils.Dependency30Helper [ERROR] /local/tterm/apache-karaf-4.0.7/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/utils/Dependency31Helper.java:[91,25] cannot find symbol [ERROR] symbol: method invokeMethod(org.apache.maven.project.ProjectBuildingRequest,java.lang.String,org.eclipse.aether.RepositorySystemSession) [ERROR] location: class org.apache.karaf.tooling.utils.Dependency31Helper [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException <http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException> [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :karaf-maven-plugin -- Christian Schneider http://www.liquid-reality.de Open Source Architect http://www.talend.com
-- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com