Maven's jetty plugin SSL configuration issue

后端 未结 4 1203
鱼传尺愫
鱼传尺愫 2020-12-09 22:44

I\'m using Jetty\'s plugin for Maven, version 7.0.0.pre5, but I have issues configuring it to have a SSL Connector. Whenever I start the application, it fails stating that t

4条回答
  •  佛祖请我去吃肉
    2020-12-09 23:19

    Not sure this is normal but the jetty-maven-plugin doesn't have jetty-ssl as dependency in its pom. So please update your pom like this:

    
      org.mortbay.jetty
      jetty-maven-plugin
      7.0.0.pre5
      
        
          
            8080
          
          
            8443
            src/test/resources/server.keystore
            123456
            123456
          
        
      
      
        
          org.mortbay.jetty
          jetty-ssl
          7.0.0.pre5
        
      
    
    

    And the plugin will succeed to load org.mortbay.jetty.ssl.SslSelectChannelConnector.

提交回复
热议问题