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 [email protected]:8088
[INFO] Started Jetty Server
[INFO] Starting scanner at interval of 10 seconds.
[INFO] restarting [email protected]{/Demo1,E:\eclipse4.2\workspace\Demo1\src\main\webapp}
[INFO] Webapp source directory = E:\eclipse4.2\workspace\Demo1\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO] Classes = E:\eclipse4.2\workspace\Demo1\target\classes
[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.2\workspace\Demo1\src\main\webapp\WEB-INF\web.xml
[INFO] Webapp directory = E:\eclipse4.2\workspace\Demo1\src\main\webapp
[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
时间: 2024-08-05 14:30:45

maven中jetty插件配置的相关文章

maven的jetty插件提示No Transaction manager found导致启动慢的解决方法

本文出处:http://blog.csdn.net/chaijunkun/article/details/37923905,转载请注明.由于本人不定期会整理相关博文,会对相应内容作出完善.因此强烈建议在原始出处查看此文.在使用maven开发web项目极大地方便了jar包的依赖,在测试时也可以集成Servlet容器,从启动速度和量级上看,Jetty无疑是不二选择,然而从8.x开始,如果你的web项目中不包含数据库访问(或者说没有事务管理器)的话,在其启动时会提示找不到事务管理器,输出信息如下: o

Eclipse下通过Maven的Jetty插件运行Web工程的配置

引用来源 Jetty7/8 的Maven插件配置:http://wiki.eclipse.org/Jetty/Feature/Jetty_Maven_Plugin Jetty9 最新的Maven插件配置:http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html 或者 最新RELEASE版配置 Jetty 各个版本的限制:http://wiki.eclipse.org/Jetty/Starting/Jett

Maven集成jetty插件

本机环境 JDK 7 Maven 3.2 Jetty 8.1.9 Eclipse Luna pom.xml 配置 在你的 pom.xml 文件里加入 jetty 插件的描写叙述信息(查看Jetty很多其它的版本号信息): [...] <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</art

如何通过Maven的Jetty插件运行Web工程

首先建议使用jetty9,因为据官方文档显示,Jetty 7 and Jetty 8 are now EOL (End of Life),如下.但是由于项目使用的版本一般都比较低,这里以jetty8为例. Version Servlet Java Namespace Licenses Site Status Jetty 9 Servlet 3.1 Java 1.8 org.eclipse.jetty.* EPLv1 /ASLv2 Eclipse.org Stable Release Jetty

maven集成jetty插件热部署

一.org.eclipse.jetty插件启动 1.maven依赖 <dependency>    <groupId>org.eclipse.jetty</groupId>    <artifactId>jetty-webapp</artifactId>    <version>9.4.5.v20170502</version> </dependency> 2.plugin <plugin>  &l

maven中tomcat怎么配置本地虚拟路径

1.server.xml <?xml version="1.0" encoding="UTF-8"?> <Server port="8005" shutdown="SHUTDOWN"> <GlobalNamingResources> <Resource name="UserDatabase" auth="Container" type="

Eclipse中Svn插件配置

1. Svn插件配置教程 http://www.cnblogs.com/ruiati/p/3584120.html 2. Svn插件使用教程 http://wenku.baidu.com/link?url=MrScWbcz1WV5R0ICkT-cesgs9C8Inv2Wscf2HV52aqcwhR9FzBV55q0BJshCaGJJ_PXMVB_BDtd6QRVjauBU00Wx1Xj5nzLLW6S0WOS8G9e

maven添加jetty插件,同时运行多个实例

<plugins> <!-- jetty插件 --> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <!--<version>9.0.0.v20130308</version>--> <version>9.2.7.v20150116</v

maven项目中jetty运行配置

<plugins> <!--编译插件--> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1.6</source> <target>1.6</target> <encoding>GBK<