2008/6/26 Hendy Irawan <[EMAIL PROTECTED]>:

> this is strange:
>

no actually, it's correct - if you crack open that jarfile
you will find it's not actually a bundle (no metadata)

the core artifact is only meant to be used for compiling
against, not deploying, because all OSGi frameworks
will provide the core classes by default - and including
another bundle with same/different versions of these
classes is not a good idea :)

note that the pax-plugin / pax-provision automatically
exclude non-bundle dependencies for you by checking
the manifest before passing them onto pax-runner

you can also mark dependencies as <optional> and
pax-plugin / pax-provision won't try to deploy them

I don't think pax-runner does anything like this itself,
if you want full maven support use pax-provision :)

[EMAIL PROTECTED]:~/project/ops4j/pax-script$ pax-run.sh --platform=equinox
> --profile=log scan-pom:file:pom.xml
>     ______  ________  __  __
>    / __  / /  __   / / / / /
>   /  ___/ /  __   / _\ \ _/
>  /  /    /  / /  / / _\ \
> /__/    /__/ /__/ /_/ /_/
>
> Pax Runner from OPS4J - http://www.ops4j.org
> --------------------------------------------
>
>  -> Using config [classpath:META-INF/runner.properties]
>  -> Provision from [scan-pom:file:pom.xml]
>  -> Using property [bundle.symbolicName=org.ops4j.pax.script]
>  -> Using property [bundle.namespace=org.ops4j.pax.script]
>  -> Installing bundle
> [{location=mvn:org.ops4j.pax.script/pax-script/1.0-SNAPSHOT,startlevel=null,shouldStart=true,shouldUpdate=false}]
>  -> Installing bundle
> [{location=mvn:org.osgi/osgi_R4_core/1.0,startlevel=null,shouldStart=true,shouldUpdate=false}]
>  -> Installing bundle
> [{location=mvn:org.osgi/osgi_R4_compendium/1.0,startlevel=null,shouldStart=true,shouldUpdate=false}]
>  -> Installing bundle
> [{location=mvn:org.ops4j.pax.swissbox/pax-swissbox-lifecycle/0.2.0,startlevel=null,shouldStart=true,shouldUpdate=false}]
>  -> Installing bundle
> [{location=mvn:org.ops4j.base/ops4j-base-lang/0.5.0,startlevel=null,shouldStart=true,shouldUpdate=false}]
>  -> Installing bundle
> [{location=mvn:org.ops4j.pax.swissbox/pax-swissbox-extender/0.2.0,startlevel=null,shouldStart=true,shouldUpdate=false}]
>  -> Installing bundle
> [{location=mvn:commons-logging/commons-logging-api/1.1,startlevel=null,shouldStart=true,shouldUpdate=false}]
>  -> Downloading bundles...
>  -> mvn:org.osgi/osgi_R4_core/1.0 : 444838 bytes @ [ 2457kBps ]
>          ___
>         /  /
>        /  / Oops, there has been a problem!
>       /  /
>      /__/
>     ___
>    /__/
>
>  -> java.lang.RuntimeException:
> org.ops4j.pax.runner.platform.PlatformException:
> [mvn:org.osgi/osgi_R4_core/1.0] is not a valid bundle
> java.lang.RuntimeException:
> org.ops4j.pax.runner.platform.PlatformException:
> [mvn:org.osgi/osgi_R4_core/1.0] is not a valid bundle
>     at org.ops4j.pax.runner.Run.startPlatform(Run.java:433)
>     at org.ops4j.pax.runner.Run.start(Run.java:156)
>     at org.ops4j.pax.runner.Run.main(Run.java:545)
>     at org.ops4j.pax.runner.Run.main(Run.java:518)
> Caused by: org.ops4j.pax.runner.platform.PlatformException:
> [mvn:org.osgi/osgi_R4_core/1.0] is not a valid bundle
>     at
> org.ops4j.pax.runner.platform.internal.PlatformImpl.validateBundleAndGetFilename(PlatformImpl.java:684)
>     at
> org.ops4j.pax.runner.platform.internal.PlatformImpl.download(PlatformImpl.java:565)
>     at
> org.ops4j.pax.runner.platform.internal.PlatformImpl.downloadBundles(PlatformImpl.java:399)
>     at
> org.ops4j.pax.runner.platform.internal.PlatformImpl.start(PlatformImpl.java:197)
>     at org.ops4j.pax.runner.Run.startPlatform(Run.java:429)
>     ... 3 more
> [EMAIL PROTECTED]:~/project/ops4j/pax-script$ svn info
> Path: .
> URL: https://scm.ops4j.org/repos/ops4j/laboratory/users/ceefour/pax-script
> Repository Root: https://scm.ops4j.org/repos/ops4j
> Repository UUID: 9b982a3c-3ae5-0310-a4bc-d9a3335569bd
> Revision: 12127
> Node Kind: directory
> Schedule: normal
> Last Changed Author: ceefour
> Last Changed Rev: 12127
> Last Changed Date: 2008-06-27 02:05:47 +0700 (Fri, 27 Jun 2008)
>
>
> any suggestions? deleting/refreshing the m2 repo in respect to the
> suspecting file is not helping
>
> pax-run.sh by itself runs just fine though...
>
>
> --
> Best regards,
> Hendy Irawan
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>
>


-- 
Cheers, Stuart
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to