Fork me on GitHub

FAQ

What parameters should be used to build a modular application?

To create modular application use following parameters:

  <modulepath> ... </modulepath>
  <addmodules> ... </addmodules>
  <module> ... </module>

What parameters should be used to build a non modular application?

To create non-modular application use following parameters:

  <input> ... </input>
  <mainjar> ... </mainjar>
  <mainclass> ... </mainclass>

Can I not use the project artifacts at all?

To exclude the project output from modulepath:

  <modulepath>
    <dependencysets>
      <dependencyset>
        <includeoutput>false</includeoutput>
      </dependencyset>
    </dependencysets>
  </modulepath>

How to exclude automatic modules?

To exclude automatic modules from modulepath (but it's a default behavior):

  <modulepath>
    <dependencysets>
      <dependencyset>
        <excludeautomatic>true</excludeautomatic>
      </dependencyset>
    </dependencysets>
  </modulepath>