You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Jose A Lopez <jo...@gmail.com> on 2015/08/18 13:55:45 UTC
Error in custom Karaf distribution
Dear all,
I am trying to get my own Karaf distribution but I am getting an error:
org.apache.maven.lifecycle.LifecycleExecutionException: 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
Any help will be grateful!
I have just update to maven 3.3.3. Here the mvn -v log:
Apache Maven 2.2.1 (rdebian-14)
Java version: 1.7.0_79
Java home: /opt/jdk1.7.0_79/jre
Default locale: es_ES, platform encoding: UTF-8
OS name: "linux" version: "3.16.0-44-generic" arch: "amd64" Family: "unix"
And here the pon.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>es.josealopez</groupId>
<artifactId>jalp-karaf</artifactId>
<version>3.0.0</version>
<packaging>karaf-assembly</packaging>
<name>Apache Karaf :: JALP Distribution</name>
<dependencies>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>3.0.1</version>
<type>kar</type>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<classifier>features</classifier>
<type>xml</type>
<version>3.0.1</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.apache.karaf.cellar</groupId>
<artifactId>apache-karaf-cellar</artifactId>
<classifier>features</classifier>
<version>3.0.0</version>
<type>xml</type>
<scope>runtime</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.9</version>
<executions>
<execution>
<id>copy</id>
<phase>generate-resources</phase>
<goals>
<goal>copy</goal>
</goals>
<configuration>
<artifactItems>
<artifactItem>
<groupId>es.aquiline</groupId>
<artifactId>himrt-branding</artifactId>
<version>0.1</version>
<outputDirectory>target/assembly/lib</outputDirectory>
</artifactItem>
</artifactItems>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>process-resources</id>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.0.0</version>
<extensions>true</extensions>
<configuration>
<bootFeatures>
<feature>jaas</feature>
<feature>shell</feature>
<feature>ssh</feature>
<feature>management</feature>
<feature>bundle</feature>
<feature>config</feature>
<feature>deployer</feature>
<feature>diagnostic</feature>
<feature>instance</feature>
<feature>kar</feature>
<feature>log</feature>
<feature>package</feature>
<feature>service</feature>
<feature>system</feature>
</bootFeatures>
<installedFeatures>
<feature>wrapper</feature>
<feature>spring/4.0.7.RELEASE_1</feature>
</installedFeatures>
</configuration>
</plugin>
</plugins>
</build>
</project>
--
View this message in context: http://karaf.922171.n3.nabble.com/Error-in-custom-Karaf-distribution-tp4041910.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Error in custom Karaf distribution
Posted by Jose A Lopez <jo...@gmail.com>.
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 </body> must match start tag name <hr> from line 7 (position:
TEXT seen ...</address>\n</body>... @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é Antonio López 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]
> <http:///user/SendEmail.jtp?type=node&node=4041936&i=0>>:
>
>> Many thanks for your answer Morgan but it still not working. I have try to
>> add the Snapshots reposotory in that way:
>>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>>
>> <modelVersion>4.0.0</modelVersion>
>>
>> <groupId>es.josealopez</groupId>
>> <artifactId>jalp-karaf</artifactId>
>> <version>4.0.1-SNAPSHOT</version>
>> <packaging>karaf-assembly</packaging>
>> <name>Apache Karaf :: JALP distribution</name>
>>
>>
>> <repositories>
>> <repository>
>> <id>apache.snapshots</id>
>> <name>Apache Development Snapshot Repository</name>
>> <url>https://repository.apache.org/content/groups/snapshots/
>> </url>
>> <releases>
>> <enabled>false</enabled>
>> </releases>
>> <snapshots>
>> <enabled>true</enabled>
>> </snapshots>
>> </repository>
>> </repositories>
>>
>> <pluginRepositories>
>> <pluginRepository>
>> <id>apache.snapshots</id>
>> <name>Apache Development Snapshot Repository</name>
>> <url>
>> https://repository.apache.org/content/repositories/snapshots/</url>
>> <releases>
>> <enabled>false</enabled>
>> </releases>
>> <snapshots>
>> <enabled>true</enabled>
>> </snapshots>
>> </pluginRepository>
>> </pluginRepositories>
>>
>> <dependencies>
>> <dependency>
>> <!-- scope is compile so all features (there is only one) are
>> installed into startup.properties and the feature repo itself is not added
>> in etc/org.apache.karaf.features.cfg file -->
>> <groupId>org.apache.karaf.features</groupId>
>> <artifactId>framework</artifactId>
>> <version>4.0.1-SNAPSHOT</version>
>> <type>kar</type>
>> </dependency>
>> <dependency>
>> <!-- scope is runtime so the feature repo is listed in
>> etc/org.apache.karaf.features.cfg file, and features will installed into
>> the system directory -->
>> <groupId>org.apache.karaf.features</groupId>
>> <artifactId>standard</artifactId>
>> <version>4.0.1-SNAPSHOT</version>
>> <classifier>features</classifier>
>> <type>xml</type>
>> <scope>runtime</scope>
>> </dependency>
>>
>> </dependencies>
>>
>> <build>
>> <!-- if you want to include resources in the distribution -->
>> <resources>
>> <resource>
>> <directory>src/main/resources</directory>
>> <filtering>false</filtering>
>> <includes>
>> <include>**/*</include>
>> </includes>
>> </resource>
>> <resource>
>> <directory>src/main/filtered-resources</directory>
>> <filtering>true</filtering>
>> <includes>
>> <include>**/*</include>
>> </includes>
>> </resource>
>> </resources>
>>
>> <plugins>
>>
>>
>>
>>
>> <!-- if you want to include resources in the distribution -->
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-resources-plugin</artifactId>
>> <version>2.6</version>
>> <executions>
>> <execution>
>> <id>process-resources</id>
>> <goals>
>> <goal>resources</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>> <!-- karaf-maven-plugin will call both assembly and archive
>> goals -->
>> <plugin>
>> <groupId>org.apache.karaf.tooling</groupId>
>> <artifactId>karaf-maven-plugin</artifactId>
>> <version>4.0.1-SNAPSHOT</version>
>> <extensions>true</extensions>
>> <configuration>
>> <!-- no startupFeatures -->
>> <bootFeatures>
>> <feature>standard</feature>
>> <feature>management</feature>
>> </bootFeatures>
>> <!-- no installedFeatures -->
>> </configuration>
>> </plugin>
>>
>> </plugins>
>> </build>
>> </project>
>>
>> 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 </body> must match start tag name <hr> from line 7 (position:
>> TEXT seen ...</address>\n</body>... @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é Antonio López Pastor
>>
>>
>> 2015-08-19 7:45 GMT+02:00 Morgan Hautman [via Karaf] <
>> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4041936&i=1>>:
>>
>> > 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.xml
>> >
>> > Regards,
>> > Morgan
>> >
>> > 2015-08-19 0:34 GMT+02:00 Jose A Lopez <[hidden email]
>> > <http:///user/SendEmail.jtp?type=node&node=4041923&i=0>>:
>>
>> >
>> >> 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:
>> >>
>> >> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> >> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>> >>
>> >> <modelVersion>4.0.0</modelVersion>
>> >>
>> >> <groupId>es.josealopez</groupId>
>> >> <artifactId>jalp-karaf</artifactId>
>> >> <version>4.0.0</version>
>> >> <packaging>karaf-assembly</packaging>
>> >> <name>Apache Karaf :: JALP distribution</name>
>> >>
>> >> <dependencies>
>> >> <dependency>
>> >>
>> >> <groupId>org.apache.karaf.features</groupId>
>> >> <artifactId>framework</artifactId>
>> >> <version>4.0.0</version>
>> >> <type>kar</type>
>> >> </dependency>
>> >> <dependency>
>> >>
>> >> <groupId>org.apache.karaf.features</groupId>
>> >> <artifactId>standard</artifactId>
>> >> <version>4.0.0</version>
>> >> <classifier>features</classifier>
>> >> <type>xml</type>
>> >> <scope>runtime</scope>
>> >> </dependency>
>> >>
>> >> </dependencies>
>> >>
>> >> <build>
>> >>
>> >> <resources>
>> >> <resource>
>> >> <directory>src/main/resources</directory>
>> >> <filtering>false</filtering>
>> >> <includes>
>> >> <include>**/*</include>
>> >> </includes>
>> >> </resource>
>> >> <resource>
>> >> <directory>src/main/filtered-resources</directory>
>> >> <filtering>true</filtering>
>> >> <includes>
>> >> <include>**/*</include>
>> >> </includes>
>> >> </resource>
>> >> </resources>
>> >>
>> >> <plugins>
>> >>
>> >> <plugin>
>> >> <groupId>org.apache.maven.plugins</groupId>
>> >> <artifactId>maven-resources-plugin</artifactId>
>> >> <version>2.6</version>
>> >> <executions>
>> >> <execution>
>> >> <id>process-resources</id>
>> >> <goals>
>> >> <goal>resources</goal>
>> >> </goals>
>> >> </execution>
>> >> </executions>
>> >> </plugin>
>> >>
>> >> <plugin>
>> >> <groupId>org.apache.karaf.tooling</groupId>
>> >> <artifactId>karaf-maven-plugin</artifactId>
>> >> <version>4.0.0</version>
>> >> <extensions>true</extensions>
>> >> <configuration>
>> >>
>> >> <bootFeatures>
>> >> <feature>standard</feature>
>> >> <feature>management</feature>
>> >> </bootFeatures>
>> >>
>> >> </configuration>
>> >> </plugin>
>> >> </plugins>
>> >> </build>
>> >> </project>
>> >>
>> >> 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 class
>> is
>> >> missing: org/apache/maven/artifact/repository/RepositoryRequest
>> >> org.apache.maven.artifact.repository.RepositoryRequest
>> >> [INFO]
>> >>
>> ------------------------------------------------------------------------
>> >> [INFO] Trace
>> >> org.apache.maven.lifecycle.LifecycleExecutionException: 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/artifact/repository/RepositoryRequest
>> >> at
>> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
>> >> at
>> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>> >> at
>> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>> >> at
>> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> >> at
>> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>> >> at
>> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> >> at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> >> at
>> >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> >> 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: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 class
>> is
>> >> missing: org/apache/maven/artifact/repository/RepositoryRequest
>> >> at
>> >>
>> >>
>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669)
>> >> at
>> >>
>> >>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
>> >> at
>> >>
>> >>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> >> ... 17 more
>> >> Caused by:
>> >>
>> >>
>> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
>> >> 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(DefaultPluginManager.java:652)
>> >> ... 19 more
>> >> Caused by:
>> >>
>> >>
>> org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
>> >> Error starting component
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>> >> ... 21 more
>> >> Caused by:
>> >>
>> >>
>> org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
>> >> Error composing component
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(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='org.apache.maven.artifact.resolver.ArtifactResolver',
>> >> roleHint='null', fieldName='artifactResolver'} was missing
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.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.ComponentLookupException:
>> >> Unable to lookup component
>> >> 'org.apache.maven.artifact.resolver.ArtifactResolver', it could not be
>> >> created
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(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.makeException(JavaComponentFactory.java:77)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>> >> at
>> >>
>> >>
>> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(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.newInstance(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(RealmClassLoader.java:195)
>> >> at
>> >>
>> >>
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
>> >> at
>> >>
>> >>
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
>> >> at
>> >>
>> >>
>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java: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-tp4041910p4041921.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-tp4041910p4041923.html
>> > To unsubscribe from Error in custom Karaf distribution, click here
>> > < > .
>> > NAML
>> > <
>> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-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-tp4041910p4041935.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-tp4041910p4041936.html
> To unsubscribe from Error in custom Karaf distribution, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4041910&code=am9zZWFsb3BlenBhc3RvckBnbWFpbC5jb218NDA0MTkxMHwtMTg1NDc1NTM5NA==>
> .
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-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-tp4041910p4041958.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Error in custom Karaf distribution
Posted by Morgan Hautman <mo...@gmail.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 <jo...@gmail.com>:
> Many thanks for your answer Morgan but it still not working. I have try to
> add the Snapshots reposotory in that way:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>es.josealopez</groupId>
> <artifactId>jalp-karaf</artifactId>
> <version>4.0.1-SNAPSHOT</version>
> <packaging>karaf-assembly</packaging>
> <name>Apache Karaf :: JALP distribution</name>
>
>
> <repositories>
> <repository>
> <id>apache.snapshots</id>
> <name>Apache Development Snapshot Repository</name>
> <url>https://repository.apache.org/content/groups/snapshots/
> </url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </repository>
> </repositories>
>
> <pluginRepositories>
> <pluginRepository>
> <id>apache.snapshots</id>
> <name>Apache Development Snapshot Repository</name>
> <url>
> https://repository.apache.org/content/repositories/snapshots/</url>
> <releases>
> <enabled>false</enabled>
> </releases>
> <snapshots>
> <enabled>true</enabled>
> </snapshots>
> </pluginRepository>
> </pluginRepositories>
>
> <dependencies>
> <dependency>
> <!-- scope is compile so all features (there is only one) are
> installed into startup.properties and the feature repo itself is not added
> in etc/org.apache.karaf.features.cfg file -->
> <groupId>org.apache.karaf.features</groupId>
> <artifactId>framework</artifactId>
> <version>4.0.1-SNAPSHOT</version>
> <type>kar</type>
> </dependency>
> <dependency>
> <!-- scope is runtime so the feature repo is listed in
> etc/org.apache.karaf.features.cfg file, and features will installed into
> the system directory -->
> <groupId>org.apache.karaf.features</groupId>
> <artifactId>standard</artifactId>
> <version>4.0.1-SNAPSHOT</version>
> <classifier>features</classifier>
> <type>xml</type>
> <scope>runtime</scope>
> </dependency>
>
> </dependencies>
>
> <build>
> <!-- if you want to include resources in the distribution -->
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>false</filtering>
> <includes>
> <include>**/*</include>
> </includes>
> </resource>
> <resource>
> <directory>src/main/filtered-resources</directory>
> <filtering>true</filtering>
> <includes>
> <include>**/*</include>
> </includes>
> </resource>
> </resources>
>
> <plugins>
>
>
>
>
> <!-- if you want to include resources in the distribution -->
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-resources-plugin</artifactId>
> <version>2.6</version>
> <executions>
> <execution>
> <id>process-resources</id>
> <goals>
> <goal>resources</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> <!-- karaf-maven-plugin will call both assembly and archive
> goals -->
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>karaf-maven-plugin</artifactId>
> <version>4.0.1-SNAPSHOT</version>
> <extensions>true</extensions>
> <configuration>
> <!-- no startupFeatures -->
> <bootFeatures>
> <feature>standard</feature>
> <feature>management</feature>
> </bootFeatures>
> <!-- no installedFeatures -->
> </configuration>
> </plugin>
>
> </plugins>
> </build>
> </project>
>
> 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 </body> must match start tag name <hr> from line 7 (position:
> TEXT seen ...</address>\n</body>... @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é Antonio López Pastor
>
>
> 2015-08-19 7:45 GMT+02:00 Morgan Hautman [via Karaf] <
> ml-node+s922171n4041923h31@n3.nabble.com>:
>
> > 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.xml
> >
> > Regards,
> > Morgan
> >
> > 2015-08-19 0:34 GMT+02:00 Jose A Lopez <[hidden email]
> > <http:///user/SendEmail.jtp?type=node&node=4041923&i=0>>:
> >
> >> 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:
> >>
> >> <project xmlns="http://maven.apache.org/POM/4.0.0"
> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> >> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> >>
> >> <modelVersion>4.0.0</modelVersion>
> >>
> >> <groupId>es.josealopez</groupId>
> >> <artifactId>jalp-karaf</artifactId>
> >> <version>4.0.0</version>
> >> <packaging>karaf-assembly</packaging>
> >> <name>Apache Karaf :: JALP distribution</name>
> >>
> >> <dependencies>
> >> <dependency>
> >>
> >> <groupId>org.apache.karaf.features</groupId>
> >> <artifactId>framework</artifactId>
> >> <version>4.0.0</version>
> >> <type>kar</type>
> >> </dependency>
> >> <dependency>
> >>
> >> <groupId>org.apache.karaf.features</groupId>
> >> <artifactId>standard</artifactId>
> >> <version>4.0.0</version>
> >> <classifier>features</classifier>
> >> <type>xml</type>
> >> <scope>runtime</scope>
> >> </dependency>
> >>
> >> </dependencies>
> >>
> >> <build>
> >>
> >> <resources>
> >> <resource>
> >> <directory>src/main/resources</directory>
> >> <filtering>false</filtering>
> >> <includes>
> >> <include>**/*</include>
> >> </includes>
> >> </resource>
> >> <resource>
> >> <directory>src/main/filtered-resources</directory>
> >> <filtering>true</filtering>
> >> <includes>
> >> <include>**/*</include>
> >> </includes>
> >> </resource>
> >> </resources>
> >>
> >> <plugins>
> >>
> >> <plugin>
> >> <groupId>org.apache.maven.plugins</groupId>
> >> <artifactId>maven-resources-plugin</artifactId>
> >> <version>2.6</version>
> >> <executions>
> >> <execution>
> >> <id>process-resources</id>
> >> <goals>
> >> <goal>resources</goal>
> >> </goals>
> >> </execution>
> >> </executions>
> >> </plugin>
> >>
> >> <plugin>
> >> <groupId>org.apache.karaf.tooling</groupId>
> >> <artifactId>karaf-maven-plugin</artifactId>
> >> <version>4.0.0</version>
> >> <extensions>true</extensions>
> >> <configuration>
> >>
> >> <bootFeatures>
> >> <feature>standard</feature>
> >> <feature>management</feature>
> >> </bootFeatures>
> >>
> >> </configuration>
> >> </plugin>
> >> </plugins>
> >> </build>
> >> </project>
> >>
> >> 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 class
> is
> >> missing: org/apache/maven/artifact/repository/RepositoryRequest
> >> org.apache.maven.artifact.repository.RepositoryRequest
> >> [INFO]
> >> ------------------------------------------------------------------------
> >> [INFO] Trace
> >> org.apache.maven.lifecycle.LifecycleExecutionException: 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/artifact/repository/RepositoryRequest
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> >> at
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> >> at
> >> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> >> 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: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 class
> is
> >> missing: org/apache/maven/artifact/repository/RepositoryRequest
> >> at
> >>
> >>
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669)
> >> at
> >>
> >>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
> >> at
> >>
> >>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> >> ... 17 more
> >> Caused by:
> >>
> >>
> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> >> 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(DefaultPluginManager.java:652)
> >> ... 19 more
> >> Caused by:
> >>
> >>
> org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
> >> Error starting component
> >> at
> >>
> >>
> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109)
> >> at
> >>
> >>
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
> >> at
> >>
> >>
> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
> >> at
> >>
> >>
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
> >> ... 21 more
> >> Caused by:
> >>
> >>
> org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
> >> Error composing component
> >> at
> >>
> >>
> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
> >> at
> >>
> >>
> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
> >> at
> >>
> >>
> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(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='org.apache.maven.artifact.resolver.ArtifactResolver',
> >> roleHint='null', fieldName='artifactResolver'} was missing
> >> at
> >>
> >>
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154)
> >> at
> >>
> >>
> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
> >> at
> >>
> >>
> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
> >> at
> >>
> >>
> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.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.ComponentLookupException:
> >> Unable to lookup component
> >> 'org.apache.maven.artifact.resolver.ArtifactResolver', it could not be
> >> created
> >> at
> >>
> >>
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
> >> at
> >>
> >>
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(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.makeException(JavaComponentFactory.java:77)
> >> at
> >>
> >>
> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
> >> at
> >>
> >>
> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
> >> at
> >>
> >>
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
> >> at
> >>
> >>
> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(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.newInstance(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(RealmClassLoader.java:195)
> >> at
> >>
> >>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> >> at
> >>
> >>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> >> at
> >>
> >>
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java: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-tp4041910p4041921.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-tp4041910p4041923.html
> > To unsubscribe from Error in custom Karaf distribution, click here
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4041910&code=am9zZWFsb3BlenBhc3RvckBnbWFpbC5jb218NDA0MTkxMHwtMTg1NDc1NTM5NA==
> >
> > .
> > NAML
> > <
> http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-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-tp4041910p4041935.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Re: Error in custom Karaf distribution
Posted by Jose A Lopez <jo...@gmail.com>.
Many thanks for your answer Morgan but it still not working. I have try to
add the Snapshots reposotory in that way:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>es.josealopez</groupId>
<artifactId>jalp-karaf</artifactId>
<version>4.0.1-SNAPSHOT</version>
<packaging>karaf-assembly</packaging>
<name>Apache Karaf :: JALP distribution</name>
<repositories>
<repository>
<id>apache.snapshots</id>
<name>Apache Development Snapshot Repository</name>
<url>https://repository.apache.org/content/groups/snapshots/
</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<name>Apache Development Snapshot Repository</name>
<url>
https://repository.apache.org/content/repositories/snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
<dependencies>
<dependency>
<!-- scope is compile so all features (there is only one) are
installed into startup.properties and the feature repo itself is not added
in etc/org.apache.karaf.features.cfg file -->
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>4.0.1-SNAPSHOT</version>
<type>kar</type>
</dependency>
<dependency>
<!-- scope is runtime so the feature repo is listed in
etc/org.apache.karaf.features.cfg file, and features will installed into
the system directory -->
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<version>4.0.1-SNAPSHOT</version>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<!-- if you want to include resources in the distribution -->
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<plugins>
<!-- if you want to include resources in the distribution -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>process-resources</id>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- karaf-maven-plugin will call both assembly and archive
goals -->
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.0.1-SNAPSHOT</version>
<extensions>true</extensions>
<configuration>
<!-- no startupFeatures -->
<bootFeatures>
<feature>standard</feature>
<feature>management</feature>
</bootFeatures>
<!-- no installedFeatures -->
</configuration>
</plugin>
</plugins>
</build>
</project>
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 </body> must match start tag name <hr> from line 7 (position:
TEXT seen ...</address>\n</body>... @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é Antonio López Pastor
2015-08-19 7:45 GMT+02:00 Morgan Hautman [via Karaf] <
ml-node+s922171n4041923h31@n3.nabble.com>:
> 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.xml
>
> Regards,
> Morgan
>
> 2015-08-19 0:34 GMT+02:00 Jose A Lopez <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=4041923&i=0>>:
>
>> 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:
>>
>> <project xmlns="http://maven.apache.org/POM/4.0.0"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
>> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>>
>> <modelVersion>4.0.0</modelVersion>
>>
>> <groupId>es.josealopez</groupId>
>> <artifactId>jalp-karaf</artifactId>
>> <version>4.0.0</version>
>> <packaging>karaf-assembly</packaging>
>> <name>Apache Karaf :: JALP distribution</name>
>>
>> <dependencies>
>> <dependency>
>>
>> <groupId>org.apache.karaf.features</groupId>
>> <artifactId>framework</artifactId>
>> <version>4.0.0</version>
>> <type>kar</type>
>> </dependency>
>> <dependency>
>>
>> <groupId>org.apache.karaf.features</groupId>
>> <artifactId>standard</artifactId>
>> <version>4.0.0</version>
>> <classifier>features</classifier>
>> <type>xml</type>
>> <scope>runtime</scope>
>> </dependency>
>>
>> </dependencies>
>>
>> <build>
>>
>> <resources>
>> <resource>
>> <directory>src/main/resources</directory>
>> <filtering>false</filtering>
>> <includes>
>> <include>**/*</include>
>> </includes>
>> </resource>
>> <resource>
>> <directory>src/main/filtered-resources</directory>
>> <filtering>true</filtering>
>> <includes>
>> <include>**/*</include>
>> </includes>
>> </resource>
>> </resources>
>>
>> <plugins>
>>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-resources-plugin</artifactId>
>> <version>2.6</version>
>> <executions>
>> <execution>
>> <id>process-resources</id>
>> <goals>
>> <goal>resources</goal>
>> </goals>
>> </execution>
>> </executions>
>> </plugin>
>>
>> <plugin>
>> <groupId>org.apache.karaf.tooling</groupId>
>> <artifactId>karaf-maven-plugin</artifactId>
>> <version>4.0.0</version>
>> <extensions>true</extensions>
>> <configuration>
>>
>> <bootFeatures>
>> <feature>standard</feature>
>> <feature>management</feature>
>> </bootFeatures>
>>
>> </configuration>
>> </plugin>
>> </plugins>
>> </build>
>> </project>
>>
>> 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 class is
>> missing: org/apache/maven/artifact/repository/RepositoryRequest
>> org.apache.maven.artifact.repository.RepositoryRequest
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Trace
>> org.apache.maven.lifecycle.LifecycleExecutionException: 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/artifact/repository/RepositoryRequest
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>> at
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>> 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: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 class is
>> missing: org/apache/maven/artifact/repository/RepositoryRequest
>> at
>>
>> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669)
>> at
>>
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
>> at
>>
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>> ... 17 more
>> Caused by:
>>
>> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
>> 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(DefaultPluginManager.java:652)
>> ... 19 more
>> Caused by:
>>
>> org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
>> Error starting component
>> at
>>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109)
>> at
>>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
>> at
>>
>> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
>> at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
>> ... 21 more
>> Caused by:
>>
>> org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
>> Error composing component
>> at
>>
>> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
>> at
>>
>> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
>> at
>>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(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='org.apache.maven.artifact.resolver.ArtifactResolver',
>> roleHint='null', fieldName='artifactResolver'} was missing
>> at
>>
>> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154)
>> at
>>
>> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
>> at
>>
>> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
>> at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.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.ComponentLookupException:
>> Unable to lookup component
>> 'org.apache.maven.artifact.resolver.ArtifactResolver', it could not be
>> created
>> at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
>> at
>>
>> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(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.makeException(JavaComponentFactory.java:77)
>> at
>>
>> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
>> at
>>
>> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
>> at
>>
>> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
>> at
>>
>> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(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.newInstance(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(RealmClassLoader.java:195)
>> at
>>
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
>> at
>>
>> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
>> at
>>
>> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java: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-tp4041910p4041921.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-tp4041910p4041923.html
> To unsubscribe from Error in custom Karaf distribution, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4041910&code=am9zZWFsb3BlenBhc3RvckBnbWFpbC5jb218NDA0MTkxMHwtMTg1NDc1NTM5NA==>
> .
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-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-tp4041910p4041935.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Error in custom Karaf distribution
Posted by Morgan Hautman <mo...@gmail.com>.
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.xml
Regards,
Morgan
2015-08-19 0:34 GMT+02:00 Jose A Lopez <jo...@gmail.com>:
> 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:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
>
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>es.josealopez</groupId>
> <artifactId>jalp-karaf</artifactId>
> <version>4.0.0</version>
> <packaging>karaf-assembly</packaging>
> <name>Apache Karaf :: JALP distribution</name>
>
> <dependencies>
> <dependency>
>
> <groupId>org.apache.karaf.features</groupId>
> <artifactId>framework</artifactId>
> <version>4.0.0</version>
> <type>kar</type>
> </dependency>
> <dependency>
>
> <groupId>org.apache.karaf.features</groupId>
> <artifactId>standard</artifactId>
> <version>4.0.0</version>
> <classifier>features</classifier>
> <type>xml</type>
> <scope>runtime</scope>
> </dependency>
>
> </dependencies>
>
> <build>
>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>false</filtering>
> <includes>
> <include>**/*</include>
> </includes>
> </resource>
> <resource>
> <directory>src/main/filtered-resources</directory>
> <filtering>true</filtering>
> <includes>
> <include>**/*</include>
> </includes>
> </resource>
> </resources>
>
> <plugins>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-resources-plugin</artifactId>
> <version>2.6</version>
> <executions>
> <execution>
> <id>process-resources</id>
> <goals>
> <goal>resources</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>karaf-maven-plugin</artifactId>
> <version>4.0.0</version>
> <extensions>true</extensions>
> <configuration>
>
> <bootFeatures>
> <feature>standard</feature>
> <feature>management</feature>
> </bootFeatures>
>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
> 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 class is
> missing: org/apache/maven/artifact/repository/RepositoryRequest
> org.apache.maven.artifact.repository.RepositoryRequest
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: 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/artifact/repository/RepositoryRequest
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at
> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> 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: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 class is
> missing: org/apache/maven/artifact/repository/RepositoryRequest
> at
>
> org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669)
> at
>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
> at
>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by:
>
> org.codehaus.plexus.component.repository.exception.ComponentLookupException:
> 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(DefaultPluginManager.java:652)
> ... 19 more
> Caused by:
>
> org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
> Error starting component
> at
>
> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109)
> at
>
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
> at
>
> org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
> at
>
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
> ... 21 more
> Caused by:
>
> org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
> Error composing component
> at
>
> org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
> at
>
> org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
> at
>
> org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(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='org.apache.maven.artifact.resolver.ArtifactResolver',
> roleHint='null', fieldName='artifactResolver'} was missing
> at
>
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154)
> at
>
> org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
> at
>
> org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
> at
>
> org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.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.ComponentLookupException:
> Unable to lookup component
> 'org.apache.maven.artifact.resolver.ArtifactResolver', it could not be
> created
> at
>
> org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
> at
>
> org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(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.makeException(JavaComponentFactory.java:77)
> at
>
> org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
> at
>
> org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
> at
>
> org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
> at
>
> org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(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.newInstance(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(RealmClassLoader.java:195)
> at
>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
> at
>
> org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
> at
>
> org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java: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-tp4041910p4041921.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
Re: Error in custom Karaf distribution
Posted by Jose A Lopez <jo...@gmail.com>.
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:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>es.josealopez</groupId>
<artifactId>jalp-karaf</artifactId>
<version>4.0.0</version>
<packaging>karaf-assembly</packaging>
<name>Apache Karaf :: JALP distribution</name>
<dependencies>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>4.0.0</version>
<type>kar</type>
</dependency>
<dependency>
<groupId>org.apache.karaf.features</groupId>
<artifactId>standard</artifactId>
<version>4.0.0</version>
<classifier>features</classifier>
<type>xml</type>
<scope>runtime</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
<resource>
<directory>src/main/filtered-resources</directory>
<filtering>true</filtering>
<includes>
<include>**/*</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>process-resources</id>
<goals>
<goal>resources</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.karaf.tooling</groupId>
<artifactId>karaf-maven-plugin</artifactId>
<version>4.0.0</version>
<extensions>true</extensions>
<configuration>
<bootFeatures>
<feature>standard</feature>
<feature>management</feature>
</bootFeatures>
</configuration>
</plugin>
</plugins>
</build>
</project>
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 class is
missing: org/apache/maven/artifact/repository/RepositoryRequest
org.apache.maven.artifact.repository.RepositoryRequest
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: 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/artifact/repository/RepositoryRequest
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:698)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
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: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 class is
missing: org/apache/maven/artifact/repository/RepositoryRequest
at
org.apache.maven.plugin.DefaultPluginManager.getConfiguredMojo(DefaultPluginManager.java:669)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:468)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLookupException:
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(DefaultPluginManager.java:652)
... 19 more
Caused by:
org.codehaus.plexus.component.repository.exception.ComponentLifecycleException:
Error starting component
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(AbstractComponentManager.java:109)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:95)
at
org.codehaus.plexus.component.manager.PerLookupComponentManager.getComponent(PerLookupComponentManager.java:48)
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:331)
... 21 more
Caused by:
org.codehaus.plexus.personality.plexus.lifecycle.phase.PhaseExecutionException:
Error composing component
at
org.codehaus.plexus.personality.plexus.lifecycle.phase.CompositionPhase.execute(CompositionPhase.java:33)
at
org.codehaus.plexus.lifecycle.AbstractLifecycleHandler.start(AbstractLifecycleHandler.java:101)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.startComponentLifecycle(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='org.apache.maven.artifact.resolver.ArtifactResolver',
roleHint='null', fieldName='artifactResolver'} was missing
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(FieldComponentComposer.java:154)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assembleComponent(FieldComponentComposer.java:73)
at
org.codehaus.plexus.component.composition.DefaultComponentComposerManager.assembleComponent(DefaultComponentComposerManager.java:68)
at
org.codehaus.plexus.DefaultPlexusContainer.composeComponent(DefaultPlexusContainer.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.ComponentLookupException:
Unable to lookup component
'org.apache.maven.artifact.resolver.ArtifactResolver', it could not be
created
at
org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:335)
at
org.codehaus.plexus.component.composition.FieldComponentComposer.assignRequirementToField(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.makeException(JavaComponentFactory.java:77)
at
org.codehaus.plexus.component.factory.java.JavaComponentFactory.newInstance(JavaComponentFactory.java:62)
at
org.codehaus.plexus.DefaultPlexusContainer.createComponentInstance(DefaultPlexusContainer.java:1464)
at
org.codehaus.plexus.component.manager.AbstractComponentManager.createComponentInstance(AbstractComponentManager.java:93)
at
org.codehaus.plexus.component.manager.ClassicSingletonComponentManager.getComponent(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.newInstance(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(RealmClassLoader.java:195)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
at
org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:274)
at
org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java: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-tp4041910p4041921.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: Error in custom Karaf distribution
Posted by Morgan Hautman <mo...@gmail.com>.
Hi,
As I see from the docs, the
<groupId>org.apache.karaf.features</groupId>
<artifactId>framework</artifactId>
<version>${version}</version>
needs to be the same as the version you defined in the karaf-maven-plugin.
You gave 3.0.1, please try with 4.0.0.
Ref:
https://karaf.apache.org/manual/latest/developers-guide/custom-distribution.html
Regards,
Morgan
2015-08-18 13:55 GMT+02:00 Jose A Lopez <jo...@gmail.com>:
> Dear all,
>
> I am trying to get my own Karaf distribution but I am getting an error:
> org.apache.maven.lifecycle.LifecycleExecutionException: 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
>
> Any help will be grateful!
>
> I have just update to maven 3.3.3. Here the mvn -v log:
> Apache Maven 2.2.1 (rdebian-14)
> Java version: 1.7.0_79
> Java home: /opt/jdk1.7.0_79/jre
> Default locale: es_ES, platform encoding: UTF-8
> OS name: "linux" version: "3.16.0-44-generic" arch: "amd64" Family: "unix"
>
> And here the pon.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <project xmlns="http://maven.apache.org/POM/4.0.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/xsd/maven-4.0.0.xsd">
> <modelVersion>4.0.0</modelVersion>
>
> <groupId>es.josealopez</groupId>
> <artifactId>jalp-karaf</artifactId>
> <version>3.0.0</version>
> <packaging>karaf-assembly</packaging>
> <name>Apache Karaf :: JALP Distribution</name>
>
> <dependencies>
> <dependency>
>
> <groupId>org.apache.karaf.features</groupId>
> <artifactId>framework</artifactId>
> <version>3.0.1</version>
> <type>kar</type>
> </dependency>
> <dependency>
>
> <groupId>org.apache.karaf.features</groupId>
> <artifactId>standard</artifactId>
> <classifier>features</classifier>
> <type>xml</type>
> <version>3.0.1</version>
> <scope>runtime</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.karaf.cellar</groupId>
> <artifactId>apache-karaf-cellar</artifactId>
> <classifier>features</classifier>
> <version>3.0.0</version>
> <type>xml</type>
> <scope>runtime</scope>
> </dependency>
>
> </dependencies>
>
> <properties>
>
> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> </properties>
>
> <build>
>
> <resources>
> <resource>
> <directory>src/main/resources</directory>
> <filtering>false</filtering>
> <includes>
> <include>**/*</include>
> </includes>
> </resource>
> <resource>
> <directory>src/main/filtered-resources</directory>
> <filtering>true</filtering>
> <includes>
> <include>**/*</include>
> </includes>
> </resource>
> </resources>
>
> <plugins>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-dependency-plugin</artifactId>
> <version>2.9</version>
> <executions>
> <execution>
> <id>copy</id>
>
> <phase>generate-resources</phase>
> <goals>
> <goal>copy</goal>
> </goals>
> <configuration>
> <artifactItems>
>
> <artifactItem>
>
> <groupId>es.aquiline</groupId>
>
> <artifactId>himrt-branding</artifactId>
>
> <version>0.1</version>
>
> <outputDirectory>target/assembly/lib</outputDirectory>
>
> </artifactItem>
> </artifactItems>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-resources-plugin</artifactId>
> <version>2.6</version>
> <executions>
> <execution>
> <id>process-resources</id>
> <goals>
> <goal>resources</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> <plugin>
> <groupId>org.apache.karaf.tooling</groupId>
> <artifactId>karaf-maven-plugin</artifactId>
> <version>4.0.0</version>
> <extensions>true</extensions>
> <configuration>
>
> <bootFeatures>
> <feature>jaas</feature>
> <feature>shell</feature>
> <feature>ssh</feature>
> <feature>management</feature>
> <feature>bundle</feature>
> <feature>config</feature>
> <feature>deployer</feature>
> <feature>diagnostic</feature>
> <feature>instance</feature>
> <feature>kar</feature>
> <feature>log</feature>
> <feature>package</feature>
> <feature>service</feature>
> <feature>system</feature>
> </bootFeatures>
> <installedFeatures>
> <feature>wrapper</feature>
> <feature>spring/4.0.7.RELEASE_1</feature>
> </installedFeatures>
> </configuration>
> </plugin>
> </plugins>
> </build>
> </project>
>
>
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Error-in-custom-Karaf-distribution-tp4041910.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>