Skip to content

Commit

Permalink
Add properties to parameters of fix-artifacts-metadata mojo
Browse files Browse the repository at this point in the history
Fix #3505
  • Loading branch information
laeubi committed Feb 15, 2024
1 parent c9e3fe9 commit 1686f92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

public abstract class AbstractRepositoryMojo extends AbstractP2Mojo {

@Parameter
@Parameter(property = "p2.repository.location")
private File repositoryLocation;

protected File getAssemblyRepositoryLocation() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Mojo(name = "fix-artifacts-metadata", defaultPhase = LifecyclePhase.PREPARE_PACKAGE, threadSafe = true)
public class FixArtifactsMetadataMetadataMojo extends AbstractRepositoryMojo {

@Parameter(defaultValue = "${project.name}")
@Parameter(defaultValue = "${project.name}", property = "p2.repository.name")
private String repositoryName;

/**
Expand All @@ -48,7 +48,7 @@ public class FixArtifactsMetadataMetadataMojo extends AbstractRepositoryMojo {
* redundant file content.
* </p>
*/
@Parameter(defaultValue = "true")
@Parameter(defaultValue = "true", property = "p2.repository.xz")
private boolean xzCompress;

/**
Expand All @@ -58,7 +58,7 @@ public class FixArtifactsMetadataMetadataMojo extends AbstractRepositoryMojo {
* pre-Mars p2 clients which cannot read XZ-compressed index files.
* </p>
*/
@Parameter(defaultValue = "true")
@Parameter(defaultValue = "true", property = "p2.repository.xz.keep")
private boolean keepNonXzIndexFiles;

@Component
Expand Down

0 comments on commit 1686f92

Please sign in to comment.