code: protected MavenPomDescriptor createMavenPomDescriptor(Model model, Scanner scanner) {
          ScannerContext context = scanner.getContext();
          MavenPomDescriptor pomDescriptor = context.peek(MavenPomDescriptor.class);
          if (model instanceof EffectiveModel) {
              context.getStore().addDescriptorType(pomDescriptor, EffectiveDescriptor.class);
          }
          pomDescriptor.setName(model.getName());
          pomDescriptor.setGroupId(model.getGroupId());
          pomDescriptor.setArtifactId(model.getArtifactId());
          pomDescriptor.setPackaging(model.getPackaging());
          pomDescriptor.setVersion(model.getVersion());
          pomDescriptor.setUrl(model.getUrl());
          Coordinates artifactCoordinates = new ModelCoordinates(model);
          MavenArtifactDescriptor artifact = getArtifactResolver(context).resolve(artifactCoordinates, context);
          pomDescriptor.getDescribes().add(artifact);
          return pomDescriptor;
      }
docs: Create the descriptor and set base information.
  
  @param model
  The model.
  @param scanner
  The scanner.
  @return The descriptor.