I\'m trying to setup a webapp with maven2 managed dependcies. Here my pom.xml
This should indeed work, the slf4j-log4j12 binding contains org/slf4j/impl/StaticLoggerBinder
.
Some unrelated remarks:
Instead of repeating frameworks version in dependencies, you should use a property. For example:
...
3.0.2.RELEASE
...
org.springframework
spring-core
${spring.version}
...
hibernate-core
is a transitive dependency of hibernate-annotations
, you don't need to declare it (if you want to use JPA, you should actually depend on hibernate-entitymanager
).