如果这个工程是标准的maven-webapp那么基本上不用修改,直接运行jetty:run就可以执行。
但是有时候会报错说
[ERROR] No plugin found for prefix 'jetty' in the current project and in the plu
gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo
sitories [local (C:\Documents and Settings\reymont.li\.m2\repository), central (
http://repo.maven.apache.org/maven2)] -> [Help 1]
在pom.xml的project.build节点下添加
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.10</version>
</plugin>
</plugins>
In order to run Jetty on a webapp project which is structured according to the usual Maven defaults (resources in ${basedir}/src/main/webapp
, classes in${project.build.outputDirectory
} and the web.xml
descriptor at ${basedir}/src/main/webapp/WEB-INF/web.xml
, you don't need to configure anything.
Simply type:
This will start Jetty running on port 8080
and serving your project. Jetty will continue to run until the plugin is explicitly stopped, for example, by a <cntrl-c>
.
分享到:
相关推荐
maven集成jetty必须jar包maven-jetty-plugin,内含多个版本
maven jetty 插件,直接放在ide的插件包即可
maven jetty插件配置指南。 看看就知道。
maven使用jetty启动,在pom.xml文件中添加Jetty plugin引用
maven-jetty-jspc-plugin-6.1.22-site-component.jar
maven-jetty-plugin-6.1.3.jar
jetty-maven-springMVC-...数据库配置:/jetty-maven/src/main/resources/applicationContext.xml 数据库导入到test数据库:/jetty-maven/src/main/resources/hms_user.sql 配置好maven环境,联网,开发环境eclipse-jee
maven-jetty-plugin-6.1.7.jar
maven-jetty-plugin-6.1.5.jar
maven-jetty-plugin-6.1.25-sources.jar
maven-jetty-jspc-plugin-6.1.25-sources.jar
NULL 博文链接:https://a151555.iteye.com/blog/2168360
maven projects plugin出现红线怎么办,网上给许多比较蹩脚的方案。经过研究发现一个简洁的方法,一分钟就能搞定。
maven-jetty6-plugin-1.0.jar
maven-tomcat-plugin让maven与tomcat配合得很好。它可以把应用部署到Tomcat服务器,也可以把tomcat作为内嵌服务器启动,就像jetty一样。 使用JPDA启动tomcat的远程调试功能。这样就能与eclipse配合起来,轻松地实现...
maven-jetty-jspc-plugin-6.1.9.jar
maven-jetty-plugin-6.1.26.jar
maven-jetty-plugin-6.1h.14.1-sources.jar
buildergen.zip,一种小型的Java注释处理器库,用于从构造函数或静态方法自动生成生成器类。一种用于在Java中自动生成生成器类的注释处理器
matrix.zip,具有基本线性代数运算的强类型矩阵包。具有基本线性代数运算的强类型矩阵包。