Java, Maven: org.json isn't recognized (Class Not Found With Maven)
<p>I have a Maven project (in Java) that was going very well. I work in Eclipse Neon.
<p>
Now I want to be able to store data in JSON, so after googling, I chose <a href="https://github.com/stleary/JSON-java" rel="nofollow noreferrer">org.json</a>. In the README it says:</p>

<blockquote>
  <p>JSON-java releases can be found by searching the Maven repository for groupId "org.json" and artifactId "json".</p>
</blockquote>

<p>Thus, my pom.xml looks like this:</p>

<pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;groupId&gt;io.github.runningchickendev.ecomarket&lt;/groupId&gt;
    &lt;artifactId&gt;EcoMarket&lt;/artifactId&gt;
    &lt;version&gt;0.0.1&lt;/version&gt;

    &lt;repositories&gt;
        ...

        &lt;repository&gt;
            &lt;id&gt;org.json&lt;/id&gt;
            &lt;url&gt;http://mvnrepository.com/artifact/org.json/json&lt;/url&gt;
        &lt;/repository&gt;
    &lt;/repositories&gt;

    &lt;dependencies&gt;
        ...

        &lt;dependency&gt;
            &lt;groupId&gt;org.json&lt;/groupId&gt;
            &lt;artifactId&gt;json&lt;/artifactId&gt;
            &lt;version&gt;20160810&lt;/version&gt;
            &lt;scope&gt;compile&lt;/scope&gt;
        &lt;/dependency&gt;
    &lt;/dependencies&gt;

&lt;/project&gt;
</code></pre>

<p>Then, I tried <code>Run -&gt; Maven Install</code>, and it seemed to be working. However, when I try to get this jar run (I don't execute it myself, it is loaded as a plugin), it throws a <code>ClassNotFoundException:org.json.JSONObject</code>.</p>

<p>I'm using jdk-1.8 if that's of any importance.</p>