Skip to content

Commit

Permalink
#569 fixed Maven ITs
Browse files Browse the repository at this point in the history
  • Loading branch information
DirkMahler committed Aug 3, 2024
1 parent aa6198e commit dfa0ace
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
invoker.goals.1 = install \
-Djqassistant.store.directory=${project.build.directory}/it/multimodule/multiparent/singlestore/target/jqassistant/store \
-Djqassistant.store.reset=false \
-Djqassistant.store.uri=file://${project.build.directory}/it/multimodule/multiparent/singlestore/target/jqassistant/store \
-Djqassistant.scan.reset=false \
-T2 \
-e
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
assert new File(basedir, 'target/jqassistant').exists()
assert !new File(basedir, 'module1/target/jqassistant').exists()
assert !new File(basedir, 'module2/target/jqassistant').exists()
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ public abstract class AbstractMojo extends org.apache.maven.plugin.AbstractMojo

private static final int CONFIGURATION_ORDINAL_EXECUTION_ROOT = 100;

private static final String PROPERTY_CONFIGURATION_LOCATIONS = "jqassistant.configuration.locations";

private static String createExecutionKey(MojoExecution mojoExecution) {
// Do NOT use a custom class for execution keys, as different modules may use
// different classloaders
Expand All @@ -54,7 +56,7 @@ private static String createExecutionKey(MojoExecution mojoExecution) {
/**
* The config locations.
*/
@Parameter(property = "jqassistant.configuration.locations")
@Parameter(property = PROPERTY_CONFIGURATION_LOCATIONS)
private List<String> configurationLocations;

@Parameter
Expand Down Expand Up @@ -276,7 +278,8 @@ private MavenConfiguration getConfiguration() {
.withEnvVariables()
.withClasspath()
.withProfiles(session.getProjectBuildingRequest()
.getActiveProfileIds());
.getActiveProfileIds())
.withIgnoreProperties(Set.of(PROPERTY_CONFIGURATION_LOCATIONS));
if (!executionRootDirectory.equals(currentProject.getBasedir())) {
builder.withWorkingDirectory(currentProject.getBasedir());
}
Expand Down

0 comments on commit dfa0ace

Please sign in to comment.