Bug 772643

Summary: Server MBean has wrong VersionNumber attribute
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jiri Locker <jlocker>
Component: Build ProcessAssignee: Julian Coleman <jcoleman>
Status: VERIFIED --- QA Contact: Jiri Locker <jlocker>
Severity: low Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GACC: jcoleman
Target Milestone: ---   
Target Release: BRMS 5.3.0.GA   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jiri Locker 2012-01-09 13:53:30 UTC
Description of problem:
The value of the attribute is
> -1.-1.-1.${version.qualifier}
which looks like the version cannot be found.

Version-Release number of selected component (if applicable):
ER2

Steps to Reproduce:
1. go to jmx-console
2. look up the jboss.system:type=ServerInfo MBean
3. check the VersionNumber attribute
  
Actual results:
-1.-1.-1.${version.qualifier}

Expected results:
Not sure, but I think it should be the same as in the message about server start completion. In ER2 it is
> 14:41:24,955 INFO  [ServerImpl] JBoss (Microcontainer) [5.3.0.BRMS-ER2 (build: SVNTag=5.3.0.BRMS-ER2 date=201201080913)] Started in 1m:57s:641ms

Additional info:

Comment 1 Julian Coleman 2012-01-20 15:41:19 UTC
Resolved with revision 10678 of:
  brms-p/pom.xml

Commit message:
  BZ#772643
  Add the build-helper-maven-plugin parse-version goal to populate the version
  properties (required for mangling run.jar).

Comment 2 Julian Coleman 2012-01-20 15:42:55 UTC
Note that the build-helper-maven-plugin appears to be unable to parse the
qualifier "BRMS-ER2", and truncates it to "BRMS".  This is probably only a
problem for non-CR builds though.

Comment 3 Jiri Locker 2012-03-06 13:22:17 UTC
Fix verified in ER4.

Attribute 'VersionNumber' of 'jboss.system:type=Server' MBean is now '5.3.0.BRMS-ER4'.