code: protected void logSystemPropertiesAndBasedir() {
          if (getLog().isDebugEnabled()) {
  
              final StringBuilder builder = new StringBuilder();
  
              builder.append("\n+=================== [System properties]\n");
              builder.append("|\n");
  
              // Sort the system properties
              final SortedMap<String, Object> props = new TreeMap<String, Object>();
              props.put("basedir", FileSystemUtilities.getCanonicalPath(getProject().getBasedir()));
  
              for (Map.Entry<Object, Object> current : System.getProperties().entrySet()) {
                  props.put("" + current.getKey(), current.getValue());
              }
              for (Map.Entry<String, Object> current : props.entrySet()) {
                  builder.append("| [" + current.getKey() + "]: " + current.getValue() + "\n");
              }
  
              builder.append("|\n");
              builder.append("+=================== [End System properties]\n");
  
              // All done.
              getLog().debug(builder.toString().replace("\n", NEWLINE));
          }
      }
docs: Prints out the system properties to the Maven Log at Debug level.