title: Unable to parse configuration of mojo org.apache.maven.plugins:maven-assembly-plugin:3.1.1
body: <p>I have my first multi-module program, project structure is:</p>
  
  <pre><code>testMods
  |
  ├───checker
  │   │ 
  │   │
  │   └───src
  │   |   └───main
  │   |       └───java
  │   |       |   │  
  │   |       |   │
  │   |       |   └──────sample
  │   |       |   |   └───Controller.java
  │   |       |   |   └───Main.java
  |   |       |   |   └───MainLauncher.java
  │   |       |   |
  |   |       |   └──────module-info.java               
  │   |       |
  |   |       └────resouces
  |   |          └───META-INF  
  |   |
  |   └────pom.xml
  |             
  └───TextInputProgram
  |   │   
  |   │
  |   └───src
  |   |   └───main
  |   |       └───java
  |   |           │  
  |   |           │
  |   |           └───project
  |   |           |    └───Name1.java
  |   |           |    └───Name2.java
  |   |           |    └───Name3.java
  |   |           |    └───Name4.java 
  |   |           |             
  |   |           └───module-info.java
  |   |            
  |   └────pom.xml
  |
  └────pom.xml
  </code></pre>
  
  <p>POM inside <em>checker</em>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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;parent&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;testMods&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
  
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;artifactId&gt;checker&lt;/artifactId&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-controls&lt;/artifactId&gt;
              &lt;version&gt;12.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-fxml&lt;/artifactId&gt;
              &lt;version&gt;12.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;javafx-graphics&lt;/artifactId&gt;
              &lt;version&gt;12.0.2&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
              &lt;artifactId&gt;TextInputProgram&lt;/artifactId&gt;
              &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
                  &lt;artifactId&gt;javafx-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;0.0.3&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;11&lt;/source&gt;
                      &lt;target&gt;11&lt;/target&gt;
                      &lt;mainClass&gt;sample.MainLauncher&lt;/mainClass&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>POM inside <em>TextInputProgram</em>:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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;parent&gt;
          &lt;groupId&gt;org.openjfx&lt;/groupId&gt;
          &lt;artifactId&gt;testMods&lt;/artifactId&gt;
          &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;/parent&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;artifactId&gt;TextInputProgram&lt;/artifactId&gt;
  
      &lt;properties&gt;
          &lt;maven.compiler.source&gt;11&lt;/maven.compiler.source&gt;
          &lt;maven.compiler.target&gt;11&lt;/maven.compiler.target&gt;
  
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
              &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
              &lt;version&gt;3.141.59&lt;/version&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>main POM (testMods):</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &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;org.openjfx&lt;/groupId&gt;
      &lt;artifactId&gt;testMods&lt;/artifactId&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
      &lt;/properties&gt;
  
      &lt;modules&gt;
          &lt;module&gt;checker&lt;/module&gt;
          &lt;module&gt;TextInputProgram&lt;/module&gt;
      &lt;/modules&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.1.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;archive&gt;
                          &lt;source&gt;11&lt;/source&gt;
                          &lt;target&gt;11&lt;/target&gt;
  
                          &lt;manifestEntries&gt;
                              &lt;Automatic-Module-Name&gt;selenium-api&lt;/Automatic-Module-Name&gt;
                              &lt;Automatic-Module-Name&gt;selenium-chrome-driver&lt;/Automatic-Module-Name&gt;
                          &lt;/manifestEntries&gt;
  
                          &lt;manifest&gt;
                              &lt;addClasspath&gt;true&lt;/addClasspath&gt;
                              &lt;mainClass&gt;sample.MainLauncher&lt;/mainClass&gt;
                          &lt;/manifest&gt;
                      &lt;/archive&gt;
                      &lt;descriptorRefs&gt;
                          &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
                      &lt;/descriptorRefs&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;make-assembly&lt;/id&gt;
                          &lt;phase&gt;package&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;single&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&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.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;11&lt;/source&gt;
                      &lt;target&gt;11&lt;/target&gt;
                      &lt;showWarnings&gt;true&lt;/showWarnings&gt;
                      &lt;showDeprecation&gt;true&lt;/showDeprecation&gt;
                  &lt;/configuration&gt;
                  &lt;dependencies&gt;
                      &lt;dependency&gt;
                          &lt;groupId&gt;org.ow2.asm&lt;/groupId&gt;
                          &lt;artifactId&gt;asm&lt;/artifactId&gt;
                          &lt;version&gt;7.0&lt;/version&gt;
                      &lt;/dependency&gt;
                  &lt;/dependencies&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>When I'm trying to build as <em>jar with all dependencies</em> using <code>maven-assembly-plugin</code>, I'm getting always the issue:</p>
  
  <pre><code>Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:3.1.1:single (make-assembly) on project testMods: Unable to parse configuration of mojo org.apache.maven.plugins:maven-assembly-plugin:3.1.1:single for parameter source: Cannot find 'source' in class org.apache.maven.archiver.MavenArchiveConfiguration
  </code></pre>
  
  <p>The same issue will be even if I change the version of maven-assembly-plugin using path:</p>
  
  <pre><code>\.m2\repository\org\apache\maven\plugins\maven-assembly-plugin
  </code></pre>
  
  <p>Deleting <em>org folder</em> using <code>\.m2\repository\org</code> path, didn't help to solve this issue. When maven reloaded all dependencies, I get the error: <code>Unable to parse configuration of mojo</code> again.</p>
  
  <p>I've noticed that instead of getting single jar for all modules, I get separately two jars, but not single for all. During compiling, I get <em>target</em>-folders just for separated modules, but not for main POM.</p>
  
  <p>If I delete in main POM:</p>
  
  <pre><code>&lt;executions&gt;
    &lt;execution&gt;
       &lt;id&gt;make-assembly&lt;/id&gt;
       &lt;phase&gt;package&lt;/phase&gt;
       &lt;goals&gt;
          &lt;goal&gt;single&lt;/goal&gt;
       &lt;/goals&gt;
    &lt;/execution&gt;
  &lt;/executions&gt;
  </code></pre>
  
  <p>Then I don't see this error during <em>packaging</em> and <em>compiling</em>. And plugin works, but I'll get separated jars only like:</p>
  
  <ul>
  <li><em>checker-1.0-SNAPSHOT.jar</em></li>
  <li><em>TextInputProgram-1.0-SNAPSHOT.jar</em> (in their own modules folders)</li>
  </ul>
  
  <p>If I run one of them, I see:</p>
  
  <pre><code>no main manifest attribute, in D:\IdeaProject\testMods\testMods\checker\target\checker-1.0-SNAPSHOT.jar
  </code></pre>
  
  <p><strong>But I generated in resource folder MANIFEST, as you can see my structure.</strong>
  To create it, I choosed these options in <em>Project Structure -> Artifacts</em>:
  <a href="https://i.stack.imgur.com/rFXbF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rFXbF.png" alt="enter image description here"></a></p>
  
  <p>In addition, I tried to use in main POM <code>maven-shade-plugin</code> instead of <code>maven-assembly-plugin</code>. In this case I can compile and package, but again I have two different jars as separated modules like:</p>
  
  <ul>
  <li><em>original-TextInputProgram-1.0-SNAPSHOT.jar</em></li>
  <li><em>TextInputProgram-1.0-SNAPSHOT.jar</em></li>
  <li><em>checker-1.0-SNAPSHOT.jar</em></li>
  <li><em>original-checker-1.0-SNAPSHOT.jar</em></li>
  </ul>
  
  <p>but not main jar that includes all of this.</p>
  
  <p>Can somemone tell me what I need to correct here to get finally jar that includes all modules inside?</p>