maven 搭建多war包聚合项目
来源:互联网 发布:淘宝中学生书包女韩版 编辑:程序博客网 时间:2024/05/22 06:15
思路:最主要的是主war文件要引入其他war,指明type是war。然后用插件来声明让子类war的文件都跑到主war下面
<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/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>com.qytx</groupId> <artifactId>architecturel</artifactId> <version>0.0.1-SNAPSHOT</version> </parent> <artifactId>architecturelweb</artifactId> <packaging>war</packaging> <dependencies> <dependency> <groupId>com.qytx</groupId> <artifactId>customermgr</artifactId> <version>0.0.1-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>com.qytx</groupId> <artifactId>goodsmgrweb</artifactId> <version>0.0.1-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>com.qytx</groupId> <artifactId>cartmgr</artifactId> <version>0.0.1-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>com.qytx</groupId> <artifactId>ordermgr</artifactId> <version>0.0.1-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>com.qytx</groupId> <artifactId>storemgr</artifactId> <version>0.0.1-SNAPSHOT</version> <type>war</type> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>jsp-api</artifactId> <version>2.0</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <version>2.4</version> <configuration> <overlays> <overlay> <groupId>com.qytx</groupId> <artifactId>customermgr</artifactId> </overlay> <overlay> <groupId>com.qytx</groupId> <artifactId>goodsmgrweb</artifactId> </overlay> <overlay> <groupId>com.qytx</groupId> <artifactId>cartmgr</artifactId> </overlay> <overlay> <groupId>com.qytx</groupId> <artifactId>ordermgr</artifactId> </overlay> <overlay> <groupId>com.qytx</groupId> <artifactId>storemgr</artifactId> </overlay> </overlays> </configuration> </plugin> <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.2.8.v20150217</version> <configuration> <stopKey>shutdown</stopKey> <stopPort>9966</stopPort> <connectors> <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> <port>9999</port> </connector> </connectors> <scanIntervalSeconds>2</scanIntervalSeconds> <requestLog implementation="org.eclipse.jetty.server.NCSARequestLog"> <filename>target/access-yyyy_mm_dd.log</filename> <filenameDateFormat>yyyy_MM_dd</filenameDateFormat> <logDateFormat>yyyy-MM-dd HH:mm:ss</logDateFormat> <logTimeZone>GMT+8:00</logTimeZone> <append>true</append> <logServer>true</logServer> <retainDays>120</retainDays> <logCookies>true</logCookies> </requestLog> <webApp> <contextPath>/</contextPath> </webApp> </configuration> </plugin> </plugins> </build></project>
阅读全文
0 0
- maven 搭建多war包聚合项目
- maven多war包项目整合
- 搭建 Springboot maven 项目 并且打war包 发布
- maven项目 build war包
- maven项目打War包
- maven项目多war聚合 利用ant脚本实现热部署
- Eclipse中的maven项目打war包
- maven eclipse web项目 && 打war包
- maven 普通java项目 / war 包
- maven项目打jar,war包方法
- Maven项目如何打war包?
- IDEA非maven项目导出war包
- Maven 项目如何打 war 包
- idea导出maven项目的war包
- IDEA创建基于springboot的多个module聚合项目,并生成war包
- 【Maven】项目打包-war包-Jar包[IDEA将项目打成war包]
- maven 合并多个war包插件
- maven合并打包多个war包
- 3
- Dl4j-fit(DataSetIterator iterator)源码阅读(二)
- 自定义View绘制五星红旗
- linux sed命令用法举例
- LeetCode 135. Candy
- maven 搭建多war包聚合项目
- 编译和链接
- 自顶向下 逐步求精 完成任务
- Linux初级入门命令篇(2)
- stl知识整理-应付CCF考试
- set算法 (交集,并集,差集,对称差集)
- Java使用反射处理注解
- 人工智能是否会超越人类?
- 树状数组区间修改区间查询