karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kjell Otto <otto.kj...@gmail.com>
Subject pax-provision and profiles for Karaf 2.3.0
Date Mon, 22 Oct 2012 09:34:30 GMT
Hi there,

I've just tried to come up with a profile to be able to run karaf in a provision
by pax-provision.

Here is what I came up with, but it's not working since somehow it always
fails to install management:

myProject]$ pax-provision
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective
model for examples.myProject.build:compiled-bundle-settings:pom:1.0-SNAPSHOT
[WARNING] The expression ${pom.version} is deprecated. Please use
${project.version} instead.
[WARNING] The expression ${pom.version} is deprecated. Please use
${project.version} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer
support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] examples.myProject (OSGi project)
[INFO] myProject - plugin configuration
[INFO] myProject - wrapper instructions
[INFO] myProject - bundle instructions
[INFO] myProject - imported bundles
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building examples.myProject (OSGi project) 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-pax-plugin:1.5:provision (default-cli) @ myProject ---
[INFO] ~~~~~~~~~~~~~~~~~~~
[INFO]  No bundles found!
[INFO] ~~~~~~~~~~~~~~~~~~~
[INFO] Installing
/Users/kjellski/Projects/java/osgi/myProject/runner/deploy-pom.xml to
/Users/kjellski/.m2/repository/examples/myProject/build/deployment/1.0-SNAPSHOT/deployment-1.0-SNAPSHOT.pom
__________                 __________
\______   \_____  ___  ___ \______   \__ __  ____   ____   ___________
|     ___/\__  \ \  \/  /  |       _/  |  \/    \ /    \_/ __ \_  __ \
|    |     / __ \_>    <   |    |   \  |  /   |  \   |  \  ___/|  | \/
|____|    (____  /__/\_ \  |____|_  /____/|___|  /___|  /\___  >__|
               \/      \/         \/           \/     \/     \/

Pax Runner (1.7.6) from OPS4J - http://www.ops4j.org
----------------------------------------------------

 -> Using only arguments from command line
 -> Scan bundles from
[/Users/kjellski/Projects/java/osgi/myProject/runner/deploy-pom.xml]
 -> Scan bundles from
[scan-pom:file:/Users/kjellski/Projects/java/osgi/myProject/runner/deploy-pom.xml]
 -> Scan bundles from
[scan-composite:mvn:org.ops4j.pax.runner.profiles/karaf.shell/2.3.0/composite]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.felix/org.apache.felix.bundlerepository/1.6.6]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.felix/org.apache.felix.configadmin/1.4.0]
 -> Scan bundles from
[scan-bundle:mvn:org.ops4j.pax.logging/pax-logging-api/1.7.0]
 -> Scan bundles from
[scan-bundle:mvn:org.ops4j.pax.logging/pax-logging-service/1.7.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.aries.blueprint/org.apache.aries.blueprint/1.0.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.0.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.aries/org.apache.aries.util/1.0.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.asm/3.3_2]
 -> Scan bundles from [scan-bundle:mvn:org.apache.sshd/sshd-core/0.8.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.shell/org.apache.karaf.shell.dev/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.management/management/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.shell/org.apache.karaf.shell.console/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.shell/org.apache.karaf.shell.commands/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.shell/org.apache.karaf.shell.config/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.shell/org.apache.karaf.shell.log/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.shell/org.apache.karaf.shell.osgi/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.shell/org.apache.karaf.shell.packages/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.features/org.apache.karaf.features.command/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.features/org.apache.karaf.features.management/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.features/org.apache.karaf.features.core/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.boot/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.features/2.3.0]
 -> Scan bundles from [scan-bundle:mvn:org.apache.mina/mina-core/2.0.7]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.shell/org.apache.karaf.shell.obr/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.karaf.shell/org.apache.karaf.shell.ssh/2.3.0]
 -> Scan bundles from
[scan-bundle:mvn:org.apache.felix/org.apache.felix.fileinstall/3.2.6]
 -> Provision bundle
[mvn:org.apache.felix/org.apache.felix.bundlerepository/1.6.6, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.felix/org.apache.felix.configadmin/1.4.0, at default
start level, bundle will be started, bundle will be loaded from the
cache]
 -> Provision bundle [mvn:org.ops4j.pax.logging/pax-logging-api/1.7.0,
at default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.ops4j.pax.logging/pax-logging-service/1.7.0, at default start
level, bundle will be started, bundle will be loaded from the cache]
 -> Provision bundle
[mvn:org.apache.aries.blueprint/org.apache.aries.blueprint/1.0.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.0.0, at default
start level, bundle will be started, bundle will be loaded from the
cache]
 -> Provision bundle
[mvn:org.apache.aries/org.apache.aries.util/1.0.0, at default start
level, bundle will be started, bundle will be loaded from the cache]
 -> Provision bundle
[mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.asm/3.3_2,
at default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle [mvn:org.apache.sshd/sshd-core/0.8.0, at default
start level, bundle will be started, bundle will be loaded from the
cache]
 -> Provision bundle
[mvn:org.apache.karaf.shell/org.apache.karaf.shell.dev/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.management/management/2.3.0, at default start
level, bundle will be started, bundle will be loaded from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.shell/org.apache.karaf.shell.console/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.shell/org.apache.karaf.shell.commands/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.shell/org.apache.karaf.shell.config/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.shell/org.apache.karaf.shell.log/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.shell/org.apache.karaf.shell.osgi/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.shell/org.apache.karaf.shell.packages/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.features/org.apache.karaf.features.command/2.3.0,
at default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.features/org.apache.karaf.features.management/2.3.0,
at default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.features/org.apache.karaf.features.core/2.3.0,
at default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.modules/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.command/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.config/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.boot/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.deployer/org.apache.karaf.deployer.features/2.3.0,
at default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle [mvn:org.apache.mina/mina-core/2.0.7, at default
start level, bundle will be started, bundle will be loaded from the
cache]
 -> Provision bundle
[mvn:org.apache.karaf.shell/org.apache.karaf.shell.obr/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.karaf.shell/org.apache.karaf.shell.ssh/2.3.0, at
default start level, bundle will be started, bundle will be loaded
from the cache]
 -> Provision bundle
[mvn:org.apache.felix/org.apache.felix.fileinstall/3.2.6, at default
start level, bundle will be started, bundle will be loaded from the
cache]
 -> Preparing framework [Felix 4.0.2]
 -> Downloading bundles...
 -> Repository spec http://repo1.maven.org/maven2/ does not contain an
identifier. This is deprecated & discouraged & just evil.
 -> Repository spec http://repository.ops4j.org/maven2/ does not
contain an identifier. This is deprecated & discouraged & just evil.
 -> Resolved (org.apache.felix:org.apache.felix.bundlerepository:jar:1.6.6)
as /Users/kjellski/.m2/repository/org/apache/felix/org.apache.felix.bundlerepository/1.6.6/org.apache.felix.bundlerepository-1.6.6.jar
 -> mvn:org.apache.felix/org.apache.felix.bundlerepository/1.6.6 :
168279 bytes @ [ 56093kBps ]
 -> Resolved (org.apache.felix:org.apache.felix.configadmin:jar:1.4.0)
as /Users/kjellski/.m2/repository/org/apache/felix/org.apache.felix.configadmin/1.4.0/org.apache.felix.configadmin-1.4.0.jar
 -> mvn:org.apache.felix/org.apache.felix.configadmin/1.4.0 : 109181
bytes @ [ 109181kBps ]
 -> Resolved (org.ops4j.pax.logging:pax-logging-api:jar:1.7.0) as
/Users/kjellski/.m2/repository/org/ops4j/pax/logging/pax-logging-api/1.7.0/pax-logging-api-1.7.0.jar
 -> mvn:org.ops4j.pax.logging/pax-logging-api/1.7.0 : 94836 bytes @ [
94836kBps ]
 -> Resolved (org.ops4j.pax.logging:pax-logging-service:jar:1.7.0) as
/Users/kjellski/.m2/repository/org/ops4j/pax/logging/pax-logging-service/1.7.0/pax-logging-service-1.7.0.jar
 -> mvn:org.ops4j.pax.logging/pax-logging-service/1.7.0 : 558076 bytes
@ [ 558076kBps ]
 -> Resolved (org.apache.aries.blueprint:org.apache.aries.blueprint:jar:1.0.0)
as /Users/kjellski/.m2/repository/org/apache/aries/blueprint/org.apache.aries.blueprint/1.0.0/org.apache.aries.blueprint-1.0.0.jar
 -> mvn:org.apache.aries.blueprint/org.apache.aries.blueprint/1.0.0 :
437187 bytes @ [ 437187kBps ]
 -> Resolved (org.apache.aries.proxy:org.apache.aries.proxy:jar:1.0.0)
as /Users/kjellski/.m2/repository/org/apache/aries/proxy/org.apache.aries.proxy/1.0.0/org.apache.aries.proxy-1.0.0.jar
 -> mvn:org.apache.aries.proxy/org.apache.aries.proxy/1.0.0 : 89265
bytes @ [ 89265kBps ]
 -> Resolved (org.apache.aries:org.apache.aries.util:jar:1.0.0) as
/Users/kjellski/.m2/repository/org/apache/aries/org.apache.aries.util/1.0.0/org.apache.aries.util-1.0.0.jar
 -> mvn:org.apache.aries/org.apache.aries.util/1.0.0 : 108826 bytes @
[ 108826kBps ]
 -> Resolved (org.apache.servicemix.bundles:org.apache.servicemix.bundles.asm:jar:3.3_2)
as /Users/kjellski/.m2/repository/org/apache/servicemix/bundles/org.apache.servicemix.bundles.asm/3.3_2/org.apache.servicemix.bundles.asm-3.3_2.jar
 -> mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.asm/3.3_2
: 218473 bytes @ [ 218473kBps ]
 -> Resolved (org.apache.sshd:sshd-core:jar:0.8.0) as
/Users/kjellski/.m2/repository/org/apache/sshd/sshd-core/0.8.0/sshd-core-0.8.0.jar
 -> mvn:org.apache.sshd/sshd-core/0.8.0 : 376097 bytes @ [ 376097kBps ]
 -> Resolved (org.apache.karaf.shell:org.apache.karaf.shell.dev:jar:2.3.0)
as /Users/kjellski/.m2/repository/org/apache/karaf/shell/org.apache.karaf.shell.dev/2.3.0/org.apache.karaf.shell.dev-2.3.0.jar
 -> mvn:org.apache.karaf.shell/org.apache.karaf.shell.dev/2.3.0 :
199325 bytes @ [ 199325kBps ]
 -> mvn:org.apache.karaf.management/management/2.3.0 : connecting...
         ___
        /  /
       /  / Oops, there has been a problem!
      /  /
     /__/   org.ops4j.pax.runner.platform.PlatformException:
[mvn:org.apache.karaf.management/management/2.3.0] could not be
downloaded
    ___
   /__/     Use --log=debug to see details.

myProject]$

to reproduce this, you can create a project with pax-create-project
and just do nothing else then add the param like this:
<param>--profiles=karaf.shell/2.3.0</param> for the
pax-provision-plugin

My try for the profile is at github here: https://gist.github.com/3905879

Any hints are very much appreciated, thanks!

Mime
View raw message