zoukankan      html  css  js  c++  java
  • maven中jetty插件配置

    maven中jetty插件的配置,可用于项目在内置jetty服务器中的部署。

    <plugin>
                    <groupId>org.mortbay.jetty</groupId>
                    <artifactId>maven-jetty-plugin</artifactId>
                    <configuration>
                        <contextPath>/Demo1</contextPath>
                        <connectors>
                            <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                                <port>8088</port>
                            </connector>
                        </connectors>
                        <scanIntervalSeconds>10</scanIntervalSeconds>
                    </configuration>
    
                </plugin>

    这样配置后我的项目在8088端口启动成功

    [INFO] Starting jetty 6.1.26 ...
    [INFO] jetty-6.1.26
    [INFO] No Transaction manager found - if your webapp requires one, please configure one.
    [INFO] Started SelectChannelConnector@0.0.0.0:8088
    [INFO] Started Jetty Server
    [INFO] Starting scanner at interval of 10 seconds.
    [INFO] restarting org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@37e21f{/Demo1,E:eclipse4.2workspaceDemo1srcmainwebapp}
    [INFO] Webapp source directory = E:eclipse4.2workspaceDemo1srcmainwebapp
    [INFO] Reload Mechanic: automatic
    [INFO] Classes = E:eclipse4.2workspaceDemo1	argetclasses
    [INFO] Context path = /Demo1
    [INFO] Tmp directory =  determined at runtime
    [INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
    [INFO] Web overrides =  none
    [INFO] web.xml file = E:eclipse4.2workspaceDemo1srcmainwebappWEB-INFweb.xml
    [INFO] Webapp directory = E:eclipse4.2workspaceDemo1srcmainwebapp
    [INFO] Reconfiguring scanner after change to pom.xml ...
    [INFO] No Transaction manager found - if your webapp requires one, please configure one.
    [INFO] Restart completed at Sun Apr 17 13:32:10 CST 2016
  • 相关阅读:
    android 中使用AsyncTask实现简单的异步编程
    android TextView 垂直自动滚动
    (转)c3p0配置大全
    Android中在底端显示选项卡
    android 中ImageView的scaletype属性
    android 权限大全
    Palm应用开发之六 常用命令及debug
    android spinner 实现Text 和 value
    [转载]【职场宝典】面试官如何看待学历?
    起跑
  • 原文地址:https://www.cnblogs.com/tibit/p/5400880.html
Copyright © 2011-2022 走看看