summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-03-01 17:01:10 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-03-01 18:12:42 +0800
commit98b6478d0a0768fa627affcbadd7061d5a4ea3fd (patch)
treed0faf62957491abdb24a9dda12f53a8dbbb6010f /pom.xml
parentc313fb969bca496a0313e56435a2455f0b2c7ef5 (diff)
Add Sonar coverage for vfc-nfvo-lcm
Change-Id: I130219890970930c6917bad54a5c00cf1ef7fe30 Issue-ID: VFC-782 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml49
1 files changed, 48 insertions, 1 deletions
diff --git a/pom.xml b/pom.xml
index 3e10ad24..b2a50f8f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!--
- Copyright 2016 ZTE Corporation.
+ Copyright 2016-2018 ZTE Corporation.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -40,6 +40,53 @@
<build>
<plugins>
<plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <configuration>
+ <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
+ <environmentVariables>
+ <!-- make mvn properties as env for our script -->
+ <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
+ <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
+ <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
+ </environmentVariables>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <version>1.2.1</version>
+ <executions>
+ <execution>
+ <id>clean phase script</id>
+ <phase>clean</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <arguments>
+ <argument>__</argument>
+ <argument>clean</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ <execution>
+ <id>test script</id>
+ <phase>test</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <arguments>
+ <argument>__</argument>
+ <argument>test</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<appendAssemblyId>false</appendAssemblyId>