You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andreas Sewe <an...@buildingblobs.com> on 2020/08/03 19:24:05 UTC
Injecting ${project.baseUri} as mojo parameter doesn't work
Hi,
I think I have encountered a bug (with Maven 3.6.3). While
${project.baseUri} is available during for POM interpolation, it is not
injected into mojos:
Neither
> @Parameter(defaultValue = "${project.baseUri}", readonly = true, required = true)
> private String projectBaseUri;
nor
> @Parameter(defaultValue = "${project.baseUri}", readonly = true, required = true)
> private URI projectBaseUri;
work, which is (at least to me) surprising.
Is this expected behavior, a bug, or am I simply doing something wrong
in my @Parameter expressions?
Best wishes,
Andreas