[
https://issues.apache.org/jira/browse/SLING-12418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17879038#comment-17879038
]
Pablo Castelo commented on SLING-12418:
---------------------------------------
In our case, we manually deployed the latest version to be able to use
extensions newer than 1.9.0 since it's required
[https://wcm.io/caconfig/extensions/changes-report.html#a1.9.0] and since it's
a usual behavior in on premise, since Adobe it's a bit lazy to update versions
there, I was expecting to have a bundle already available to use it, but if the
dependencies need to be added manually is also fine.
> Context Aware Config: latest caconfig-mock-plugin not updated
> -------------------------------------------------------------
>
> Key: SLING-12418
> URL: https://issues.apache.org/jira/browse/SLING-12418
> Project: Sling
> Issue Type: Improvement
> Affects Versions: Context-Aware Configuration Mock Plugin 1.5.4
> Reporter: Pablo Castelo
> Priority: Major
>
> In the last caconfig-mock-plugin dependency the versions are not up to date.
> * org.apache.sling.caconfig.api --> 1.1.2 (new 1.3.0)
> * org.apache.sling.caconfig.spi --> 1.3.4 (new 1.4.0)
> * org.apache.sling.caconfig.impl --> 1.4.14 (new 1.6.0)
> This is causing an issue when the annotation @ContextAwareConfigurarion is
> used on the code, since it needs at least impl 1.6.0 and spi 1.4.0.
> [https://github.com/apache/sling-org-apache-sling-testing-caconfig-mock-plugin/blob/master/src/main/java/org/apache/sling/testing/mock/caconfig/ContextPlugins.java#L183C75-L183C108]
> (based on the comment)
> Causing:
> {code:java}
> [ERROR] Errors:
> [ERROR] TitleTest.testPageTitleLTR » Runtime Before setup failed
> (org.apache.sling.testing.mock.caconfig.ContextPlugins$1@5d5ae6aa): Service
> reference type not found:
> org.apache.sling.caconfig.management.multiplexer.ConfigurationInjectResourceDetectionStrategyMultiplexer
> [ERROR] TitleTest.testPageTitleRTL » Runtime Before setup failed
> (org.apache.sling.testing.mock.caconfig.ContextPlugins$1@5d5ae6aa): Service
> reference type not found:
> org.apache.sling.caconfig.management.multiplexer.ConfigurationInjectResourceDetectionStrategyMultiplexer{code}
> My suggestion will be to release a new version with the latest versions to
> solve the issue
> As workaround, these two dependencies can be added to the pom
> {code:java}
> <dependency>
> <groupId>org.apache.sling</groupId>
> <artifactId>org.apache.sling.caconfig.impl</artifactId>
> <version>1.6.0</version>
> <scope>test</scope>
> </dependency>
> <dependency>
> <groupId>org.apache.sling</groupId>
> <artifactId>org.apache.sling.caconfig.spi</artifactId>
> <version>1.4.0</version>
> <scope>test</scope>
> </dependency> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)