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

          Hendy Irawan created issue -
          Hendy Irawan made changes -
          Field Original Value New Value
          Description According to http://karaf.apache.org/manual/2.2.8/developers-guide/custom-distribution.html :

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

          However, the artifact cannot be found in Maven central.

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

          {code}
          <dependency>
          <groupId>org.apache.karaf.assemblies.features</groupId>
          <artifactId>standard</artifactId>
          <version>${karaf.version}</version>
          <type>xml</type>
          <classifier>features</classifier>
          </dependency>
          {code}
          According to http://karaf.apache.org/manual/2.2.8/developers-guide/custom-distribution.html :

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

          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...

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

          plugins section :

          {code}
          <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>
          {code}
          Jean-Baptiste Onofré made changes -
          Assignee Jean-Baptiste Onofré [ jbonofre ]
          Hide
          Jean-Baptiste Onofré added a comment -

          We forgot to update the document when we changed the features mvn URL. I'm fixing that.

          Show
          Jean-Baptiste Onofré added a comment - We forgot to update the document when we changed the features mvn URL. I'm fixing that.
          Jean-Baptiste Onofré made changes -
          Fix Version/s 2.2.9 [ 12321741 ]
          Fix Version/s 2.3.0 [ 12320554 ]
          Fix Version/s 3.0.0 [ 12316040 ]
          Component/s karaf-feature [ 12315008 ]
          Jean-Baptiste Onofré made changes -
          Fix Version/s 3.0.0 [ 12316040 ]
          Jean-Baptiste Onofré made changes -
          Link This issue is related to KARAF-1682 [ KARAF-1682 ]
          Jean-Baptiste Onofré made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Jamie goodyear made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            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