Skip to content

Commit

Permalink
Execute m-invoker-p in run-its profile
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Jul 22, 2022
1 parent aaf4120 commit 4f6a54c
Showing 1 changed file with 48 additions and 37 deletions.
85 changes: 48 additions & 37 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -155,45 +155,9 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<showErrors>true</showErrors>
<settingsFile>src/it/settings.xml</settingsFile>
<preBuildHookScript>setup</preBuildHookScript>
<postBuildHookScript>verify</postBuildHookScript>
<addTestClassPath>true</addTestClassPath>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<mavenOpts>-Djava.io.tmpdir=${project.build.directory}</mavenOpts>
<properties>
<maven.compiler.source>${maven.compiler.source}</maven.compiler.source>
<maven.compiler.target>${maven.compiler.target}</maven.compiler.target>
</properties>
<filterProperties>
<enforcerPluginVersion>${maven-enforcer-plugin.version}</enforcerPluginVersion>
</filterProperties>
<goals>
<goal>clean</goal>
<goal>initialize</goal>
</goals>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>run</goal>
</goals>
<configuration>
<streamLogs>false</streamLogs>
<debug>true</debug>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<reporting>
<plugins>
<plugin>
Expand All @@ -202,7 +166,54 @@
</plugin>
</plugins>
</reporting>

<profiles>
<profile>
<id>run-its</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-invoker-plugin</artifactId>
<configuration>
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
<showErrors>true</showErrors>
<settingsFile>src/it/settings.xml</settingsFile>
<preBuildHookScript>setup</preBuildHookScript>
<postBuildHookScript>verify</postBuildHookScript>
<addTestClassPath>true</addTestClassPath>
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
<mavenOpts>-Djava.io.tmpdir=${project.build.directory}</mavenOpts>
<properties>
<maven.compiler.source>${maven.compiler.source}</maven.compiler.source>
<maven.compiler.target>${maven.compiler.target}</maven.compiler.target>
</properties>
<filterProperties>
<enforcerPluginVersion>${maven-enforcer-plugin.version}</enforcerPluginVersion>
</filterProperties>
<goals>
<goal>clean</goal>
<goal>initialize</goal>
</goals>
</configuration>
<executions>
<execution>
<id>integration-test</id>
<goals>
<goal>install</goal>
<goal>run</goal>
</goals>
<configuration>
<streamLogs>false</streamLogs>
<debug>true</debug>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>java12</id>
<activation>
Expand Down

0 comments on commit 4f6a54c

Please sign in to comment.