title: Example of Travis CI yml file for java
body: <p>I am new to Travis CI, but I have connected my Github to it.
  I have also created a .travis.yml where I set the language to java.
  I have created a HelloWorld.java file and committed and pushed it to the repo.</p>
  
  <p>In Travis, there is no build at all. When I check requests under settings, I am seeing the commits, with the same status "Missing config", except for one stating "Build created successfully" but that has a red cross and red overlay when you hoover over it.</p>
  
  <p><a href="https://i.stack.imgur.com/7FDTl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/7FDTl.png" alt="enter image description here"></a></p>
  
  <p>Is my .travis.yml missing a lot of commands and scripts as I have only set the language? </p>
  
  <p>I dont have any build system as maven or the like on my mac installed, so the language setting won't suffice I guess. I need to put something in the script part for example:</p>
  
  <pre><code>jdk:
   - openjdk6
  script:
  mvn verify
  after_success:
  after_failure:
  </code></pre>
  
  <p>I need also to know what settings could be set for after_success and after_faliure.</p>
  
  <p>Thanks,
  Sohail</p>