maven webapp的标准pom.xml配置
来源:互联网 发布:表格识别软件 编辑:程序博客网 时间:2024/06/13 22:23
maven技术交流 扣扣群 379165311,群里面会不定期分享一些maven文章和教程,欢迎大家加入
包含jsp、servlet、jstl、compiler、tomcat7、jetty的配置
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"><modelVersion>4.0.0</modelVersion><groupId>com.lala</groupId><artifactId>web-demo</artifactId><packaging>war</packaging><version>1.0.0</version><name>web-demo</name><url>http://maven.apache.org</url><dependencies><dependency><groupId>junit</groupId><artifactId>junit</artifactId><version>4.12</version><scope>test</scope></dependency><dependency><groupId>javax.servlet</groupId><artifactId>javax.servlet-api</artifactId><version>3.1.0</version><scope>provided</scope></dependency><dependency><groupId>javax.servlet.jsp</groupId><artifactId>jsp-api</artifactId><version>2.2</version><scope>provided</scope></dependency><dependency><groupId>jstl</groupId><artifactId>jstl</artifactId><version>1.2</version></dependency><dependency><groupId>taglibs</groupId><artifactId>standard</artifactId><version>1.1.2</version></dependency></dependencies><build><finalName>web-demo</finalName><plugins><plugin><groupId>org.apache.maven.plugins</groupId><artifactId>maven-compiler-plugin</artifactId><version>3.3</version><configuration><source>1.8</source><target>1.8</target><verbose>true</verbose></configuration></plugin><plugin><groupId>org.eclipse.jetty</groupId><artifactId>jetty-maven-plugin</artifactId><version>9.4.2.v20170220</version><configuration><stopKey>foo</stopKey><stopPort>9999</stopPort><httpConnector><port>9090</port></httpConnector><webApp><contextPath>/</contextPath></webApp></configuration></plugin><plugin><groupId>org.apache.tomcat.maven</groupId><artifactId>tomcat7-maven-plugin</artifactId><version>2.2</version><configuration><path>/</path><port>9090</port><uriEncoding>UTF-8</uriEncoding></configuration></plugin></plugins></build></project>
mvn jetty:run
或
mvn tomcat7:run
7 0
- maven webapp的标准pom.xml配置
- maven webapp的标准pom.xml配置
- Maven的pom.xml配置
- maven pom.xml的配置
- Maven的pom.xml配置
- Maven pom.xml配置
- maven pom.xml 配置
- maven-pom.xml配置
- maven pom.xml配置
- maven axis2 的pom.xml 配置
- Maven-Pom.xml的详细配置(三)
- Maven 打包插件的pom.xml配置
- Maven pom.xml配置常用的变量
- hadoop maven pom.xml文件的配置
- Maven项目的pom.xml配置
- Maven配置pom.xml的详细介绍
- MAVEN的pom.xml
- maven的pom.xml
- 【万里征程——Windows App开发】绘制图形
- [LeetCode]Rotate Array
- UIView与CALayer的区别,很详细
- C++ 内存泄露检测方法
- MFC基于对话框的程序添加菜单&点击菜单弹出一个新的对话框
- maven webapp的标准pom.xml配置
- Android 事件传递与焦点处理(tv)
- 在线社交网络分析
- Java集合框架学习和总结
- poj 3279 Fliptile 二进制枚举
- SDK 学院:第四节、Unity CurrentActivity是什么?
- jdbc(二)
- 信不信由你!iPhone6屏幕宽度不一定是375px,iPhone6 Plus屏幕宽度不一定是414px
- 关于linux中建立ftp服务的一些问题