maven jetty - org.mortbay.jetty vs org.eclipse.jetty

后端 未结 3 664
天涯浪人
天涯浪人 2020-12-30 22:30

I\'m trying to use jetty to host a simple helloworld servlet using maven. I\'m very confused.

I followed these instructions, but when I issue mvn jetty:run

3条回答
  •  误落风尘
    2020-12-30 22:42

    Here is the working config for me. Uses the latest Jetty version.

    
        org.eclipse.jetty
        jetty-maven-plugin
        9.4.0.v20161208
        
            0
            ${basedir}/src/it/resources/jetty-context.xml
            
                /yourContextPath
            
            
            
                your/path.war
                /yourPath
            
            
            
            
        
    
    

提交回复
热议问题