Hi Tim,

you have to use Maven 3.0.x.

I'm upgrading the maven-karaf-plugin to support Maven 3.1 and 3.2, but I didn't push yet.

Regards
JB

On 02/28/2014 03:54 PM, Tim Moloney wrote:
I ran the following

bash> git clone https://git-wip-us.apache.org/repos/asf/karaf.git
apache-karaf-master
bash> cd apache-karaf-master
bash> set MAVEN_OPTS=-Xmx512m -XX:MaxPermSize=128m
bash> mvn clean install

and got the following output

...
[INFO] Apache Karaf :: JMS ............................... SUCCESS [  0.036 s]
[INFO] Apache Karaf :: JMS :: Core ....................... SUCCESS [ 19.121 s]
[INFO] Apache Karaf :: JMS :: Command .................... SUCCESS [  0.841 s]
[INFO] Apache Karaf :: Tooling :: Maven Karaf Plugin ..... SUCCESS [  5.710 s]
[INFO] Apache Karaf :: Assemblies ........................ SUCCESS [  0.049 s]
[INFO] Apache Karaf :: Assemblies :: Features ............ SUCCESS [  0.094 s]
[INFO] Apache Karaf :: Assemblies :: Features :: Framework  FAILURE [ 37.756 s]
[INFO] Apache Karaf :: Assemblies :: Features :: Standard  SKIPPED
[INFO] Apache Karaf :: Assemblies :: Features :: Spring .. SKIPPED
[INFO] Apache Karaf :: Assemblies :: Features :: Enterprise  SKIPPED
[INFO] Apache Karaf :: Assemblies :: Demos ............... SKIPPED
[INFO] Apache Karaf :: Assemblies :: Minimal Distribution  SKIPPED
[INFO] Apache Karaf :: Assemblies :: Default Distribution  SKIPPED
[INFO] Apache Karaf :: Demos ............................. SKIPPED
[INFO] Apache Karaf :: Demos :: Web ...................... SKIPPED
[INFO] Apache Karaf :: Demos :: Branding :: Shell ........ SKIPPED
[INFO] Apache Karaf :: Demos :: Command :: Extend Console  SKIPPED
[INFO] Apache Karaf :: Demos :: Demo Dump provider ....... SKIPPED
[INFO] Apache Karaf :: Demos :: Deployer ................. SKIPPED
[INFO] Apache Karaf :: Demos :: Deployer :: Kar .......... SKIPPED
[INFO] Apache Karaf :: Demos :: Deployer :: Bundle ....... SKIPPED
[INFO] Apache Karaf :: Archetypes ........................ SKIPPED
[INFO] Apache Karaf :: Archetypes :: Assembly Archetype .. SKIPPED
[INFO] Apache Karaf :: Archetypes :: Command Archetype ... SKIPPED
[INFO] Apache Karaf :: Archetypes :: Feature Archetype ... SKIPPED
[INFO] Apache Karaf :: Archetypes :: Kar Archetype ....... SKIPPED
[INFO] Apache Karaf :: Archetypes :: Bundle Archetype .... SKIPPED
[INFO] Apache Karaf :: Archetypes :: Blueprint Archetype . SKIPPED
[INFO] Apache Karaf :: Integration Tests ................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:28 min
[INFO] Finished at: 2014-02-28T09:20:12-05:00
[INFO] Final Memory: 125M/298M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.karaf.tooling:karaf-maven-plugin:3.1.0-SNAPSHOT:features-generate-descriptor
(compile) on project framework: Execution compile of goal
org.apache.karaf.tooling:karaf-maven-plugin:3.1.0-SNAPSHOT:features-generate-descriptor
failed: Unable to load the mojo 'features-generate-descriptor' (or one
of its required components) from the plugin
'org.apache.karaf.tooling:karaf-maven-plugin:3.1.0-SNAPSHOT':
com.google.inject.ProvisionException: Guice provision errors:
[ERROR]
[ERROR] 1) No implementation for org.sonatype.aether.RepositorySystem was bound.
[ERROR] while locating org.apache.karaf.tooling.features.GenerateDescriptorMojo
[ERROR] at 
ClassRealm[plugin>org.apache.karaf.tooling:karaf-maven-plugin:3.1.0-SNAPSHOT,
parent: sun.misc.Launcher$AppClassLoader@11a698a]
[ERROR] while locating org.apache.maven.plugin.Mojo annotated with
@com.google.inject.name.Named(value=org.apache.karaf.tooling:karaf-maven-plugin:3.1.0-SNAPSHOT:features-generate-descriptor)
[ERROR]
[ERROR] 1 error
[ERROR] role: org.apache.maven.plugin.Mojo
[ERROR] roleHint:
org.apache.karaf.tooling:karaf-maven-plugin:3.1.0-SNAPSHOT:features-generate-descriptor
[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/PluginContainerException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :framework

I also executed "mvn -Dmaven.test.skip=true clean install" with the
same results.

What did I do wrong?

Java 1.7_0_51
Maven 3.2.1
Fedora 20
Linux kernel 3.13.3-201

Thanks,
Tim


--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Reply via email to