maven项目板块的pom.xml配置
Posted 理舞
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了maven项目板块的pom.xml配置相关的知识,希望对你有一定的参考价值。
项目名为helloweb
项目文件结构图1
helloweb>pom.xml内容如下:
<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> <groupId>com.jikexueyuan</groupId> <artifactId>helloweb-parent</artifactId> <version>1.0-SNAPSHOT</version> <packaging>pom</packaging> <name>helloweb</name> <modules> <module>helloweb-entity</module> <module>helloweb-core</module> <module>helloweb-web</module> <module>helloweb-design</module> </modules> </project>
其中helloweb-core中的目录为
pom.xml内容
<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.jikexueyuan</groupId> <artifactId>helloweb-parent</artifactId> <version>1.0-SNAPSHOT</version> </parent> <artifactId>helloweb-core</artifactId> <version>${project.parent.version}</version> <packaging>jar</packaging> <name>${project.artifactId}</name> </project>
其它模块的结构类似。
以上是关于maven项目板块的pom.xml配置的主要内容,如果未能解决你的问题,请参考以下文章