Maven:Non-resolvable parent POM and ‘parent.relativePath’ points at wrong local POM

The normal layout for a maven multi module project is:

parent
├── pom.xml
├── module
    ├── pom.xml

Check that you use this layout.

Additionally:

  1. the relativePath looks strange. Instead of ‘..’

    <relativePath>..</relativePath>
    

    try ‘../’ instead:

    <relativePath>../</relativePath>
    

    You can also remove relativePath if you use the standard layout. This is what I always do, and on the command line I can build as well the parent (and all modules) or only a single module.

  2. The module path may be wrong. In the parent you define the module as:

    <module>junitcategorizer.cutdetection</module>
    

    You must specify the name of the folder of the child module, not an artifact identifier. If junitcategorizer.cutdetection is not the name of the folder than change it accordingly.

Hope that helps..

EDIT have a look at the other post, I answered there.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)