[ 
https://issues.apache.org/jira/browse/AMBARI-26458?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17945653#comment-17945653
 ] 

Jhen-Yung Hsu commented on AMBARI-26458:
----------------------------------------

In my experiment, the change didn't work for me, so I included my solution in 
the PR. PTAL.

> Maven -DskipSurefireTests does not skip Java tests
> --------------------------------------------------
>
>                 Key: AMBARI-26458
>                 URL: https://issues.apache.org/jira/browse/AMBARI-26458
>             Project: Ambari
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 3.1.0
>            Reporter: Wei-Chiu Chuang
>            Assignee: Jhen-Yung Hsu
>            Priority: Trivial
>
> The precommit test {{mvn clean -am test -pl ambari-server -DskipSurefireTests 
> -Dmaven.test.failure.ignore -Dmaven.artifact.threads=10 -Drat.skip 
> -Dcheckstyle.skip -DskipAdminWebTests=true}} is supposed to skip Java tests 
> but doesn't.
> The reason is skipSurefireTests is not a declared property of Maven pom.xml.
> {code}
> diff --git a/ambari-project/pom.xml b/ambari-project/pom.xml
> index 4e7664c579..07996a5a06 100644
> --- a/ambari-project/pom.xml
> +++ b/ambari-project/pom.xml
> @@ -25,6 +25,7 @@
>    <name>Apache Ambari Project POM</name>
>    <packaging>pom</packaging>
>    <properties>
> +    <skipSurefireTests>false</skipSurefireTests>
>      <skipPythonTests>false</skipPythonTests>
>      <skipFunctionalTests>true</skipFunctionalTests>
>      <solr.version>5.5.2</solr.version>
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ambari.apache.org
For additional commands, e-mail: issues-h...@ambari.apache.org

Reply via email to