Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Intro to Java Web Development with Spark Diving into Web Development Meet Spark

This pom.xml file works for this Spark project

I am using Visual Studio Code and Maven build tool for this project. I went to the Java Spark documentation at http://sparkjava.com/tutorials/maven-setup and copied their example of a pom.xml file into my own. After that, I added the slf4j dependency. Below is the pom.xml file that worked for me:

    <!-- model version - always 4.0.0 for Maven 2.x POMs -->

    <!-- project coordinates - values which uniquely identify this project -->


    <!-- library dependencies -->

If you see this error message: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation. SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

It means you need to include an slf4j logging implementation in your maven dependencies For example, add the following to your pom.xml dependencies: