Set root pom.xml <name> for Sonar 25/14025/2
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 9 Jan 2015 19:23:53 +0000 (14:23 -0500)
committerRobert Varga <nite@hq.sk>
Thu, 15 Jan 2015 18:53:42 +0000 (18:53 +0000)
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: I9c53cecee278b1232dbd782f1f1a73007598385a
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
pom.xml

diff --git a/pom.xml b/pom.xml
index 8d3726158bf5920ee90dee30c5276ece2bc60e20..dbf68d97b9fa505d305bdce811c8caf026652e62 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -21,6 +21,7 @@
     <artifactId>yangtools-aggregator</artifactId>
     <groupId>org.opendaylight.yangtools</groupId>
     <version>0.6.4-SNAPSHOT</version>
+    <name>yangtools</name> <!-- Used by Sonar to set project name -->
     <packaging>pom</packaging>
 
     <scm>