ElasticSearch in a runnable jar: lucene problems
问题 I am trying to create a fat executable jar with maven, including elasticsearch as a dependency to create a TransportClient to a running elasticsearch node. From eclipse the client connects just fine to the node, but when I create a jar from the whole project and run that with java -jar bla.jar , the connection fails with: DEBUG - [Armor] adding address [{#transport#-1}{127.0.0.1}{127.0.0.1:9300}] DEBUG - [Armor] connected to node [{#transport#-1}{127.0.0.1}{127.0.0.1:9300}] INFO - [Armor]