Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1263

Documentation fixes for http://felix.apache.org/site/61-extending-the-console.html

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Documentation, Karaf
    • None
    • neutral

    Description

      In docs : http://felix.apache.org/site/61-extending-the-console.html

      1.

      mvn archetype:create \
      -DarchetypeArtifactId=maven-archetype-quickstart \
      -DgroupId=org.apache.servicemix.gshell.samples \
      DartifactId=gshell-commmands \ <------ has a typo here, reduce 1 'm'
      -Dversion=1.0-SNAPSHOT

      2. Update the dependency list for gshell.core and spring-osgi:

      <dependency>
      <groupId>org.apache.felix</groupId>
      <artifactId>org.osgi.core</artifactId>
      <version>1.2.0</version>
      <scope>provided</scope>
      </dependency>
      <dependency>
      <groupId>org.apache.servicemix.kernel.gshell</groupId>
      <artifactId>org.apache.servicemix.kernel.gshell.core</artifactId>
      <version>1.1.0</version>
      </dependency>
      <dependency>
      <groupId>org.springframework.osgi</groupId>
      <artifactId>spring-osgi-core</artifactId>
      <version>1.2.0</version>
      </dependency>

      3. "Add the Spring Milestone Repository " step should not be needed, simply use dependency spring-osgi version 1.2.0 (already GA).

      4. The <build> part has invalid <dependency> fragment, should be removed. Moreover, I have to add additional Import-Package and Export-Package manifest, so it becomes:

      <build>
      <plugins>
      <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <!-- <version>1.4.0</version> // this should be optional -->
      <extensions>true</extensions>
      <configuration>
      <instructions>
      <Import-Package>org.apache.geronimo.gshell.command,org.apache.geronimo.gshell.wisdom.command,org.apache.geronimo.gshell.wisdom.registry,org.apache.servicemix.kernel.gshell.core,*</Import-Package>
      <Export-Package>org.apache.servicemix.gshell.sample.*</Export-Package>
      <Spring-Context>*;publish-context:=false;create-asynchronously:=false</Spring-Context>
      </instructions>
      </configuration>
      </plugin>
      </plugins>
      </build>

      5. Add a note that package names may change in the future due ServiceMix Kernel becoming Felix Karaf subproject including the GShell

      Attachments

        Activity

          People

            Unassigned Unassigned
            ceefour Hendy Irawan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: