Jetty server configuration will be added as a maven plugin

<!--Jetty config--><build>  <pluginManagement>      <plugins><plugin><groupId>org.mortbay.jetty</groupId><artifactId>jetty-maven-plugin</artifactId><version>8.1.7.v20120910</version><configuration><webAppSourceDirectory>${project.build.directory}/[your proj name]</webAppSourceDirectory><webApp><!--You can put .properties file in configration folder other than resource folder--><extraClasspath>${basedir}/configuration</extraClasspath><contextPath>/[your proj name]</contextPath><connectors><!-- work around file locking on windows, this the app port --><connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"><port>8098</port></connector></connectors><systemProperties><systemProperty><name>log4j.config.location</name><value>${basedir}/configuration</value><systemProperty></systemProperty><name>app.install.root</name><value>${basedir}</value></systemProperty><systemProperty><name>org.apache.jasper.compiler.disablejsr199</name><value>true</value></systemProperty></systemProperties></configuration></plugin><!--other plugins--></plugins>   </pluginManagement></build>

With this configuration, you should be able to use mvn jetty:run to start jetty server.

转载于:https://www.cnblogs.com/sengao/p/4593886.html

How to add and configure jetty server in maven pom.xml相关推荐

  1. Jetty在win10上的配置,IDEA中配置Jetty,Maven中配置Jetty插件,Eclipse中配置Jetty插件及其使用,通过java代码内嵌Jetty Server

    1.下载Jetty 下载地址:http://www.eclipse.org/jetty/download.html 2.在windows上运行jetty 一.将下载的jetty解压到D:\instal ...

  2. org/eclipse/jetty/server/Handler : Unsupported major.minor version 52.0

    注:本文来源于<org/eclipse/jetty/server/Handler : Unsupported major.minor version 52.0> Exception in ...

  3. 计算机网络实验:VLAN Practice Lab Setup in Packet Tracer and Configure DHCP Server for multiple VLAN

    实验教程原文地址:1.VLAN Practice Lab Setup in Packet Tracer和2.Configure DHCP Server for multiple VLANs on th ...

  4. FAILED org.spark_project.jetty.server.Server@8a6631b: java.net.BindException: Address already in use

    一.问题描述 WARN component.AbstractLifeCycle: FAILED org.spark_project.jetty.server.Server@8a6631b: java. ...

  5. sql limit 子句_SQL Server中的FOR XML PATH子句

    sql limit 子句 As SQL professionals, we often have to deal with XML data in our databases. This articl ...

  6. Visual C# 2008+SQL Server 2005 数据库与网络开发--9.1.1 SQL Server 2005中的XML功能

    在SQL Server 2005中,对XML的支持已经集成到数据库本身的所有组件中,主要包括以下几方面. 支持XML格式的数据类型. 可以对XML格式的数据或者变量进行XQuery的查询. 增强了XM ...

  7. 灵活运用 SQL Server 数据库的 FOR XML PATH

    起因¶ 今天欧阳冰提出一个报表需求,其核心部分可以简化为这样一张表格: 调度单号 与调度单相关的多张作业单号 001 0001/0002/0003 002 0004 003 0005/0006/000 ...

  8. How to Install and Configure OpenSSH Server In Linux

    标题:在Linux中安装和配置OpenSSH服务器 Install OpenSSH in Linux  & 在Linux计算机中安装OpenSSH Being a network admini ...

  9. Configure NFS Server On AIX 6.1

    1.创建/etc/exports文件 [root@db1 ~]# vi /etc/exports /u02/share -sec=sys:krb5p:krb5i:krb5:dh,rw,root=192 ...

最新文章

  1. 计算机不等长编码有哪些,第9讲最佳不等长编码_W
  2. vivo 2019:关于企业文化如何影响手机企业发展的三个追问
  3. Android逆向基础----Android Dalvik虚拟机
  4. winphone8更换帐号问题的几点说明
  5. Angular 依赖注入里factory函数的调用时机
  6. 订单不断,我是这样做的
  7. 阿里云轻应用服务器 宝塔面板 mongodb 配置外网连接 其二 配置账号密码
  8. 编程时千万要记下一切!
  9. Golang defer 快速上手
  10. TZOJ 4813 机器翻译(模拟数组头和尾)
  11. python 下载图片到内存卡_python-23:将图片下载到本地
  12. QString字符串中双引号的梗
  13. Cesium 鼠标单击和双击事件
  14. Keil uVision4 安装包及破解程序
  15. seaborn关联图表之折线图和散点图
  16. Windows 模块安装程序必须更新,才能安装此程序包。 请更新计算机上的 Windows 模块安装程序,然后重试安装。问题解决
  17. MSP430编译MLX90614失败
  18. 谷歌聘请 macOS 老兵操盘新操作系统 Fuchsia OS
  19. 网易2019年春招笔试:爬塔玩法
  20. “GANs之父”Goodfellow 38分钟视频亲授:如何完善生成对抗网络?(上)

热门文章

  1. 2009_01_15_星期三
  2. R语言入门第三集 实验二:基本数据处理
  3. @RequestBody注解失效?从前端传来的数据到底需不需要@RequestBody注解?前端传输数据解析的问题?
  4. linux中文系统装offci,Ubuntu 14.04 LTS中安装fcitx中文输入法的教程
  5. html如何实现新闻标题缩略,CSS新闻标题后面跟着new图标_CSS实例
  6. 我的世界服务器如何修改加载规模,我的世界服务器预加载区域怎么调小
  7. python psycopg2_Ubuntu 安装 PostgreSQL 和 python-psycopg2基础教程(以及错误解决)
  8. 大数据算法:排位问题
  9. 安全漏洞“心脏出血”继续 原因是“丘比特”
  10. Java 抽象类和接口