code: protected final void validateForMSBuild() throws MojoExecutionException
      {
          if ( !MSBuildPackaging.isValid( mavenProject.getPackaging() ) )
          {
              throw new MojoExecutionException( "Please set packaging to one of " + MSBuildPackaging.validPackaging() );
          }
          findMSBuild();
          validateProjectFile();
          platforms = MojoHelper.validatePlatforms( platforms );
      }
docs: Check the Mojo configuration provides sufficient data to construct an MSBuild command line.
  @throws MojoExecutionException is a validation step encounters an error.