mojohaus / versions

Versions Maven Plugin
https://www.mojohaus.org/versions/versions-maven-plugin/
Apache License 2.0
328 stars 266 forks source link

versions:property-updates-report xml report not showing currentVersion #976

Open Jiehong opened 1 year ago

Jiehong commented 1 year ago

Hello,

When running mvn versions:property-updates-report with formats set to xml, an xml report is generated.

However, that report does not contain the current value of a property, but only the lastVersion if something can be updated.

It would be nice if currentVersion could be filled-in, as per https://github.com/mojohaus/versions/blob/dbf6d65cbe745eb8d7df778ec67eb401729f7ad3/versions-model-report/src/main/mdo/property-updates-report.mdo#LL113C27-L113C41.

Here is an example:

    <property>
      <propertyName>surefire-plugin.version</propertyName>
      <propertyAssociations>
        <propertyAssociation>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
        </propertyAssociation>
      </propertyAssociations>
      <lastVersion>3.1.2</lastVersion>
      <minors>
        <minor>3.1.0</minor>
        <minor>3.1.0-atlassian-1</minor>
        <minor>3.1.0-atlassian-2</minor>
        <minor>3.1.2</minor>
      </minors>
      <status>minor available</status>
    </property>

Version of the plugin used: 2.16.0

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 365 days with no activity. Remove stale label or comment or this will be closed in 30 days.

Jiehong commented 2 weeks ago

Still a valid ticket