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

Jaideep Dhok commented on LENS-91:
----------------------------------

Example - 

mvn test -Dtest=TestJdbcDriver

Output - 
{noformat}
[INFO] Building Lens Checkstyle Rules 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ 
checkstyle ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] Copying 3 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ checkstyle 
---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ 
checkstyle ---
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, 
i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory 
/Users/jaideep.dhok/src/lens/checkstyle/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ 
checkstyle ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ checkstyle ---
[INFO] No tests to run.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Lens Checkstyle Rules ............................. FAILURE [4.018s]
[INFO] Lens .............................................. SKIPPED
[INFO] Lens API .......................................... SKIPPED
[INFO] Lens API for server and extensions ................ SKIPPED
[INFO] Lens Cube ......................................... SKIPPED
[INFO] Lens DB storage ................................... SKIPPED
[INFO] Lens Query Library ................................ SKIPPED
[INFO] Lens Hive Driver .................................. SKIPPED
[INFO] Lens Driver for Cloudera Impala ................... SKIPPED
[INFO] Lens Driver for JDBC .............................. SKIPPED
[INFO] Lens Server ....................................... SKIPPED
[INFO] Lens client ....................................... SKIPPED
[INFO] Lens CLI .......................................... SKIPPED
[INFO] Lens Examples ..................................... SKIPPED
[INFO] Lens Distribution ................................. SKIPPED
[INFO] Lens Client Distribution .......................... SKIPPED
[INFO] Lens ML Lib ....................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.116s
[INFO] Finished at: Wed Dec 03 15:17:54 IST 2014
[INFO] Final Memory: 10M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on 
project checkstyle: No tests were executed!  (Set -DfailIfNoTests=false to 
ignore this error.) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
{noformat}

Setting -DfailIfNoTests=false avoids this issue, but this must be done every 
time. We should set this in pom of checkstyle module.

> Checkstyle module build fails when running specific tests in maven
> ------------------------------------------------------------------
>
>                 Key: LENS-91
>                 URL: https://issues.apache.org/jira/browse/LENS-91
>             Project: Apache Lens
>          Issue Type: Bug
>            Reporter: Jaideep Dhok
>
> When running specific tests using -Dtest=<some test> We also need to pass 
> -DfailIfNoTests=false every time otherwise Checkstyle build fails.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to