code: public void execute()
          throws MojoExecutionException
      {
          validateOutputFile();
          List<?> list = getProject().getActiveProfiles();
          if ( getLog().isInfoEnabled() )
          {
              getLog().debug( list.size() + " profile(s) active" );
          }
          Properties properties = new Properties();
          for ( Iterator<?> iter = list.iterator(); iter.hasNext(); )
          {
              Profile profile = (Profile) iter.next();
              if ( profile.getProperties() != null )
              {
                  properties.putAll( profile.getProperties() );
              }
          }
  
          writeProperties( properties, getOutputFile() );
      }
docs: {@inheritDoc}