Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is super pom for maven 3?

Tags:

maven

maven-3

For maven 2 it used to be in

M2_HOME/lib/maven-2.2.1-uber.jar:org/apache/maven/project/pom-4.0.0.xml

But 3.0.x does not have a single jar.

like image 321
Alexander Pogrebnyak Avatar asked Jul 22 '11 23:07

Alexander Pogrebnyak


People also ask

Where is Maven super POM location?

All Maven project POMs extend the Super POM, which defines a set of defaults shared by all projects. This Super POM is a part of the Maven installation. Depending on the Maven version it can be found in the maven-x.y.z-uber. jar or maven-model-builder-xy.

How do you create a super POM in Maven?

Once you get a repository up an running, you will need to have each developer modify their settings. xml to reference the new repository server you have setup. The super pom you create will be deployed in the repository, so once they are configured to use it, then maven will pull the super pom down automatically.

Where should POM xml be located?

The pom. xml is placed in the projects root-folder.

What is super POM?

Super POM. The Super POM is Maven's default POM. All POMs extend the Super POM unless explicitly set, meaning the configuration specified in the Super POM is inherited by the POMs you created for your projects. You can see the Super POM for Maven 3.6.3 in Maven Core reference documentation.


2 Answers

They moved it (without documenting it as usual) to

lib/maven-model-builder-3.0.3.jar:org/apache/maven/model/pom-4.0.0.xml 
like image 53
Jon7 Avatar answered Sep 17 '22 13:09

Jon7


As for maven 3.5.4 in mac, it's located in

$MAVEN_HOME/lib/maven-model-builder-3.5.4.jar!/org/apache/maven/model/pom-4.0.0.xml 

But you have to unzip the maven-model-builder-3.5.4.jar first, where the super pom hides.

like image 29
Hearen Avatar answered Sep 18 '22 13:09

Hearen