Set root pom.xml <name> for Sonar 48/14048/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 9 Jan 2015 20:49:05 +0000 (15:49 -0500)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 9 Jan 2015 20:49:05 +0000 (15:49 -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: I3a2f8d9cbc32decaed710aa55fa98f0df94c2b9f
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
pom.xml

diff --git a/pom.xml b/pom.xml
index 5123b1e80117b0da3d675770d10e7600271d37d1..7453fef29f35dcc242ef820b1a1932b2fb15bff3 100644 (file)
--- a/pom.xml
+++ b/pom.xml
     <prerequisites>
         <maven>3.0</maven>
     </prerequisites>
+
     <groupId>org.opendaylight.openflowplugin</groupId>
     <artifactId>openflowplugin-parent</artifactId>
     <version>0.1.0-SNAPSHOT</version>
+    <name>openflowplugin</name> <!-- Used by Sonar to set project name -->
     <packaging>pom</packaging>
 
     <scm>