Tomcat: http://tomcat.apache.org/maven-plugin-2.1/
pom.xml
settings.xml
jetty: http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin
pom.xml
部署方式
1. 参考 http://www.cnblogs.com/fnng/archive/2011/12/16/2290587.html
2. 点击工具条的小虫子,然后选择Debug config(调试配置), 或者点击项目右键,Debug as(调试方式)-->选择Debug config(调试配置),选择Maven Build, 然后点右上角创建一个配置,在Goals输入:jetty:run, 这里可以使用多个命令,比如:clean jetty:run。然后点击debug(调试),开始以Debug方式运行工程。下次运行的时候,不用配置,右键或者点工具栏那里的debug,会多出刚才的这个配置,然后直接运行。
3.使用server(服务器) of eclipse的方式运行。参考: http://blog.csdn.net/laoshuisheng/article/details/6420003
注意:第2种方式,在包含多Module的时候,很难对代码进行调试,这种情况最好使用的3种。
pom.xml
<pluginManagement> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat6-maven-plugin</artifactId> <version>2.1</version> </plugin> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version> </plugin> </plugins> </pluginManagement>
settings.xml
<pluginGroups> .... <pluginGroup>org.apache.tomcat.maven</pluginGroup> .... </pluginGroups>命令: tomcat:run
jetty: http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin
pom.xml
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.10</version> <configuration> <stopPort>9966</stopPort> <stopKey>foo</stopKey> </configuration> </plugin>或者
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <version>6.1.20</version> <configuration> <contextPath>/jbpm5</contextPath> <!--<webDefaultXml>webdefault.xml</webDefaultXml> --> <scanIntervalSeconds>0</scanIntervalSeconds> <scanTargetPatterns> <scanTargetPattern> <directory>src/main/webapp/WEB-INF</directory> <excludes> <exclude>**/*.jsp</exclude> </excludes> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> </scanTargetPattern> </scanTargetPatterns> </configuration> </plugin>setting.xml
<profile> ... <pluginGroups> <pluginGroup>org.mortbay.jetty</pluginGroup> </pluginGroups> </profile>命令: jetty:run
部署方式
1. 参考 http://www.cnblogs.com/fnng/archive/2011/12/16/2290587.html
2. 点击工具条的小虫子,然后选择Debug config(调试配置), 或者点击项目右键,Debug as(调试方式)-->选择Debug config(调试配置),选择Maven Build, 然后点右上角创建一个配置,在Goals输入:jetty:run, 这里可以使用多个命令,比如:clean jetty:run。然后点击debug(调试),开始以Debug方式运行工程。下次运行的时候,不用配置,右键或者点工具栏那里的debug,会多出刚才的这个配置,然后直接运行。
3.使用server(服务器) of eclipse的方式运行。参考: http://blog.csdn.net/laoshuisheng/article/details/6420003
注意:第2种方式,在包含多Module的时候,很难对代码进行调试,这种情况最好使用的3种。
相关推荐
它可以把应用部署到Tomcat服务器,也可以把tomcat作为内嵌服务器启动,就像jetty一样。 使用JPDA启动tomcat的远程调试功能。这样就能与eclipse配合起来,轻松地实现调试。而且具有tomcat的热部署功能。
Jetty和Maven HelloWorld教程 Jetty(6)入门 (www.itjungle.com) Jetty Start.jar 配置Jetty 如何设置上下文(Context Path) 如何知道使用了那些jar包 如何配置SSL 如何使用非root用户监听80端口 如何配置连接器...
利用eclipse构建和部署maven工程,服务器可选择Tomcat或者Jetty!!
maven常用知识整理:项目依赖 多模块 WAR依赖 打包 热部署 maven-tomcat-plugin maven-jetty-plugin
* etc jetty配置文件目录 * examples jetty示例 * extras jetty可选扩展 * lib 包含jetty所需的jar文件 * LICENSES 就是LICENSES * modules 子模块 * patches 补丁patches * pom.xml is jetty的maven2构建文件 * ...
安装说明 我们建议从源代码构建和运行。 这应该很简单,并且在故障排除和错误修复方面最实用。...如果您想立即运行系统,请使用mvn jetty:run-war从构建的 war 文件运行项目。 我们建议将target/sciKnowMin
springboot框架 一、Spring Boot基础应用 Spring Boot特征 ...4.使部署变得简单,SpringBoot内置了三种Servlet容器,Tomcat,Jetty,undertow.我们只需要一个Java的运行环境就可以跑SpringBoot的项目了
springboot框架 一、Spring Boot基础应用 Spring Boot特征 ...4.使部署变得简单,SpringBoot内置了三种Servlet容器,Tomcat,Jetty,undertow.我们只需要一个Java的运行环境就可以跑SpringBoot的项目了
一、Tomcat部署 <groupId>javax.servlet <artifactId>javax.servlet-api <version>4.0.1 <scope>provided 取消以上代码的注释,将jetty和undertow的引用注释掉,将packaging从jar改为war然后运行maven package...
• 嵌入的Tomcat 、Jetty 或者Undertow ,无须部署WAR 文件: . 允许通过Maven 来根据需要获取starter; 尽可能地自动配置Spring; • 提供生产就绪型功能,如指标、健康检查和外部配置; . 绝对没有代码生成,对XML...
有一个码头插件可以从 maven mvn jetty:run 还有一个 tomcat 插件,用于集成测试以演示 jetty 和 tomcat。 Cucumber .feature文件在集成测试阶段执行。 在此之前,嵌入式 Tomcat 插件在端口 8181 上启动。 与 ...
springboot框架 一、Spring Boot基础应用 Spring Boot特征 ...4.使部署变得简单,SpringBoot内置了三种Servlet容器,Tomcat,Jetty,undertow.我们只需要一个Java的运行环境就可以跑SpringBoot的项目了
springboot框架 一、Spring Boot基础应用 Spring Boot特征 ...4.使部署变得简单,SpringBoot内置了三种Servlet容器,Tomcat,Jetty,undertow.我们只需要一个Java的运行环境就可以跑SpringBoot的项目了
dubbo监控使用管理端的应用,在tomcat下或者jetty下部署,使用maven jetty命令如:jetty:run
springboot框架 一、Spring Boot基础应用 Spring Boot特征 ...4.使部署变得简单,SpringBoot内置了三种Servlet容器,Tomcat,Jetty,undertow.我们只需要一个Java的运行环境就可以跑SpringBoot的项目了
这是我3年前在上一家公司内部培训做的PPT,现在分享给大家。主要内容有:安装、入门、Eclipse中实践;...常用插件、自动化部署;仓库使用等等。文档可能有些早,后来也没时间更新,但对初学者有一定的帮助。
springboot框架 一、Spring Boot基础应用 Spring Boot特征 ...4.使部署变得简单,SpringBoot内置了三种Servlet容器,Tomcat,Jetty,undertow.我们只需要一个Java的运行环境就可以跑SpringBoot的项目了
springboot框架 一、Spring Boot基础应用 Spring Boot特征 ...4.使部署变得简单,SpringBoot内置了三种Servlet容器,Tomcat,Jetty,undertow.我们只需要一个Java的运行环境就可以跑SpringBoot的项目了
springboot框架 一、Spring Boot基础应用 Spring Boot特征 ...4.使部署变得简单,SpringBoot内置了三种Servlet容器,Tomcat,Jetty,undertow.我们只需要一个Java的运行环境就可以跑SpringBoot的项目了
springboot框架 一、Spring Boot基础应用 Spring Boot特征 ...4.使部署变得简单,SpringBoot内置了三种Servlet容器,Tomcat,Jetty,undertow.我们只需要一个Java的运行环境就可以跑SpringBoot的项目了