根据Karaf 3.0.3 用户指南,有以下dev:watch
命令:
以下命令:
karaf@root> dev:watch *
将监视所有位置与 mvn:* 匹配并在其 URL 中具有“-SNAPSHOT”的捆绑包。
当我输入dev:watch *
时,我收到此错误:
Command not found: dev:watch
该命令在3.0.0 更改日志中的一些问题中仍然提到,但在以后的版本中没有。它是否已被删除,是否有替代命令或任何类似功能来更新快照包?
它尝试过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