The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

johnkeonicarey (2) [Avatar] Offline
#1
Win 7
JDK 1.6+
Maven 3.0+

Setup: https://github.com/tamingtext/book/blob/master/README

Run: mvn clean package

Result:

Tests in error:

Tests run: 43, Failures: 0, Errors: 4, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:55.674s
[INFO] Finished at: Wed Dec 05 13:12:29 PST 2012
[INFO] Final Memory: 38M/355M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project taming-text: There a
re test failures.
[ERROR]
[ERROR] Please refer to CsmilieevelopmentEngineeringsolr_opennlp argetsurefire-reports for the individual test results.
[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

Just purchased the MEAP...not a good start.
grant.ingersoll (45) [Avatar] Offline
#2
Re: Chapter 1 - Source code test errors!!!
These should be fixed, but do note that Hadoop and Windows don't always play nice with each other.
johnkeonicarey (2) [Avatar] Offline
#3
Re: Chapter 1 - Source code test errors!!!
I have continued to work through the book and wanted to commend the authors for doing a great job. I really like the book so far and am planning on leaving a favorable review on Amazon.

In the interim I have installed Ubuntu 12.04 LTS in a VM and had compilation errors as well. The errors look different in nature so I am guessing it is a different set of issues. I will continue to work on getting the example running properly.

I understand that there must be an nth amount of configurations taking place, on such a large stack of integrated components and functions, that can affect the success of a build on each OS.
grant.ingersoll (45) [Avatar] Offline
#4
Re: Chapter 1 - Source code test errors!!!
Hi johneonicarey,

Thanks for the positive feedback. Can you post what errors you are seeing? Including stack traces if there are any.
448640 (1) [Avatar] Offline
#5
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.tamingtext.carrot2.Carrot2ExampleTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.531 sec
Running com.tamingtext.classifier.bayes.BayesUpdateRequestProcessorTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 9.381 sec
Running com.tamingtext.classifier.bayes.ExtractTrainingDataTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 49.106 sec
Running com.tamingtext.classifier.mlt.MoreLikeThisQueryTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.298 sec
Running com.tamingtext.fuzzy.LevenshteinDistanceTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.081 sec
Running com.tamingtext.fuzzy.OverlapMeasuresTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.353 sec
Running com.tamingtext.fuzzy.TrieNodeTest
Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.085 sec
Running com.tamingtext.mahout.VectorExamplesTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.579 sec
Running com.tamingtext.opennlp.AnswerTypeTest
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.657 sec <<< FAILURE!
Running com.tamingtext.opennlp.ChunkParserTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.548 sec
Running com.tamingtext.opennlp.NameFinderTest
Tests run: 7, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 4.481 sec <<< FAILURE!
Running com.tamingtext.opennlp.ParserTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.233 sec
Running com.tamingtext.opennlp.POSTaggerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.23 sec
Running com.tamingtext.qa.PassageRankingComponentTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.495 sec <<< FAILURE!
Running com.tamingtext.qa.QATest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 4.329 sec <<< FAILURE!
Running com.tamingtext.sentences.SentenceDetectionTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.166 sec
Running com.tamingtext.snowball.SnowballStemmerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.156 sec
Running com.tamingtext.solr.SolrJTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.402 sec
Running com.tamingtext.texttamer.solr.NameFilterTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.455 sec <<< FAILURE!
Running com.tamingtext.texttamer.solr.SentenceTokenizerTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.25 sec
Running com.tamingtext.tika.TikaTest
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.801 sec
Running com.tamingtext.util.StringUtilTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.134 sec

Results :

Tests in error:

Tests run: 43, Failures: 0, Errors: 7, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:58 min
[INFO] Finished at: 2017-01-24T17:27:30+05:30
[INFO] Final Memory: 41M/310M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.7.2:test (default-test) on project taming-text: There are test failures.
[ERROR]
[ERROR] Please refer to /Users/semba/Projects/FireCompass/q-and-a/book/target/surefire-reports for the individual test results.
[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
giovanni.dascola (1) [Avatar] Offline
#6
Hi John,

I had the com.tamingtext.opennlp.AnswerTypeTest FAILURE (2 ERRORS) and solved it by changing the locale of my Mac from Italian to English.

Hope this helps at least for the AnswerTypeTest failure.

Regards
Giovanni