[ https://jira.codehaus.org/browse/MNG-4687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=274928#comment-274928 ]
Scott MacDonald commented on MNG-4687: -------------------------------------- The requiremnt to add <relativePath></relativePath> to all poms who desire repo based resolution of thier parent pom is a bit painful when you have hundreds of modules. I would prefer automatic local resolution of parent poms residing in the direct parent dirctory if they exist. If a parent dir does not exist, resolve parent poms via repository. This allows for parent/child modules who are in the local workspaces to resolve properly, without the silliness of adding <relativePath></relativePath> to all poms that do not have parents in their immediate parent directory. In the case were a relativePath is specified, honor that local path. Incidentally, can anyone explain why I have been using maven 3.0.3 for about a month, and this relativePath warning just started today without any discernible related restructuring of poms, parent references, or thier directory structures? Very, very strange. > Maven should not warn about incorrect parent path when no relativePath is > specified > ----------------------------------------------------------------------------------- > > Key: MNG-4687 > URL: https://jira.codehaus.org/browse/MNG-4687 > Project: Maven 2 & 3 > Issue Type: Improvement > Components: Logging > Affects Versions: 3.0-beta-1 > Reporter: Paul Gier > Priority: Minor > Attachments: MNG-relativePath.zip > > > If a module pom uses a parent other than the one in the parent directory, > maven logs a warning. In some cases it is necessary that a module pom has an > external parent pom, and there is no way to refer to this external pom in the > relativePath. If nothing is specified in the relativePath, Maven should not > log the warning. > {noformat} > [WARNING] 'parent.relativePath' of POM > org.maven.test:relative-path-parent:0.0.1-SNAPSHOT > (/home/pgier/projects/MNG-relativePath/module-1/pom.xml) points at > org.maven.test:relative-path-test instead of org.apache.maven:maven-parent, > please verify your project structure @ > {noformat} > The attached zip reproduces the warning. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira