问题描述
今天按平常步骤建立一个父工程来统一子工程的依赖版本号的时候,发现子工程的依赖继承异常,子模块pom文件爆红。如图所示:
父模块配置文件:
<groupId>net.togogo</groupId>
<artifactId>mybatisdemo</artifactId>
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<modules>
<module>firstdemo</module>
</modules>
<name>mybatisdemo</name>
<!-- FIXME change it to the project's website -->
<url>http://www.example.com</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
<depende