寻找父母pom的问题

时间:2017-04-08 15:02:44

标签: java maven deployment

我在maven build期间遇到问题。当我运行myprj-parent multimodule项目为mvn clean instal -PmyProfile时,我遇到了以下错误:

Parent-POM: com.def.bla:alpha:pom:5.5.1 not found in relative path: ../pom.xml
    Retrieving parent-POM: com.def.bla:alpha:pom:5.5.1 for project: com.def:myprj-parent:pom:${VERSION_NUM} from the repository.
    [DEBUG] Trying repository central
    [DEBUG] Connecting to repository: 'central' with url: 'http://repo1.maven.org/maven2'.
    Downloading: http://repo1.maven.org/maven2/com/def/bla/alpha/5.5.1/alpha-5.5.1.pom
    [DEBUG] Unable to locate resource in repository
    org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository
Caused by: java.io.FileNotFoundException: http://repo1.maven.org/maven2/com/def/bla/alpha/5.5.1/alpha-5.5.1.pom

我在项目外有一个文件夹alpha,其中我有pom文件。当我使用命令mvn clean install时,这会在com/def/bla/alpha/5.5.1/alpha-5.5.1.pom下的.m2中创建一个pom文件,具体取决于提供的配置。

不确定如何解决此错误。 myprj-parent是我的multimodule maven项目。

谢谢,

0 个答案:

没有答案