jborgers / sonar-pmd

☕️ PMD Plugin for SonarQube
https://redirect.sonarsource.com/plugins/pmd.html
GNU Lesser General Public License v3.0
254 stars 154 forks source link

sonar-pmd-plugin v3.5.1 POM has unexpanded template variable in parent section. #470

Open ftclausen opened 1 month ago

ftclausen commented 1 month ago

In sonar-pmd-plugin v3.5.1 the POM has the following:

<parent>
<groupId>org.sonarsource.pmd</groupId>
<artifactId>sonar-pmd</artifactId>
<version>${revision}</version>
</parent>

Whereas v3.5.0 has

<parent>
<groupId>org.sonarsource.pmd</groupId>
<artifactId>sonar-pmd</artifactId>
<version>3.5.0</version>
</parent>

Notice the literal ${revision} in v3.5.1 - I think that's meant to be 3.5.1? This causes our build to fail trying to find a literal ${revision}. I suspect it has something to do with this commit but I didn't get time to figure it out fully.

stokpop commented 5 days ago

@ftclausen Thanks for the report, looking into it. Will try the maven flatten plugin to resolve all parameters before deploy.

stokpop commented 2 days ago

@ftclausen We have released a 3.5.2-SNAPSHOT. Can you please check if this works for this case? Then we can proceed to make a new release.

For our information: where did it need to resolve these versions in your build?