Skip to content

Commit

Permalink
constructor signature change in org.apache.jackrabbit.filevault.maven…
Browse files Browse the repository at this point in the history
….packaging.mojo.ValidatePackageMojo
  • Loading branch information
stefanseifert committed Oct 15, 2024
1 parent 0e11387 commit 2bbabd9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void validateContentPackage(File packageFile, ValidatorContext context,

// instantiate Mojo to execute the validation (a bit hacky as we have to manually
// pass through the maven context objects here via reflection)
ValidatePackageMojo mojo = new ValidatePackageMojo();
ValidatePackageMojo mojo = new ValidatePackageMojo(mavenContext.getRepoSystem(), mavenContext.getBuildContext());
mojo.setLog(new InfoPrefixLog(mavenContext.getLog(), " "));

setProperty(mojo, "packageFile", packageFile);
Expand All @@ -116,9 +116,7 @@ private void validateContentPackage(File packageFile, ValidatorContext context,
setProperty(mojo, "session", mavenContext.getSession());
setProperty(mojo, "failOnValidationWarnings", false);
setProperty(mojo, "mapPackageDependencyToMavenGa", Collections.emptyList());
setProperty(mojo, "repositorySystem", mavenContext.getRepositorySystem());
setProperty(mojo, "resolutionErrorHandler", mavenContext.getResolutionErrorHandler());
setProperty(mojo, "buildContext", mavenContext.getBuildContext());
setProperty(mojo, "attachedArtifacts", Collections.emptyList());

Object validatorsSettings = MapExpander.getDeep(context.getOptions(), OPTION_VALIDATORS_SETTINGS);
Expand Down

0 comments on commit 2bbabd9

Please sign in to comment.