根据Karaf 3.0.3 user guide,有dev:watch
命令:
以下命令:
karaf@root> dev:watch *
将监视所有位置匹配mvn:*且其网址中包含“-SNAPSHOT”的捆绑包。
当我输入dev:watch *
时,我收到此错误:
Command not found: dev:watch
3.0.0 change log中的某些问题仍然提到了该命令,但在以后的版本中却没有。它是否已被删除,是否有替代命令或任何类似功能来更新快照包?
它尝试bundle:watch *
但获得以下异常:
karaf@root()> Exception in thread "Thread-32" java.lang.NoClassDefFoundError: org/apache/karaf/util/maven/Parser
at org.apache.karaf.bundle.core.internal.BundleWatcherImpl.getBundleExternalLocation(BundleWatcherImpl.java:195)
at org.apache.karaf.bundle.core.internal.BundleWatcherImpl.updateBundleIfNecessary(BundleWatcherImpl.java:144)
at org.apache.karaf.bundle.core.internal.BundleWatcherImpl.run(BundleWatcherImpl.java:100)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.apache.karaf.util.maven.Parser not found by org.apache.karaf.bundle.core [31]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 4 more