[MNG-6599] use version from parent if necessary, like groupId

This commit is contained in:
Hervé Boutemy 2019-02-22 13:33:43 +01:00
parent 9dd4732b74
commit 37676a2617
1 changed files with 4 additions and 0 deletions

View File

@ -90,6 +90,10 @@ public class ModelProblemUtils
String artifactId = model.getArtifactId();
String version = model.getVersion();
if ( version == null && model.getParent() != null )
{
version = model.getParent().getVersion();
}
if ( version == null )
{
version = "[unknown-version]";