Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 55F3518EAD for ; Wed, 19 Aug 2015 21:39:23 +0000 (UTC) Received: (qmail 86893 invoked by uid 500); 19 Aug 2015 21:39:23 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 86841 invoked by uid 500); 19 Aug 2015 21:39:23 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 86828 invoked by uid 99); 19 Aug 2015 21:39:23 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Aug 2015 21:39:23 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id A4A4CC0856 for ; Wed, 19 Aug 2015 21:39:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.287 X-Spam-Level: **** X-Spam-Status: No, score=4.287 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, KAM_ASCII_DIVIDERS=0.8, NML_ADSP_CUSTOM_MED=1.2, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id ZFBz2Bm36y0A for ; Wed, 19 Aug 2015 21:39:18 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 732ED20628 for ; Wed, 19 Aug 2015 21:39:18 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id B2F0F26A1A6F for ; Wed, 19 Aug 2015 14:39:38 -0700 (PDT) Date: Wed, 19 Aug 2015 14:39:18 -0700 (MST) From: Jose A Lopez To: user@karaf.apache.org Message-ID: In-Reply-To: References: <1439898945576-4041910.post@n3.nabble.com> <1439937253702-4041921.post@n3.nabble.com> Subject: Re: Error in custom Karaf distribution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi again and many thanks for your time. I have just deleted .m2 repository and I get this error using 4.0.0 [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Internal error in the plugin manager executing goal 'org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly': Unable to load the mojo 'org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly' in the plugin 'org.apache.karaf.tooling:karaf-maven-plugin'. A required class is missing: org/apache/maven/repository/legacy/metadata/MetadataResolutionRequest org.apache.maven.repository.legacy.metadata.MetadataResolutionRequest And I delete the .m2 repository again and using 4.0.1-SNAPSHOT I get this other error: Project ID: org.apache.karaf:org.apache.karaf.util Reason: Error getting POM for 'org.apache.karaf:org.apache.karaf.util' from the repository: Unable to read local copy of metadata: Cannot read metadata from '/home/joseantonio/.m2/repository/org/apache/karaf/org.apache.karaf.util/4.= 0.1-SNAPSHOT/maven-metadata-labs-consol-snapshot.xml': end tag name must match start tag name
from line 7 (position: TEXT seen ...\n... @9:8) org.apache.karaf:org.apache.karaf.util:pom:4.0.1-SNAPSHOT What should I do?? Should I throw away my computer ?? ;-) Thanks again for your time! Jos=C3=A9 Antonio L=C3=B3pez Pastor 2015-08-19 14:52 GMT+02:00 Morgan Hautman [via Karaf] < ml-node+s922171n4041936h34@n3.nabble.com>: > Hi, > > Can you try to clean your .m2 repository? Maybe something is corrupt :) > > Regards, > Morgan > > 2015-08-19 14:48 GMT+02:00 Jose A Lopez <[hidden email] > >: > >> Many thanks for your answer Morgan but it still not working. I have try = to >> add the Snapshots reposotory in that way: >> >> > xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >> xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 >> http://maven.apache.org/xsd/maven-4.0.0.xsd"> >> >> 4.0.0 >> >> es.josealopez >> jalp-karaf >> 4.0.1-SNAPSHOT >> karaf-assembly >> Apache Karaf :: JALP distribution >> >> >> >> >> apache.snapshots >> Apache Development Snapshot Repository >> https://repository.apache.org/content/groups/snapshots/ >> >> >> false >> >> >> true >> >> >> >> >> >> >> apache.snapshots >> Apache Development Snapshot Repository >> >> https://repository.apache.org/content/repositories/snapshots/ >> >> false >> >> >> true >> >> >> >> >> >> >> >> org.apache.karaf.features >> framework >> 4.0.1-SNAPSHOT >> kar >> >> >> >> org.apache.karaf.features >> standard >> 4.0.1-SNAPSHOT >> features >> xml >> runtime >> >> >> >> >> >> >> >> >> src/main/resources >> false >> >> **/* >> >> >> >> src/main/filtered-resources >> true >> >> **/* >> >> >> >> >> >> >> >> >> >> >> >> org.apache.karaf.tooling >> karaf-maven-plugin >> 4.0.1-SNAPSHOT >> true >> >> >> >> standard >> management >> >> >> >> >> >> >> >> >> >> And the error is: >> >> [ERROR] BUILD ERROR >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Error building POM (may not be this project's POM). >> >> >> Project ID: org.apache.karaf:org.apache.karaf.util >> >> Reason: Error getting POM for 'org.apache.karaf:org.apache.karaf.util' >> from >> the repository: Unable to read local copy of metadata: Cannot read >> metadata >> from >> >> '/home/joseantonio/.m2/repository/org/apache/karaf/org.apache.karaf.util= /4.0.1-SNAPSHOT/maven-metadata-labs-consol-snapshot.xml': >> end tag name must match start tag name
from line 7 (positio= n: >> TEXT seen ...\n... @9:8) >> org.apache.karaf:org.apache.karaf.util:pom:4.0.1-SNAPSHOT >> >> >> for project org.apache.karaf:org.apache.karaf.util >> >> Many thanks in advance again! >> >> Jos=C3=A9 Antonio L=C3=B3pez Pastor >> >> >> 2015-08-19 7:45 GMT+02:00 Morgan Hautman [via Karaf] < >> [hidden email] >: >> >> > Hi, >> > >> > Are you on Windows? Because there were some problems with the custom >> > distribution 4.0.0 on Windows. >> > >> > Could you try with 4.0.1-SNAPSHOT? >> > >> > Don't forget to add >> > https://repository.apache.org/content/groups/snapshots/ in your pom.xm= l >> > >> > Regards, >> > Morgan >> > >> > 2015-08-19 0:34 GMT+02:00 Jose A Lopez <[hidden email] >> > >: >> >> > >> >> Many thanks for your quickly answer. I have try your solution and I >> still >> >> having the same error. I have reduce the pom to the minimal following >> the >> >> doumentation and it does not work. >> >> >> >> Many thanks again for your time! >> >> >> >> The pom following your answer and reduced is: >> >> >> >> > >> xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance" >> >> xsi:schemaLocation=3D"http://maven.apache.org/POM/4.0.0 >> >> http://maven.apache.org/xsd/maven-4.0.0.xsd"> >> >> >> >> 4.0.0 >> >> >> >> es.josealopez >> >> jalp-karaf >> >> 4.0.0 >> >> karaf-assembly >> >> Apache Karaf :: JALP distribution >> >> >> >> >> >> >> >> >> >> org.apache.karaf.features >> >> framework >> >> 4.0.0 >> >> kar >> >> >> >> >> >> >> >> org.apache.karaf.features >> >> standard >> >> 4.0.0 >> >> features >> >> xml >> >> runtime >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> src/main/resources >> >> false >> >> >> >> **/* >> >> >> >> >> >> >> >> src/main/filtered-resources >> >> true >> >> >> >> **/* >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> org.apache.maven.plugins >> >> maven-resources-plugin >> >> 2.6 >> >> >> >> >> >> process-resources >> >> >> >> resources >> >> >> >> >> >> >> >> >> >> >> >> >> >> org.apache.karaf.tooling >> >> karaf-maven-plugin >> >> 4.0.0 >> >> true >> >> >> >> >> >> >> >> standard >> >> management >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> And the error with trace is: >> >> >> >> [ERROR] BUILD ERROR >> >> [INFO] >> >> >> ------------------------------------------------------------------------ >> >> [INFO] Internal error in the plugin manager executing goal >> >> 'org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly': Unable = to >> >> load >> >> the mojo 'org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly' >> in >> >> the >> >> plugin 'org.apache.karaf.tooling:karaf-maven-plugin'. A required clas= s >> is >> >> missing: org/apache/maven/artifact/repository/RepositoryRequest >> >> org.apache.maven.artifact.repository.RepositoryRequest >> >> [INFO] >> >> >> ------------------------------------------------------------------------ >> >> [INFO] Trace >> >> org.apache.maven.lifecycle.LifecycleExecutionException: Internal erro= r >> in >> >> the plugin manager executing goal >> >> 'org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly': Unable = to >> >> load >> >> the mojo 'org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly' >> in >> >> the >> >> plugin 'org.apache.karaf.tooling:karaf-maven-plugin'. A required clas= s >> is >> >> missing: org/apache/maven/artifact/repository/RepositoryRequest >> >> at >> >> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default= LifecycleExecutor.java:698) >> >> at >> >> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec= ycle(DefaultLifecycleExecutor.java:556) >> >> at >> >> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL= ifecycleExecutor.java:535) >> >> at >> >> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle= Failures(DefaultLifecycleExecutor.java:387) >> >> at >> >> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(= DefaultLifecycleExecutor.java:348) >> >> at >> >> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec= ycleExecutor.java:180) >> >> at >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328) >> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:13= 8) >> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362) >> >> at >> >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6= 0) >> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method= ) >> >> at >> >> >> >> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav= a:57) >> >> at >> >> >> >> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor= Impl.java:43) >> >> at java.lang.reflect.Method.invoke(Method.java:606) >> >> at >> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >> >> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255= ) >> >> at >> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >> >> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >> >> Caused by: org.apache.maven.plugin.PluginManagerException: Unable to >> load >> >> the mojo 'org.apache.karaf.tooling:karaf-maven-plugin:4.0.0:assembly' >> in >> >> the >> >> plugin 'org.apache.karaf.tooling:karaf-maven-plugin'. A required clas= s >> is >> >> missing: org/apache/maven/artifact/repository/RepositoryRequest >> >> at >> >> >> >> >> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPl= uginManager.java:669) >> >> at >> >> >> >> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa= nager.java:468) >> >> at >> >> >> >> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default= LifecycleExecutor.java:694) >> >> ... 17 more >> >> Caused by: >> >> >> >> >> org.codehaus.plexus.component.repository.exception.ComponentLookupExcept= ion: >> >> Unable to lookup component >> >> >> >> >> 'org.apache.maven.plugin.Mojoorg.apache.karaf.tooling:karaf-maven-plugin= :4.0.0:assembly', >> >> it could not be started >> >> at >> >> >> >> >> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer= .java:339) >> >> at >> >> >> >> >> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer= .java:440) >> >> at >> >> >> >> >> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPl= uginManager.java:652) >> >> ... 19 more >> >> Caused by: >> >> >> >> >> org.codehaus.plexus.component.repository.exception.ComponentLifecycleExc= eption: >> >> Error starting component >> >> at >> >> >> >> >> org.codehaus.plexus.component.manager.AbstractComponentManager.startComp= onentLifecycle(AbstractComponentManager.java:109) >> >> at >> >> >> >> >> org.codehaus.plexus.component.manager.AbstractComponentManager.createCom= ponentInstance(AbstractComponentManager.java:95) >> >> at >> >> >> >> >> org.codehaus.plexus.component.manager.PerLookupComponentManager.getCompo= nent(PerLookupComponentManager.java:48) >> >> at >> >> >> >> >> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer= .java:331) >> >> ... 21 more >> >> Caused by: >> >> >> >> >> org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionExc= eption: >> >> Error composing component >> >> at >> >> >> >> >> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.= execute(CompositionPhase.java:33) >> >> at >> >> >> >> >> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLif= ecycleHandler.java:101) >> >> at >> >> >> >> >> org.codehaus.plexus.component.manager.AbstractComponentManager.startComp= onentLifecycle(AbstractComponentManager.java:105) >> >> ... 24 more >> >> Caused by: >> org.codehaus.plexus.component.composition.CompositionException: >> >> Composition failed of field artifactResolver in object of type >> >> org.apache.karaf.tooling.AssemblyMojo because the requirement >> >> >> >> >> ComponentRequirement{role=3D'org.apache.maven.artifact.resolver.Artifact= Resolver', >> >> roleHint=3D'null', fieldName=3D'artifactResolver'} was missing >> >> at >> >> >> >> >> org.codehaus.plexus.component.composition.FieldComponentComposer.assignR= equirementToField(FieldComponentComposer.java:154) >> >> at >> >> >> >> >> org.codehaus.plexus.component.composition.FieldComponentComposer.assembl= eComponent(FieldComponentComposer.java:73) >> >> at >> >> >> >> >> org.codehaus.plexus.component.composition.DefaultComponentComposerManage= r.assembleComponent(DefaultComponentComposerManager.java:68) >> >> at >> >> >> >> >> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexu= sContainer.java:1486) >> >> at >> >> >> >> >> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.= execute(CompositionPhase.java:29) >> >> ... 26 more >> >> Caused by: >> >> >> >> >> org.codehaus.plexus.component.repository.exception.ComponentLookupExcept= ion: >> >> Unable to lookup component >> >> 'org.apache.maven.artifact.resolver.ArtifactResolver', it could not b= e >> >> created >> >> at >> >> >> >> >> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer= .java:335) >> >> at >> >> >> >> >> org.codehaus.plexus.component.composition.FieldComponentComposer.assignR= equirementToField(FieldComponentComposer.java:129) >> >> ... 30 more >> >> Caused by: >> >> org.codehaus.plexus.component.factory.ComponentInstantiationException= : >> >> Could >> >> not instanciate component: role: >> >> 'org.apache.maven.artifact.resolver.ArtifactResolver', implementation= : >> >> 'org.apache.maven.artifact.resolver.DefaultArtifactResolver', role >> hint: >> >> 'default' >> >> at >> >> >> >> >> org.codehaus.plexus.component.factory.java.JavaComponentFactory.makeExce= ption(JavaComponentFactory.java:77) >> >> at >> >> >> >> >> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInsta= nce(JavaComponentFactory.java:62) >> >> at >> >> >> >> >> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(Defau= ltPlexusContainer.java:1464) >> >> at >> >> >> >> >> org.codehaus.plexus.component.manager.AbstractComponentManager.createCom= ponentInstance(AbstractComponentManager.java:93) >> >> at >> >> >> >> >> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.g= etComponent(ClassicSingletonComponentManager.java:92) >> >> at >> >> >> >> >> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer= .java:331) >> >> ... 31 more >> >> Caused by: java.lang.NoClassDefFoundError: >> >> org/apache/maven/artifact/repository/RepositoryRequest >> >> at java.lang.Class.getDeclaredConstructors0(Native Method) >> >> at >> java.lang.Class.privateGetDeclaredConstructors(Class.java:2585) >> >> at java.lang.Class.getConstructor0(Class.java:2885) >> >> at java.lang.Class.newInstance(Class.java:350) >> >> at >> >> >> >> >> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInsta= nce(JavaComponentFactory.java:44) >> >> ... 35 more >> >> Caused by: java.lang.ClassNotFoundException: >> >> org.apache.maven.artifact.repository.RepositoryRequest >> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:366) >> >> at java.net.URLClassLoader$1.run(URLClassLoader.java:355) >> >> at java.security.AccessController.doPrivileged(Native Method) >> >> at java.net.URLClassLoader.findClass(URLClassLoader.java:354) >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:425) >> >> at >> >> >> >> >> org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoad= er.java:195) >> >> at >> >> >> >> >> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.j= ava:255) >> >> at >> >> >> >> >> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.j= ava:274) >> >> at >> >> >> >> >> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.jav= a:214) >> >> at java.lang.ClassLoader.loadClass(ClassLoader.java:358) >> >> ... 40 more >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> View this message in context: >> >> >> http://karaf.922171.n3.nabble.com/Error-in-custom-Karaf-distribution-tp4= 041910p4041921.html >> >> Sent from the Karaf - User mailing list archive at Nabble.com. >> >> >> > >> > >> > >> > ------------------------------ >> > If you reply to this email, your message will be added to the discussi= on >> > below: >> > >> > >> http://karaf.922171.n3.nabble.com/Error-in-custom-Karaf-distribution-tp4= 041910p4041923.html >> > To unsubscribe from Error in custom Karaf distribution, click here >> > < > . >> > NAML >> > < >> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=3Dmacro= _viewer&id=3Dinstant_html%21nabble%3Aemail.naml&base=3Dnabble.naml.namespac= es.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.= template.NodeNamespace&breadcrumbs=3Dnotify_subscribers%21nabble%3Aemail.na= ml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail= .naml >> > >> > >> >> >> >> >> -- >> View this message in context: >> http://karaf.922171.n3.nabble.com/Error-in-custom-Karaf-distribution-tp4= 041910p4041935.html >> Sent from the Karaf - User mailing list archive at Nabble.com. >> > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://karaf.922171.n3.nabble.com/Error-in-custom-Karaf-distribution-tp40= 41910p4041936.html > To unsubscribe from Error in custom Karaf distribution, click here > > . > NAML > > -- View this message in context: http://karaf.922171.n3.nabble.com/Error-in-cu= stom-Karaf-distribution-tp4041910p4041958.html Sent from the Karaf - User mailing list archive at Nabble.com.