[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 @@ static String toId( Model model )
String artifactId = model.getArtifactId(); String artifactId = model.getArtifactId();
String version = model.getVersion(); String version = model.getVersion();
if ( version == null && model.getParent() != null )
{
version = model.getParent().getVersion();
}
if ( version == null ) if ( version == null )
{ {
version = "[unknown-version]"; version = "[unknown-version]";