Resolve Jetty Maven Plugin:please initialize the log4j system properly.
Jetty Maven Plugin Environment:
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactid>jetty-maven-plugin </artifactId> <version>8.1. Ten.v20130312</version></plugin>
To join the log configuration file:
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactid>jetty-maven-plugin </artifactId> <version>8.1. Ten.v20130312</version> <configuration> <systemProperties> < systemproperty> <name>log4j.configuration</name> <value>file:/${jetty.home}/ resources/log4j.properties</value> </systemProperty> </systemProperties> < /configuration></plugin>
This error disappears when finished!!
Add: But the system still does not play the info log that we want, carefully found here is another problem:
class " Org.slf4j.impl.StaticLoggerBinder " . Slf4j:defaulting to No-operation (NOP) Logger implementation
This problem solution will be explained in http://jerval.iteye.com/blog/1872787!
http://blog.csdn.net/jerval/article/details/8966990
Solution Jetty Maven Plugin:please Initialize the log4j system properly (RPM)