Set root pom.xml <name> for Sonar 63/14063/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 9 Jan 2015 21:44:33 +0000 (16:44 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 9 Jan 2015 21:44:33 +0000 (16:44 -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: I87bd9b35f6cfe3423602e6b543d369f38d9148c8
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
pom.xml

diff --git a/pom.xml b/pom.xml
index 8275e21d989fe60e5b9269cf70cc32f5a7274654..93c7905af50148a4843a99e203d33d4514c9f818 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
   <groupId>org.opendaylight.docs</groupId>
   <artifactId>root</artifactId>
   <version>0.1.0-SNAPSHOT</version>
-  <name>OpenDaylight Docs</name>
+  <name>docs</name> <!-- Used by Sonar to set project name -->
   <packaging>pom</packaging>
   <url>${sitedeploy}</url>
   <scm>