<p dir="auto">Maven integration tests currently do not work with security manager. There are a couple easy to fix issues like passing the right system properties to give access to .class files. However, a larger issue is the forked classloader the maven failsafe plugin uses. We can disable this isolated classloader with <code class="notranslate">useManifestOnlyJar=false</code>. However, the jars from maven itself then have jar hell (the failsafe api jar and failsafe junit jar have duplicate classes). We might be able to exclude the api jar (assuming the junit jar is a superset of the classes).</p>
<p dir="auto"><strong>Elasticsearch version</strong>:<br>
5.0.0</p>
<p dir="auto"><strong>Plugins installed</strong>: []<br>
None</p>
<p dir="auto"><strong>JVM version</strong>:<br>
java version "1.8.0_71"<br>
Java(TM) SE Runtime Environment (build 1.8.0_71-b15)<br>
Java HotSpot(TM) 64-Bit Server VM (build 25.71-b15, mixed mode)</p>
<p dir="auto"><strong>OS version</strong>:<br>
Mac OS Sierra</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br>
On a plain, empty installation <code class="notranslate">elasticsearch-plugin list</code> causes a stack trace. It should just say that no plugins are installed.</p>
<p dir="auto"><strong>Steps to reproduce</strong>:</p>
<ol dir="auto">
<li>Install 5.0</li>
<li>Run <code class="notranslate">./bin/elasticsearch-plugin list</code></li>
</ol>
<p dir="auto"><strong>Describe the feature</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./bin/elasticsearch-plugin list
Exception in thread &quot;main&quot; java.io.IOException: Plugins directory missing: /Users/andrew/bin/elastic/stack-5.0.0/elasticsearch-5.0.0/plugins
    at org.elasticsearch.plugins.ListPluginsCommand.execute(ListPluginsCommand.java:51)
    at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
    at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:69)
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
    at org.elasticsearch.cli.Command.main(Command.java:62)
    at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:42)"><pre class="notranslate"><code class="notranslate">./bin/elasticsearch-plugin list
Exception in thread "main" java.io.IOException: Plugins directory missing: /Users/andrew/bin/elastic/stack-5.0.0/elasticsearch-5.0.0/plugins
    at org.elasticsearch.plugins.ListPluginsCommand.execute(ListPluginsCommand.java:51)
    at org.elasticsearch.cli.SettingCommand.execute(SettingCommand.java:54)
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
    at org.elasticsearch.cli.MultiCommand.execute(MultiCommand.java:69)
    at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:96)
    at org.elasticsearch.cli.Command.main(Command.java:62)
    at org.elasticsearch.plugins.PluginCli.main(PluginCli.java:42)
</code></pre></div>