BOS物流项目03———模块间的依赖引用
2018-01-01 13:08
337 查看
BOS物流项目03模块间的依赖引用
一bos-domain模块
二bos-utils模块
三bos-dao模块
四bos-service模块
五bos-web模块
六源码下载
com.qwm.bos.domain
com.qwm.bos.utils
com.qwm.bos.dao
com.qwm.bos.service
https://github.com/wimingxxx/bos-parent/tree/master/bos-web/src/main/webapp
一bos-domain模块
二bos-utils模块
三bos-dao模块
四bos-service模块
五bos-web模块
六源码下载
BOS物流项目03———模块间的依赖引用
各个模块之间存在引用的关系,那么我们下面来看一下一、bos-domain模块
这个模块依赖就不需要导入了,但是我们需要创建包(空的)com.qwm.bos.domain
二、bos-utils模块
这个模块依赖就需要导入bos-domain,而且我们需要创建包(空的)com.qwm.bos.utils
<?xml version="1.0" encoding="UTF-8"?> <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"> <parent> <artifactId>bos-parent</artifactId> <groupId>com.qwm</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>bos-utils</artifactId> <packaging>jar</packaging> <dependencies> <dependency> <groupId>com.qwm</groupId> <artifactId>bos-domain</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> </project>
三、bos-dao模块
这个模块依赖就需要导入bos-domain,而且我们需要创建包(空的)com.qwm.bos.dao
<?xml version="1.0" encoding="UTF-8"?> <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"> <parent> <artifactId>bos-parent</artifactId> <groupId>com.qwm</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>bos-dao</artifactId> <packaging>jar</packaging> <dependencies> <dependency> <groupId>com.qwm</groupId> <artifactId>bos-utils</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> </project>
四、bos-service模块
这个模块依赖就需要导入bos-domain,而且我们需要创建包(空的)com.qwm.bos.service
<?xml version="1.0" encoding="UTF-8"?> <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"> <parent> <artifactId>bos-parent</artifactId> <groupId>com.qwm</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>bos-service</artifactId> <packaging>jar</packaging> <dependencies> <dependency> <groupId>com.qwm</groupId> <artifactId>bos-dao</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> </project>
五、bos-web模块
这个模块依赖就需要导入bos-domain,而且我们需要导入 下面的文件https://github.com/wimingxxx/bos-parent/tree/master/bos-web/src/main/webapp
<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"> <parent> <artifactId>bos-parent</artifactId> <groupId>com.qwm</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>bos-web</artifactId> <packaging>war</packaging> <name>bos-web Maven Webapp</name> <dependencies> <dependency> <groupId>com.qwm</groupId> <artifactId>bos-domain</artifactId> <version>1.0-SNAPSHOT</version> </dependency> </dependencies> </project>
六、源码下载
https://github.com/wimingxxx/bos-parent相关文章推荐
- JAVAEE——BOS物流项目03:学习计划、messager、menubutton、登陆拦截器、信息校验和取派员添加功能
- BOS物流项目04———bos-web模块配置之web.xml
- BOS物流项目05———bos-web模块配置之struts.xml
- BOS物流项目06———bos-web模块配置之log4j.properties
- Struts2-03-拦截器(BOS物流项目用户登录拦截)
- BOS物流项目07———bos-web模块配置之applicationContext.xml
- eclipse在多modules项目结构下避免模块间依赖引用的场景
- Android项目模块化介绍——用注解使各个模块间不再依赖
- 利用yarn代替npm管理前端项目模块依赖的方法详解
- DotNetNuke独立项目模块开发资源引用路径设置
- 【SSH实战】IntelliJ IDEA环境开发BOS物流项目(一)环境搭建
- idea 创建多模块依赖Maven项目
- Eclipse无法引用项目依赖
- Maven项目下HttpServletRequest 或 HttpServletResponse需引用的依赖包
- VS2010在项目引用或依赖特性上与VS2008的不同
- SSH-BOS项目:分区管理模块
- Maven分模块项目将依赖一起打包
- 通过项目依赖设置LIB引用关系
- maven项目中子模块中相互引用问题解决方案
- 【Maven jar】打包单个或多个文件,有依赖jar包的将架包一起打包成一个jar包供别的项目引用