嗨我正在建設我的項目使用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? –
請使用編輯鏈接並將其添加到您的問題而不是評論。 –