maven如何打WAR包,看到target目录下面会生成JAR包,如何改成WAR?
2015-11-12 09:15
405 查看
maven如何打WAR包,看到target目录下面会生成JAR包,如何改成WAR?
编程语言分享到:
专业回答
团队 talentwei8899
2013-04-01 18:20
在对应的pom文件中,找到packing这个属性,改为war
如果没有,就自己加一个,这个是有默认值的,默认为jar。例如:
<modelVersion>4.0.0</modelVersion>
<groupId>com.xxx.yyy</groupId>
<artifactId>test-war</artifactId>
<packaging>war</packaging>
<version>1.0</version>
相关文章推荐
- 求素数
- 收集资料
- 自然数e的理解
- weiphp-我的第一个插件
- setEmptyView
- 双向队列
- Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs
- 创业的第六十五天
- oslec.lib找不到解决办法
- Bitcode是什么?
- boost::implicit_cast
- 链表-删除指定元素
- 《剑指offer》——数组中的逆序对
- C#中public、private、protected、internal、protected internal (转载)
- 子串
- fopen与open的区别
- IOS开发网络篇之──ASIHTTPRequest详解
- Array运用
- Script Send triggle mail for zabbix
- 谷歌开源人工智能系统 TensorFlow