嗨我正在建设我的项目使用MAVEN,我的项目结构是这样的。建设maven项目导致错误
core
core-contact
address
phone
core - itinerary
一块的每个模块pom.xml文件的代码如下
芯:pom.xml的
<groupId>ginfo.core</groupId>
<artifactId>core</artifactId>
<name>${productBrand} - Core POM</name>
<packaging>pom</packaging>
<version>1.1</version>
<modules>
<module>Contact</module>
<module>Itinerary</module>
</modules>
地址:pom.xml的
<parent>
<groupId>ginfo.core</groupId>
<artifactId>core-contact</artifactId>
<version>1.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>core-address</artifactId>
<name>${productBrand} - core-address</name>
<packaging>jar</packaging>
电话:pom.xml的
<parent>
<groupId>ginfo.core</groupId>
<artifactId>core-contact</artifactId>
<version>1.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>core-phone</artifactId>
<name>${productBrand} - core-phone</name>
<packaging>jar</packaging>
核心行程:pom.xml中
<parent>
<groupId>ginfo.core</groupId>
<artifactId>core</artifactId>
<version>1.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>core-itinerary</artifactId>
<name>${productBrand} - core-itinerary</name>
<packaging>jar</packaging>
<description>
${productBrand} - core-itinerary
</description>
<dependencies>
<dependency>
<groupId>ginfo.core</groupId>
<artifactId>core-contact</artifactId>
<version>1.1</version>
</dependency>
核心接触:pom.xml中
<parent>
<groupId>ginfo.core</groupId>
<artifactId>core</artifactId>
<version>1.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>core-contact</artifactId>
<name>${productBrand} - core-contact</name>
<packaging>pom</packaging>
<description>
${productBrand} - core-contact
</description>
<modules>
<module>Address</module>
<module>Phone</module>
</modules>
当我试图使用mvn clean install构建核心行程我是ge拟合以下错误:
Failed to execute goal on project core-itinerary: could not resolve dependancies for project ginfo.core : core-itinerary: jar 1.1: could not find artifact ginfo.core : core-contact.jar : 1.1 in mvnrepository (http://repo1.maven.org/maven2)
请帮我如何解决这个问题
'address'和'phone'被引用'核心contact'其父 - 在哪里为一个POM? –
请使用编辑链接并将其添加到您的问题而不是评论。 –