diff options
author | shangxdy <shang.xiaodong@zte.com.cn> | 2018-03-27 17:26:07 +0800 |
---|---|---|
committer | shangxdy <shang.xiaodong@zte.com.cn> | 2018-03-27 17:26:07 +0800 |
commit | df2fec950e994490f16b5c9a90d5add48d6dcdf2 (patch) | |
tree | 11558957660cbb1e562d6366539b101ecb1656ef /nfvparser/pom.xml | |
parent | 2281756b792be521d50c48e5b55787af0b547a81 (diff) |
Modify pom and tox for sonar
Issue-ID: MODELING-75
Change-Id: I1e8d1a891b27ffe876bf37c7b988df510925f3b3
Signed-off-by: shangxdy <shang.xiaodong@zte.com.cn>
Diffstat (limited to 'nfvparser/pom.xml')
-rw-r--r-- | nfvparser/pom.xml | 53 |
1 files changed, 52 insertions, 1 deletions
diff --git a/nfvparser/pom.xml b/nfvparser/pom.xml index be9d1b7..5231d5f 100644 --- a/nfvparser/pom.xml +++ b/nfvparser/pom.xml @@ -25,7 +25,7 @@ <artifactId>modeling-toscaparsers-nfvparser</artifactId> <version>1.1.0-SNAPSHOT</version> <packaging>pom</packaging> - <name>modeling-toscaparsers</name> + <name>modeling-toscaparsers-nfvparser</name> <description>modeling/toscaparsers/nfvparser</description> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> @@ -38,8 +38,59 @@ <sonar.exclusions>**/tests/**.py,**/test*.py</sonar.exclusions> </properties> <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.2.1</version> + <configuration> + <executable>${project.basedir}/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> + </plugins> + </pluginManagement> <plugins> <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> |