Skip to content

Commit

Permalink
KOGITO-4847 Fix local builds for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Stastny committed Apr 1, 2021
1 parent 8b9568a commit 34b4e7b
Show file tree
Hide file tree
Showing 24 changed files with 175 additions and 37 deletions.
13 changes: 10 additions & 3 deletions addons/cloudevents/cloudevents-spring-boot-addon-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@
<artifactId>kogito-maven-plugin</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-springboot-starter</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-cloudevents-spring-boot-addon</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -33,9 +43,6 @@
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<streamLogs>true</streamLogs>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<useLocalRepository>true</useLocalRepository>
<postBuildHookScript>verify</postBuildHookScript> <!-- no extension required -->
</configuration>
<executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
<excludes>
<exclude>**/Native*IT.java</exclude>
</excludes>
<systemProperties>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
</systemProperties>
</systemPropertyVariables>
</configuration>
<executions>
<execution>
Expand Down
2 changes: 1 addition & 1 deletion addons/persistence/infinispan-quarkus-health-addon/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
<goal>verify</goal>
</goals>
<configuration>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
</systemPropertyVariables>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
<includes>
<include>org/kie/kogito/task/management/test/*</include>
</includes>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
</systemPropertyVariables>
Expand Down
12 changes: 12 additions & 0 deletions archetypes/kogito-quarkus-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
22 changes: 22 additions & 0 deletions archetypes/kogito-quarkus-dm-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,28 @@
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-rules</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-decisions</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-predictions</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
6 changes: 6 additions & 0 deletions archetypes/kogito-springboot-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-springboot-starter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
6 changes: 6 additions & 0 deletions archetypes/kogito-springboot-dm-archetype/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-springboot-starter</artifactId>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand Down
14 changes: 14 additions & 0 deletions archetypes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@
<maven.compiler.release>11</maven.compiler.release>
</properties>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-archetype-plugin</artifactId>
<configuration>
<localRepositoryPath>${session.request.localRepositoryPath.path}</localRepositoryPath>
<settingsFile>${session.request.userSettingsFile.path}</settingsFile>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>

<profiles>
<profile>
<id>default</id>
Expand Down
16 changes: 13 additions & 3 deletions integration-tests/integration-tests-kogito-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,19 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-quarkus-bom</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>process-management-addon</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>
</dependencies>

<build>
Expand All @@ -28,9 +41,6 @@
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<streamLogs>true</streamLogs>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<useLocalRepository>true</useLocalRepository>
<postBuildHookScript>verify</postBuildHookScript> <!-- no extension required -->
<properties>
<version.io.quarkus>${version.io.quarkus}</version.io.quarkus>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@
<artifactId>maven-surefire-plugin</artifactId>
<version>@version.surefire.plugin@</version>
<configuration>
<systemProperties>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
<!-- quarkus plugin and being run by invoker, need to pass explicitly -->
<maven.repo.local>${session.request.localRepositoryPath.path}</maven.repo.local>
<maven.settings>${session.request.userSettingsFile.path}</maven.settings>
</systemProperties>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
4 changes: 2 additions & 2 deletions integration-tests/integration-tests-quarkus-decisions/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
</systemProperties>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
</systemPropertyVariables>
Expand Down Expand Up @@ -160,9 +160,9 @@
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<systemPropertyVariables combine.children="append">
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
</systemProperties>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
Expand Down
8 changes: 4 additions & 4 deletions integration-tests/integration-tests-quarkus-processes/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
<includes>
<include>org/kie/kogito/integrationtests/quarkus/*</include>
</includes>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
</systemPropertyVariables>
Expand Down Expand Up @@ -205,7 +205,7 @@
<include>org/kie/kogito/integrationtests/quarkus/*</include>
<include>org/kie/kogito/integrationtests/quarkus/infinispan/*</include>
</includes>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<enable.resource.infinispan>true</enable.resource.infinispan>
</systemPropertyVariables>
</configuration>
Expand Down Expand Up @@ -241,9 +241,9 @@
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<systemPropertyVariables combine.children="append">
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
</systemProperties>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/integration-tests-quarkus-rules/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<systemPropertyVariables combine.children="append">
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
</systemPropertyVariables>
Expand Down Expand Up @@ -164,9 +164,9 @@
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<systemPropertyVariables combine.children="append">
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
</systemProperties>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
Expand Down
26 changes: 23 additions & 3 deletions integration-tests/integration-tests-springboot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,29 @@
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-cloudevents-spring-boot-addon</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>kogito-test-utils</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>process-management-springboot-addon</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.kie.kogito</groupId>
<artifactId>task-management-springboot-addon</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.infinispan</groupId>
Expand Down Expand Up @@ -92,9 +115,6 @@
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<streamLogs>true</streamLogs>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<useLocalRepository>true</useLocalRepository>
<postBuildHookScript>verify</postBuildHookScript> <!-- no extension required -->
<properties>
<container.image.infinispan>${container.image.infinispan}</container.image.infinispan>
Expand Down
4 changes: 2 additions & 2 deletions jbpm/jbpm-bpmn2/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<systemPropertyVariables>
<!-- enforce strict variable checking for the sake of tests -->
<org.jbpm.variable.strict>true</org.jbpm.variable.strict>
</systemProperties>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
Expand Down
9 changes: 9 additions & 0 deletions kogito-build-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,10 @@
<excludes>
<exclude>${tests.surefire.include}</exclude>
</excludes>
<systemPropertyVariables>
<maven.repo.local>${session.request.localRepositoryPath.path}</maven.repo.local>
<maven.settings>${session.request.userSettingsFile.path}</maven.settings>
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
Expand All @@ -1114,6 +1118,8 @@
<org.uberfire.nio.git.daemon.enabled>false</org.uberfire.nio.git.daemon.enabled>
<org.uberfire.nio.git.ssh.enabled>false</org.uberfire.nio.git.ssh.enabled>
<org.uberfire.sys.repo.monitor.disabled>true</org.uberfire.sys.repo.monitor.disabled>
<maven.repo.local>${session.request.localRepositoryPath.path}</maven.repo.local>
<maven.settings>${session.request.userSettingsFile.path}</maven.settings>
</systemPropertyVariables>
</configuration>
</plugin>
Expand Down Expand Up @@ -1202,6 +1208,9 @@
<skipInstallation>${skipTests}</skipInstallation>
<skipInvocation>${skipTests}</skipInvocation>
<failIfNoProjects>true</failIfNoProjects>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<useLocalRepository>true</useLocalRepository>
</configuration>
</plugin>
<plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@
<goal>verify</goal>
</goals>
<configuration>
<systemProperties>
<systemPropertyVariables>
<native.image.path>
${project.build.directory}/${project.build.finalName}-runner
</native.image.path>
</systemProperties>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
Expand Down
Loading

0 comments on commit 34b4e7b

Please sign in to comment.