diff options
Diffstat (limited to 'multivimbroker')
-rw-r--r-- | multivimbroker/pom.xml | 83 | ||||
-rwxr-xr-x | multivimbroker/sonar.sh | 2 |
2 files changed, 68 insertions, 17 deletions
diff --git a/multivimbroker/pom.xml b/multivimbroker/pom.xml index ef627af..d9da20a 100644 --- a/multivimbroker/pom.xml +++ b/multivimbroker/pom.xml @@ -34,25 +34,76 @@ <nexusproxy>https://nexus.onap.org</nexusproxy> </properties> <build> + <pluginManagement> <plugins> <plugin> - <artifactId>maven-assembly-plugin</artifactId> - <configuration> - <appendAssemblyId>false</appendAssemblyId> - <descriptors> - <descriptor>assembly.xml</descriptor> - </descriptors> - </configuration> - <executions> - <execution> - <id>make-assembly</id> - <phase>package</phase> - <goals> - <goal>single</goal> - </goals> - </execution> - </executions> + <groupId>org.codehaus.mojo</groupId> + <artifactId>exec-maven-plugin</artifactId> + <version>1.1.1</version> + <configuration> + <executable>${project.basedir}/sonar.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.1.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> + <descriptors> + <descriptor>assembly.xml</descriptor> + </descriptors> + </configuration> + <executions> + <execution> + <id>make-assembly</id> + <phase>package</phase> + <goals> + <goal>single</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> </build> </project> diff --git a/multivimbroker/sonar.sh b/multivimbroker/sonar.sh index e173d1f..41cc450 100755 --- a/multivimbroker/sonar.sh +++ b/multivimbroker/sonar.sh @@ -56,7 +56,7 @@ run_tox_test() pip install --upgrade pip pip install --upgrade tox argparse pip freeze - cd multivimbroker + cd ${CURDIR} tox -e cover deactivate cd .. |