This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
What does that mean, "it's not working"? Do you get an error message when you try to build or run your project? If yes, then what exactly is the error message, and what commands exactly are you typing?
I think the dependency you've added is correct for Java EE 6. But it will only include the API for Java EE 6 in the classpath; to run your application, you'd need to deploy it in an application server that implements the Java EE 6 API.