Karaf
  1. Karaf
  2. KARAF-1680

org.apache.karaf:apache-karaf:2.2.8:xml:features artifact is not available, for building custom Karaf

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.8
    • Fix Version/s: 2.2.9, 2.3.0
    • Component/s: karaf-documentation
    • Labels:
      None

      Description

      According to http://karaf.apache.org/manual/2.2.8/developers-guide/custom-distribution.html :

          <dependency>
            <groupId>org.apache.karaf</groupId>
            <artifactId>apache-karaf</artifactId>
            <version>2.2.8</version>
            <type>xml</type>
            <classifier>features</classifier>
          </dependency>
      

      However, the artifact cannot be found in Maven central.

      Probable workaround :

      This seems to be the closest relevant artifact. I'm trying it now, but I'm yet not sure it will work...

      <dependency>
      	<groupId>org.apache.karaf.assemblies.features</groupId>
      	<artifactId>standard</artifactId>
      	<version>${karaf.version}</version>
      	<type>xml</type>
      	<classifier>features</classifier>
      </dependency>
      

      plugins section :

      <plugin>
      	<groupId>org.apache.karaf.tooling</groupId>
      	<artifactId>features-maven-plugin</artifactId>
      	<version>${karaf.version}</version>
      	<executions>
      		<execution>
      			<id>add-features-to-repo</id>
      			<phase>generate-resources</phase>
      			<goals>
      				<goal>add-features-to-repo</goal>
      			</goals>
      			<configuration>
      				<descriptors>
      					<descriptor>mvn:org.apache.karaf.assemblies.features/standard/${karaf.version}/xml/features</descriptor>
      					<descriptor>file:${project.basedir}/target/classes/soluvas-content-features.xml</descriptor>
      				</descriptors>
      				<features>
      					<feature>soluvas-content-feature</feature>
      				</features>
      			</configuration>
      		</execution>
      	</executions>
      </plugin>
      

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Jean-Baptiste Onofré
              Reporter:
              Hendy Irawan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development