josedee commented on code in PR #2244:
URL: 
https://github.com/apache/incubator-kie-examples/pull/2244#discussion_r3895027040


##########
kogito-springboot-examples/pom.xml:
##########
@@ -154,9 +269,222 @@
     <pluginManagement>
       <plugins>
         <plugin>
-          <groupId>org.springframework.boot</groupId>
-          <artifactId>spring-boot-maven-plugin</artifactId>
-          <version>${version.org.springframework.boot}</version>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-resources-plugin</artifactId>
+          <version>2.5</version>
+          <executions>
+            <execution>
+              <id>add-it-resources</id>
+              <phase>pre-integration-test</phase>
+              <goals>
+                <goal>copy-resources</goal>
+              </goals>
+              <configuration>
+                
<outputDirectory>${project.build.directory}/test-run/META-INF</outputDirectory>
+                <resources>
+                  <resource>
+                    <directory>target/classes/META-INF</directory>
+                  </resource>
+                </resources>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-failsafe-plugin</artifactId>
+          <version>${version.surefire.plugin}</version>
+          <configuration>
+            <forkCount>${surefire.forkCount}</forkCount>
+            <reuseForks>true</reuseForks>
+            <includes>
+              <include>${failsafe.include}</include>
+            </includes>
+            <excludes>
+              <exclude>${failsafe.exclude}</exclude>
+            </excludes>
+            <systemPropertyVariables>
+              <tests.category>${tests.category}</tests.category>
+              
<enable.resource.infinispan>${enable.resource.infinispan}</enable.resource.infinispan>
+              
<enable.resource.kafka>${enable.resource.kafka}</enable.resource.kafka>
+              
<enable.resource.postgresql>${enable.resource.postgresql}</enable.resource.postgresql>
+              
<enable.resource.mongodb>${enable.resource.mongodb}</enable.resource.mongodb>
+              
<container.image.keycloak>${container.image.keycloak}</container.image.keycloak>
+              
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
+              
<container.image.kafka>${container.image.kafka}</container.image.kafka>
+              
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
+            </systemPropertyVariables>
+            
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
+            
<workingDirectory>${project.build.directory}/test-run</workingDirectory>
+          </configuration>
+          <executions>
+            <execution>
+              <goals>
+                <goal>integration-test</goal>
+                <goal>verify</goal>
+              </goals>
+            </execution>
+          </executions>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>${version.enforcer.plugin}</version>
+          <executions>
+            <execution>
+              <id>enforce-versions</id>
+              <goals>
+                <goal>enforce</goal>
+              </goals>
+              <configuration>
+                <rules>
+                  <requireMavenVersion>
+                    <version>${version.maven}</version>
+                  </requireMavenVersion>
+                  <requireJavaVersion>
+                    <version>${maven.compiler.release}</version>
+                  </requireJavaVersion>
+                </rules>
+              </configuration>
+            </execution>
+          </executions>
+          <configuration>
+            <skip>true</skip>
+          </configuration>

Review Comment:
   Same here



##########
kogito-quarkus-examples/pom.xml:
##########
@@ -219,27 +337,257 @@
       <plugins>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-surefire-plugin</artifactId>
+          <artifactId>maven-resources-plugin</artifactId>
+          <version>2.5</version>
+          <executions>
+            <execution>
+              <id>add-it-resources</id>
+              <phase>pre-integration-test</phase>
+              <goals>
+                <goal>copy-resources</goal>
+              </goals>
+              <configuration>
+                
<outputDirectory>${project.build.directory}/test-run/META-INF</outputDirectory>
+                <resources>
+                  <resource>
+                    <directory>target/classes/META-INF</directory>
+                  </resource>
+                </resources>
+              </configuration>
+            </execution>
+          </executions>
+        </plugin>
+        <plugin>
+          <groupId>org.apache.maven.plugins</groupId>
+          <artifactId>maven-failsafe-plugin</artifactId>
           <version>${version.surefire.plugin}</version>
           <configuration>
+            <forkCount>${surefire.forkCount}</forkCount>
+            <reuseForks>true</reuseForks>
+            <includes>
+              <include>${failsafe.include}</include>
+            </includes>
+            <excludes>
+              <exclude>${failsafe.exclude}</exclude>
+            </excludes>
             <systemPropertyVariables>
               
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
+              
<quarkus.http.test-port>${tests.quarkus.http.port}</quarkus.http.test-port>
+              <tests.category>${tests.category}</tests.category>
+              
<enable.resource.infinispan>${enable.resource.infinispan}</enable.resource.infinispan>
+              
<enable.resource.kafka>${enable.resource.kafka}</enable.resource.kafka>
+              
<enable.resource.postgresql>${enable.resource.postgresql}</enable.resource.postgresql>
+              
<enable.resource.mongodb>${enable.resource.mongodb}</enable.resource.mongodb>
+              
<container.image.keycloak>${container.image.keycloak}</container.image.keycloak>
+              
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
+              
<container.image.kafka>${container.image.kafka}</container.image.kafka>
+              
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
             </systemPropertyVariables>
+            
<classesDirectory>${project.build.outputDirectory}</classesDirectory>
+            
<workingDirectory>${project.build.directory}/test-run</workingDirectory>
           </configuration>
+          <executions>
+            <execution>
+              <goals>
+                <goal>integration-test</goal>
+                <goal>verify</goal>
+              </goals>
+            </execution>
+          </executions>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
-          <artifactId>maven-failsafe-plugin</artifactId>
+          <artifactId>maven-enforcer-plugin</artifactId>
+          <version>${version.enforcer.plugin}</version>
+          <executions>
+            <execution>
+              <id>enforce-versions</id>
+              <goals>
+                <goal>enforce</goal>
+              </goals>
+              <configuration>
+                <rules>
+                  <requireMavenVersion>
+                    <version>${version.maven}</version>
+                  </requireMavenVersion>
+                  <requireJavaVersion>
+                    <version>${maven.compiler.release}</version>
+                  </requireJavaVersion>
+                </rules>
+              </configuration>
+            </execution>
+          </executions>
+          <configuration>
+            <skip>true</skip>
+          </configuration>

Review Comment:
   If we are defining the enforcer, why do we need to skip



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to