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 <[email protected]>:
> 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.
>