Injecting ${project.baseUri} as mojo parameter doesn't work

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Injecting ${project.baseUri} as mojo parameter doesn't work

Andreas Sewe-3
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


signature.asc (849 bytes) Download Attachment