title: System.out.println() not working for maven build
body: <p>I have System.out.println() in two locations in my project.</p>
  
  <pre><code>    public class Class1{
          public static void main(String args[]){
                 String a = arg[1]; 
                 String b = arg[2]; 
                 System.out.println("printing in class 1");
                 Class2 obj = new Class2(a,b);
          }
      }
      public class Class2{
        public Class2(String a, String b){ //constructor
            System.out.println(a);
            System.out.println(b);
        }
      }
  </code></pre>
  
  <p>I need to do a maven build and create an executable jar file that I run from commandline passing the arguments.              </p>
  
  <p>The System.out.println() in Class1 is not working where as System.out.println() in Class2 is showing up.                     </p>
  
  <p>I am executing using the command <code> java -jar name.jar arg1 arg2 </code></p>
  
  <p>I could not figure out why it is not working in Class1.</p>
  
  <p>IDE that I am using is Eclipse.</p>