Switch to maven 3.0, this is due to the with from aether away to a eclipse maven resolver inside maven.
Regards, Achim sent from mobile device Am 29.03.2014 18:33 schrieb "Stijn de Witt" <[email protected]>: > Hi, I'm attempting to build Apache Karaf from source. It runs for quite > some time but then fails. > > I cloned the git repository from here: > https://git-wip-us.apache.org/repos/asf/karaf.git > > ..to my local Windows machine, on which I have Maven 3.1 installed: > Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; > 2014-02-14T18:37:52+01:00) > Maven home: C:\Program Files\maven\v3.2.1\bin\.. > Java version: 1.7.0_17, vendor: Oracle Corporation > Java home: C:\Program Files\Java\jdk\jre > Default locale: nl_NL, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" > > I then ran this build command: > mvn -DskipTests clean install -Dtest=false > > The first time I ran the command I included the options to generate source > JARs and I also noticed some downloads where there was a connection failure > at first and it had to reconnect, but eventually they succeeded. Anyway the > build as a whole failed so I tried again a couple of times using the above > command but it keeps failing. I see this in the reactor summary: > [INFO] Apache Karaf :: Tooling :: Maven Karaf Plugin ..... SUCCESS [ > 9.610 s] > [INFO] Apache Karaf :: Assemblies ........................ SUCCESS [ > 0.032 s] > [INFO] Apache Karaf :: Assemblies :: Features ............ SUCCESS [ > 0.027 s] > *[INFO] Apache Karaf :: Assemblies :: Features :: Framework FAILURE [ > 1.973 s]* > > The failure seems to be caused by a missing class > org.sonatype.aether.RepositorySystem: > [ERROR] Failed to execute goal > org.apache.karaf.tooling:karaf-maven-plugin:4.0.0-SNAPSHOT:features-generate-descriptor > (compile) on project framework: Execution compile of goal > org.apache.karaf.tooling:karaf-maven-plugin:4.0.0-SNAPSHOT:features-generate-descriptor > failed: A required class was missing while executing > org.apache.karaf.tooling:karaf-maven-plugin:4.0.0-SNAPSHOT:features-generate-descriptor: > *org/sonatype/aether/RepositorySystem* > > Maven points me to a special Wiki page they have for this problem: > [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/AetherClassNotFound > > I found this issue on the Karaf issue tracker about this very problem, but > it's marked as fixed: > https://issues.apache.org/jira/browse/KARAF-2395 > > Could it be that it's a regression? I just Git Pull'ed the repo and Git > tells me it's up to date: > = [up to date] karaf-2.3.x -> origin/karaf-2.3.x > = [up to date] karaf-2.x -> origin/karaf-2.x > = [up to date] karaf-3.0.x -> origin/karaf-3.0.x > Already up-to-date. > > Success (2418 ms @ 29-3-2014 18:28:57) > > I'm not sure how to read this. Am I pulling from the wrong repo? I don't > see karaf-4.0.x there, but presumably that's because it's the 'master' > branch? > > Anyway, I'd love some feedback on this, > > -Stijn > > >
