Configure logging for Jetty's maven plugin?

后端 未结 2 963
感动是毒
感动是毒 2021-01-03 23:49

I\'m invoking the \"jetty:run\" goal with the following plugin configuration:


  org.mortbay.jetty
  

        
2条回答
  •  自闭症患者
    2021-01-04 00:06

    Answering my own question:

    1. Plugins don't see the project dependencies. You need to specify inside the .

    2. You need to specify a concrete slf4j implementation, such as logback. Specifying slf4j is not enough.

    The end-result should look something like this:

      
        org.mortbay.jetty
        jetty-maven-plugin
        7.4.4.v20110707
        
          5
          
            
              80
            
                  
        
        
          
            ch.qos.logback
            logback-classic
            0.9.29
          
        
      
    

提交回复
热议问题