What is pluginManagement in Maven’s pom.xml?

This is a snippet of my pom file. …. <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.4</version> <executions> <execution> <phase>install</phase> <goals> <goal>copy-dependencies</goal> </goals> <configuration> …… </configuration> </execution> </executions> </plugin> </plugins> … I use it successfully with the command mvn install But, when I try to enclose it into the “pluginManagement” tag, the maven-dependency-plugin stops working when I launch … Read more

Differences between dependencyManagement and dependencies in Maven

What is the difference between dependencyManagement and dependencies? I have seen the docs at Apache Maven web site. It seems that a dependency defined under the dependencyManagement can be used in its child modules without specifying the version. For example: A parent project (Pro-par) defines a dependency under the dependencyManagement: <dependencyManagement> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> … Read more