mirror of https://github.com/apache/maven.git
[MNG-6599] use version from parent if necessary, like groupId
This commit is contained in:
parent
9dd4732b74
commit
37676a2617
|
@ -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]";
|
||||
|
|
Loading…
Reference in New Issue