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.
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.
mvn install
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.
http://maven.apache.org/guides/introduction/introduction-to-the-pom.html Example 1 and Example 2 are for inheritance, which may be useful.
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
Same mistake for me. I decided by updating the project with a new POM file (someone from my team accidentally deleted it).