title: Maven dependencies issue?
body: <p>I created a Maven project on IntelliJ and it runs correctly. Now, I would like to run my project with Docker and without IntelliJ.</p>
  <p>For this, I use this command : <code>docker run -it --rm --name my-maven-project -v /var/www/html/Recommandation/:/usr/src/mymaven -p 88:88 -w /usr/src/mymaven maven:latest /bin/bash -c &quot;mvn clean install &amp;&amp; java -jar target/Recommandation-1.0-SNAPSHOT.jar org.exemple.demo.App&quot;</code></p>
  <pre class="lang-sh prettyprint-override"><code>[INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  42.037 s
  [INFO] Finished at: 2020-07-01T11:33:43Z
  [INFO] ------------------------------------------------------------------------
  Error: Unable to initialize main class org.exemple.demo.App
  Caused by: java.lang.NoClassDefFoundError: io/vertx/core/Verticle
  </code></pre>
  <p>But there is a dependency resolution issue. Any idea ?</p>
  <p>Here's my pom.xml :</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;org.exemple.demo&lt;/groupId&gt;
      &lt;artifactId&gt;Recommandation&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;build&gt;
          &lt;defaultGoal&gt;install&lt;/defaultGoal&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.8.0&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.8&lt;/source&gt;
                      &lt;target&gt;1.8&lt;/target&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.4&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;archive&gt;
                          &lt;manifest&gt;
                              &lt;mainClass&gt;org.exemple.demo.App&lt;/mainClass&gt;
                          &lt;/manifest&gt;
                      &lt;/archive&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;name&gt;Recommandation&lt;/name&gt;
      &lt;url&gt;http://maven.apache.org&lt;/url&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;maven.compiler.source&gt;7&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;7&lt;/maven.compiler.target&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
      ...
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>