Set root pom.xml <name> for Sonar 58/14058/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 9 Jan 2015 21:35:09 +0000 (16:35 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 9 Jan 2015 21:35:09 +0000 (16:35 -0500)
As mentioned on the mailing list Sonar uses the <name> field of the
pom.xml that is passed to the mvn command as the name of the project in
Sonar. In most cases this is the root pom.xml file in a project. This
patch sets the name to the project shortname.

https://lists.opendaylight.org/pipermail/discuss/2014-November/004024.html

Change-Id: I31fc9cd6e360079a48d1a189e89e534b9dac3b37
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
pom.xml

diff --git a/pom.xml b/pom.xml
index e9240f769b840a47819c57ca4edfd2690760469d..134d40c8a02d3835df1b3125a97919ceedddf5b8 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
   <groupId>org.opendaylight.integration</groupId>
   <artifactId>root</artifactId>
   <version>0.3.0-SNAPSHOT</version>
-  <name>OpenDaylight Integration Project</name>
+  <name>integration</name> <!-- Used by Sonar to set project name -->
   <packaging>pom</packaging>
   <url>https://wiki.opendaylight.org/view/CrossProject:Integration_Group</url>
   <scm>