Maven cannot find parent POM

I am trying to build a maven project, but I ran into a problem.

pom indicated the parent pom, and maven cannot find it. I actually have a parent pom, but I don’t know where to put it or what should I do, what maven knows about.

I am new to maven, so sorry if my question is stupid.

+7
source share
5 answers

If you have a parent pom, you can try installing it.

When you run mvn install in a module, the resulting artifact will be placed in your repository so that it can be used from other modules.

+6
source

I use Netbeans, I ran -N versions: update-child-modules in Run Maven / Goals.

It worked! It took 5 minutes to build, but he really created the project, and this is the first time he has been.

+4
source

http://maven.apache.org/guides/introduction/introduction-to-the-pom.html Example 1 and Example 2 are for inheritance, which may be useful.

0
source

This happens when different POMs in the project. They do not have the same version.

For example, if you have:

 MyProject / EAR ..... MyProject / WEB ..... 

you need to have the same version in three POM

0
source

Same mistake for me. I decided by updating the project with a new POM file (someone from my team accidentally deleted it).

-one
source

All Articles