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

diff --git a/pom.xml b/pom.xml
index 921f29906a17e9d85cab482b514490c7a75ec266..ac510aa245e86a598c0b21ceb45e2529978d8fab 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,9 @@
     <groupId>org.opendaylight.openflowjava</groupId>
     <artifactId>openflow-protocol-parent</artifactId>
     <version>0.5.2-SNAPSHOT</version>
+    <name>openflowjava</name> <!-- Used by Sonar to set project name -->
     <packaging>pom</packaging>
+
     <modules>
         <module>openflow-protocol-api</module>
         <module>openflow-protocol-spi</module>