[jboss-jira] [JBoss JIRA] (JGRP-2471) Parse version from POM
Bela Ban (Jira)
issues at jboss.org
Tue Apr 21 08:35:36 EDT 2020
[ https://issues.redhat.com/browse/JGRP-2471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14048904#comment-14048904 ]
Bela Ban commented on JGRP-2471:
--------------------------------
Hmm, cumbersome to read directly from pom.xml: the file may be missing from the classpath, e.g. IntelliJ does *not* by default copy it unless the POM is marked as resource...
Perhaps it's better to copy {{JGROUPS_VERSION.properties}} to {{./classes}} (or {{target/classes}}) and replace placeholders with real values. This is already done in maven, and can be done in ant, too.
> Parse version from POM
> ----------------------
>
> Key: JGRP-2471
> URL: https://issues.redhat.com/browse/JGRP-2471
> Project: JGroups
> Issue Type: Enhancement
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Minor
> Fix For: 5.0.0.Alpha6
>
>
> Currently, the version is set in the POM (maven), but also in {{conf/JGROUPS_VERSION.properties}}. This is cumbersome, as we have to update both files on a release (and change the version back to {{XXX-SNAPSHOT}} after the release).
> With the introduction of maven release-plugin, modifying the file is manual work that's unwanted.
> Therefore get rid of {{JGROUPS-VERSION.properties}} and read the version directly from the POM.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
More information about the jboss-jira
mailing list