Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the purpose of the Maven 3 ciManagement configuration?

Tags:

maven-3

I've read the section in the Maven documentation, but I haven't really seen any evidence of plugins using the <ciManagement> tag in a project POM.

My question is:

  • Are there CI systems that will use this information in some intelligent way?
  • Other than project self-documentation, is there any other benefit to specifying and maintaining this information in my project POM?
  • Does Maven itself (or any common plugins) use this information?
like image 867
Peter Mularien Avatar asked Feb 07 '13 15:02

Peter Mularien


People also ask

What are Maven plugins used for?

"Maven" is really just a core framework for a collection of Maven Plugins. In other words, plugins are where much of the real action is performed, plugins are used to: create jar files, create war files, compile code, unit test code, create project documentation, and on and on.

What is project Basedir in Maven?

project. basedir : The directory that the current project resides in. This means this points to where your Maven projects resides on your system. It corresponds to the location of the pom. xml file.

What is the difference between plugin and pluginManagement tags?

pluginManagement: is an element that is seen along side plugins. Plugin Management contains plugin elements in much the same way, except that rather than configuring plugin information for this particular project build, it is intended to configure project builds that inherit from this one.

What is POM xml Maven?

A Project Object Model or POM is the fundamental unit of work in Maven. It is an XML file that contains information about the project and configuration details used by Maven to build the project.


2 Answers

for documentation sample http://maven.apache.org/plugins/maven-compiler-plugin/integration.html

Historically this element was used by continuum for more details see http://maven.apache.org/ref/3.0.4/maven-model/maven.html#class_ciManagement it was possible to define the pom notifiers (mail,irc) and where to send notification.

like image 86
Olivier Lamy Avatar answered Nov 05 '22 11:11

Olivier Lamy


SonarQube uses the <ciManagement> element of the pom to define the value of its own sonar.links.ci configuration property. This property is mentioned in the SonarQube documentation, but there's no explanation about what is it used for. It turns out it's one more thing to keep up-to-date. I would try to remove it from the pom to see if any visible issue comes up.

like image 42
Paulo Merson Avatar answered Nov 05 '22 10:11

Paulo Merson