Question about <requirePlugins> in plugin packaging

maven
plugin
package
custom_plugin

(Nicolas Tisserand) #1

Hello,

The release 1.18.0.372 of sonar-packaging-maven-plugin supports the <requirePlugins> tag in pom.xml and I’ve a question about this property.
The documentation page of the build plugin doesn’t explain this property. I can’t find more documentation.
I’ve just found an example here, showing only <requirePlugins>java:4.15.0.12310</requirePlugins>

My plugin requires the sonar-xml. At least the release 2.0.1.2020. I’ve put this line :
<requirePlugins>xml:2.0.1</requirePlugins>

Is this syntax correct ?
Or should I precise the exact release like this xml:2.0.1.2020 ? (and then what about the future releases ?)
Or the full name of the plugin like this sonar-xml:2.0.1 ? (I don’t think so regarding to the found example)
Can I put a wildcard like this xml:2.0.1.* ?
Or something else ?

Any help will be appreciated.

Regards,
Nicolas.


(Julien Henry) #2

Hi @ntiss

I have updated the documentation to cover this attribute, thanks for the feedback.

My plugin requires the sonar-xml. At least the release 2.0.1.2020. I’ve put this line :
xml:2.0.1
Is this syntax correct ?

Yes

Wildcards are not supported, the version you give is a minimal version.


(Nicolas Tisserand) #3

Hi @Julien_HENRY Thank you very much for your reply.
I’ve seen that you’ve also updated the documentation. Nice ! :+1: