You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2021/01/02 06:12:49 UTC

[karaf-decanter] branch master updated: [KARAF-6981] Use generic version number in examples and annotate the current version

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/karaf-decanter.git


The following commit(s) were added to refs/heads/master by this push:
     new 792a802  [KARAF-6981] Use generic version number in examples and annotate the current version
     new 56aa6a2  Merge pull request #219 from paulsp/KARAF-6981
792a802 is described below

commit 792a80232ab137fefc0d0f263a0c8104eb746dd9
Author: Paul Spencer <pa...@apache.org>
AuthorDate: Fri Jan 1 19:43:53 2021 -0500

    [KARAF-6981] Use generic version number in examples and annotate the current version
    
    - Use the generic 2.x.x as the Decanter version number in examples
    - Pass the project version number into the variable {project-version} for used in the documentation
---
 manual/pom.xml                                        | 1 +
 manual/src/main/asciidoc/user-guide/introduction.adoc | 6 ++++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/manual/pom.xml b/manual/pom.xml
index 97e0dfb..8132a48 100644
--- a/manual/pom.xml
+++ b/manual/pom.xml
@@ -55,6 +55,7 @@
                                 <linkcss>false</linkcss>
                                 <stylesheet>style/apache.css</stylesheet>
                                 <imagesdir>images</imagesdir>
+                                <project-version>${project.version}</project-version>
                             </attributes>
                         </configuration>
                     </execution>
diff --git a/manual/src/main/asciidoc/user-guide/introduction.adoc b/manual/src/main/asciidoc/user-guide/introduction.adoc
index da976a7..9eedcf4 100644
--- a/manual/src/main/asciidoc/user-guide/introduction.adoc
+++ b/manual/src/main/asciidoc/user-guide/introduction.adoc
@@ -32,14 +32,16 @@ Apache Karaf Decanter provides Karaf features for each collector, appender, aler
 The first thing to do is to add the Decanter features repository in Karaf:
 
 ----
-karaf@root()> feature:repo-add mvn:org.apache.karaf.decanter/apache-karaf-decanter/2.0.0/xml/features
+karaf@root()> feature:repo-add mvn:org.apache.karaf.decanter/apache-karaf-decanter/2.x.x/xml/features <1>
 ----
+<1> Substitute the desired version, i.e. {project-version}, for 2.x.x
 
 Or
 
 ----
-karaf@root()> feature:repo-add decanter 2.0.0
+karaf@root()> feature:repo-add decanter 2.x.x <1>
 ----
+<1> Substitute the desired version, i.e. {project-version}, for 2.x.x
 
 Now, you have to install the collectors, appenders, and eventually alerters feature to match your need.