Hi René I recently implemented an Utility that ensures that UnitTests of EnahncementEngines are skipped of remote services are not available (e.g. because you do not have a Internet Connection, or the service is temporarily down) - STANBOL-759.
However as you and Jenkins Build 1061 have discovered the usage of this new utility was not used by all unit tests of the CELI engines. Because of that you where experiencing failed instead of skipped tests. Hopefully http://svn.apache.org/viewvc?rev=1395408&view=rev does fix this. best Rupert On Sun, Oct 7, 2012 at 3:12 PM, Rene Nederhand <[email protected]> wrote: > OK. I was able to sove this by: > > cd enhancers/engines > > edit pom.xml, change: > > > <!-- Enhancement Engines using external services --> > > <!-- > > <module>celi</module> > > --> > > It compiles fine now, but I have some other problems that I will bring up > in new topic. > > Best wishes, > > René Nederhand > > > > On Sun, Oct 7, 2012 at 2:09 PM, Rene Nederhand <[email protected]> wrote: > >> Hi, >> >> I am experimenting with Apache Stanbol to see whether it can be fit in a >> recommendation system I am creating. However, I cannot build the system. >> >> The error I am getting is: >> =============== >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-surefire-plugin:2.11:test (default-test) on >> project org.apache.stanbol.enhancer.engines.celi: There are test failures. >> [ERROR] >> [ERROR] Please refer to >> /Users/nederhrj/src/stanbol/enhancer/engines/celi/target/surefire-reports >> for the individual test results. >> [ERROR] -> [Help 1] >> ================ >> >> I did: >> export MAVEN_OPTS="-Xmx700M -XX:MaxPermSize=128M" >> svn co http://svn.apache.org/repos/asf/stanbol/trunk stanbol >> cd stanbol >> mvn clean install -DskipTests (I am also getting errors on the tests, >> therefore skipping) >> >> Then, when I get the error I do: >> >> mvn install -DskipTests -rf :org.apache.stanbol.enhancer.engines.celi -X >> >> and get errors like: >> >> ================= >> 14:04:32,241 WARN [Utils] no CELI license key configured for this Engine, >> a guest account will be used (max 100 requests per day). Go on >> http://linguagrid.org for getting a proper license key. >> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.157 sec >> <<< FAILURE! >> Running >> org.apache.stanbol.enhancer.engines.celi.langid.impl.CeliLanguageIdentifierEnhancementEngineTest >> 14:04:32,387 WARN [Utils] no CELI license key configured for this Engine, >> a guest account will be used (max 100 requests per day). Go on >> http://linguagrid.org for getting a proper license key. >> 14:04:32,421 WARN [RemoteServiceHelper] deactivate Test because >> connection to remote service was refused (Message: 'Connection refused') >> org.apache.stanbol.enhancer.servicesapi.EngineException: Error while >> calling the CELI language identifier service (configured URL: >> http://linguagrid.org/LSGrid/ws/language-identifier)! >> ================== >> >> So, it seems that Stanbol is relying on external services (celi) causing >> my build to fail. Indeed, the server "http://www.linguagrid.org/" is >> unavailable at the moment. >> >> Is there anyway to resolve this? Can I skip the "celi" part? >> >> Looking forward to any help. >> >> Best wishes, >> >> René Nederhand >> >> >> -- | Rupert Westenthaler [email protected] | Bodenlehenstraße 11 ++43-699-11108907 | A-5500 Bischofshofen
