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

diff --git a/pom.xml b/pom.xml
index 34b676dd1d47075937c2480d9f267414a2477dbb..22d0437b38e99fe5adc2fe85bfeea8b42d422df3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -5,6 +5,7 @@
   <artifactId>l2switch</artifactId>
   <version>0.2.0-SNAPSHOT</version>
   <packaging>pom</packaging>
+  <name>l2switch</name> <!-- Used by Sonar to set project name -->
   <prerequisites>
     <maven>3.0</maven>
   </prerequisites>