Если установлено несколько версий пакета, как узнать, какая из них используется? - PullRequest
0 голосов
/ 07 мая 2019

Две разные версии одного и того же пакета развернуты в AEM, и оба пакета находятся в активном состоянии. Мой вопрос Как я могу узнать, какая версия пакета используется в настоящее время?

1 Ответ

0 голосов
/ 10 мая 2019

Скорее всего, проще всего получить доступ к AEM WebConsole, перейти на вкладку «Связки» , а затем развернуть интересные комплекты, а затем вы увидите все другие комплекты в списке, которые фактически импортируют пакеты, экспортированные этимпакет для записи «Импорт пакетов».

Если у вас есть доступ к оболочке OSGi (IDK, если AEM позволяет это), вы также можете использовать команду bundle:capabilities <bundle-id>, которая показывает «проводку» в случае экспортаиспользуется пакет, например (из установки Karaf, но выглядит очень похоже):

karaf@root()> bundle:capabilities 307                                                                                                                                      21:12:12
org.apache.felix.scr [307] provides:
------------------------------------
osgi.wiring.bundle; org.apache.felix.scr 2.0.8 [UNUSED]
osgi.wiring.host; org.apache.felix.scr 2.0.8 [UNUSED]
osgi.identity; org.apache.felix.scr 2.0.8 [UNUSED]
osgi.wiring.package; org.apache.felix.scr.component 1.1.0 [UNUSED]
osgi.wiring.package; org.apache.felix.scr.info 1.0.0 required by:
   org.apache.felix.scr.compat [133]
osgi.wiring.package; org.osgi.service.component 1.3.0 required by:
   org.apache.felix.scr.compat [133]
osgi.wiring.package; org.osgi.service.component.runtime 1.3.0 required by:
   org.apache.felix.scr.compat [133]
   org.apache.karaf.scr.state [135]
   org.apache.karaf.scr.command [311]
   org.apache.felix.webconsole.plugins.ds [351]
osgi.wiring.package; org.osgi.service.component.runtime.dto 1.3.0 required by:
   org.apache.karaf.scr.command [311]
   org.apache.karaf.scr.state [135]
   org.apache.felix.webconsole.plugins.ds [351]
   org.apache.felix.scr.compat [133]
osgi.wiring.package; org.osgi.util.function 1.0.0 [UNUSED]
osgi.wiring.package; org.osgi.util.promise 1.0.0 required by:
   org.apache.karaf.scr.command [311]
   org.apache.felix.webconsole.plugins.ds [351]
osgi.extender; osgi.component 1.3.0 [UNUSED]
[org.apache.felix.scr [307](R 307.0)] osgi.service; {objectClass=[org.osgi.service.component.runtime.ServiceComponentRuntime]} [UNUSED]
service; [org.osgi.service.component.runtime.ServiceComponentRuntime] with properties:
   service.bundleid = 307
   service.id = 110
   service.scope = singleton
   Used by:
      org.apache.felix.webconsole.plugins.ds [351]
      org.apache.karaf.scr.command [311]
service; [org.apache.felix.scr.impl.ScrGogoCommand] with properties:
   osgi.command.function = [config, disable, enable, info, list]
   osgi.command.scope = scr
   service.bundleid = 307
   service.description = SCR Gogo Shell Support
   service.id = 111
   service.scope = singleton
   service.vendor = The Apache Software Foundation
service; [org.osgi.service.cm.ManagedService] with properties:
   service.bundleid = 307
   service.description = SCR Configurator
   service.id = 112
   service.pid = org.apache.felix.scr.ScrService
   service.scope = bundle
   service.vendor = The Apache Software Foundation
   Used by:
      org.apache.felix.metatype [2]
...