rzo1 commented on code in PR #1898:
URL: https://github.com/apache/tomee/pull/1898#discussion_r2069354273


##########
tck/microprofile-tck/metrics/src/test/java/org/apache/tomee/microprofile/tck/metrics/MicroProfileMetricsTCKDeploymentPackager.java:
##########
@@ -38,9 +38,14 @@ public Archive<?> generateDeployment(final TestDeployment 
testDeployment,
                                          final 
Collection<ProtocolArchiveProcessor> processors) {
         final Archive<?> applicationArchive = 
testDeployment.getApplicationArchive();
         final WebArchive wrapperWar = ShrinkWrap.create(WebArchive.class, 
"microprofile-metrics.war");
-        if (applicationArchive instanceof JavaArchive) {
-            wrapperWar.addAsLibrary(applicationArchive);
-            return super.generateDeployment(new 
TestDeploymentDelegate(testDeployment, wrapperWar), processors);
+
+        // Move microprofile-config.properties from /META-INF/ to 
/WEB-INF/classes/META-INF/
+        // cf. https://github.com/microprofile/microprofile-config/issues/268
+        // cf. https://github.com/microprofile/microprofile-config#design <- 
should be on the class path which is /WEB-INF/classes in a WAR file
+        if 
(applicationArchive.contains("META-INF/microprofile-config.properties")) {

Review Comment:
   https://github.com/microprofile/microprofile-metrics/issues/803



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@tomee.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to