title: Removing warning messages on IntelliJ IDEA while building Java project
body: <p>I am using IntelliJ IDEA Community Edition for the first time and using Maven to set up a TDD environment. The code that I am trying to test and the warning messages I had encountered along with the project structure are provided below.</p>
  
  <h2>Project Structure:</h2>
  
  <p><img src="https://i.stack.imgur.com/9Jrpq.png" alt="enter image description here"></p>
  
  <h2>Code:</h2>
  
  <pre><code>package miscellaneous;
  
  import org.junit.Test;
  
  import static org.junit.Assert.*;
  
  public class TestHello {
  
      // Methods to be tested.....
      private int Add1Plus1(int i, int j) {
          return (i + j);
      }
  
      @Test
      public void testAdd1Plus1() throws Exception {
          assertEquals(2, Add1Plus1(1, 1));
      }
  }
  </code></pre>
  
  <h2>Configuration details:</h2>
  
  <ul>
  <li><strong>Java compiler:</strong> 1.8.0_45</li>
  <li><strong>Maven Version:</strong> 3.0.5</li>
  <li><strong>Path to Maven user-settings file:</strong> /home/sandeep/Desktop/MyDocs/repos/git-repos/public/MavenCodeBase/settings.xml</li>
  <li><strong>Path to Maven local repository:</strong> /home/sandeep/Desktop/MyDocs/repos/maven-repos</li>
  <li><strong>pom.xml:</strong> <a href="http://pastebin.com/462Uytad" rel="noreferrer">http://pastebin.com/462Uytad</a></li>
  </ul>
  
  <h2>Warning messages:</h2>
  
  <pre><code>Warning:java: source value 1.5 is obsolete and will be removed in a future release
  Warning:java: target value 1.5 is obsolete and will be removed in a future release
  Warning:java: To suppress warnings about obsolete options, use -Xlint:-options.
  </code></pre>
  
  <h2>Question:</h2>
  
  <p>What is causing these messages and what would be a good/recommended way to fix these warning messages?</p>