code: private void processModel(final Model readModel) {
          this.model = readModel;
          
          Parent parent = readModel.getParent();
  
          if (this.groupId == null) {
              this.groupId = readModel.getGroupId();
              if (this.groupId == null && parent != null) {
                  this.groupId = parent.getGroupId();
              }
          }
          if (this.artifactId == null) {
              this.artifactId = readModel.getArtifactId();
          }
          if (this.version == null) {
              this.version = readModel.getVersion();
              if (this.version == null && parent != null) {
                  this.version = parent.getVersion();
              }
          }
          if (this.packaging == null) {
              this.packaging = readModel.getPackaging();
          }
      }
docs: Populates missing mojo parameters from the specified POM.
  
  @param readModel The POM to extract missing artifact coordinates from,
  must not be <code>null</code>.