1. 点击 New -- Project
2. 设置工程父Pom, 如下
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">
4.0.0
org.test
test-parent
1.0.0.Beta
com.google.guava
guava
15.0
3. 删除父工程Src并创建子Module, 点击 New -- Module
4. 将子module的java和resource目录设置为source目录
右击java和resource目录, 选择 Mark Directory As -- Source Root
5. 用子module的pom继承父module的pom, 这样就能使用父module的dependencies了
pom如下
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLoca