Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>In your ear module, you can either use the <code>project.build.finalName</code> element or you can configure the <a href="http://maven.apache.org/plugins/maven-ear-plugin/" rel="nofollow noreferrer">maven-ear-plugin</a> which supports a <a href="http://maven.apache.org/plugins/maven-ear-plugin/ear-mojo.html#finalName" rel="nofollow noreferrer"><code>finalName</code></a> optional parameter. And to configure the final name of a bundled jar, you'll need to define a <a href="http://maven.apache.org/plugins/maven-ear-plugin/modules.html#jarModule" rel="nofollow noreferrer"><code>jarModule</code></a> and to set the <code>bundleFileName</code> property for it.</p> <p>The final configuration might looks something like that (I'll demonstrate how to set the the final ear name in the plugin configuration here): </p> <pre><code>&lt;project&gt; [...] &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;yourgroupid&lt;/groupId&gt; &lt;artifactId&gt;projectx-client&lt;/artifactId&gt; &lt;version&gt;2.0.0&lt;/version&gt;&lt;!-- not mandatory if inherited --&gt; &lt;/dependency&gt; [...] &lt;/dependencies&gt; [...] &lt;build&gt; [...] &lt;plugins&gt; [...] &lt;plugin&gt; &lt;artifactId&gt;maven-ear-plugin&lt;/artifactId&gt; &lt;version&gt;2.4&lt;/version&gt; &lt;configuration&gt; &lt;finalName&gt;projectx-ear&lt;/finalName&gt; &lt;modules&gt; &lt;jarModule&gt; &lt;groupId&gt;yourgroupid&lt;/groupId&gt; &lt;artifactId&gt;projectx-client&lt;/artifactId&gt; &lt;bundleFileName&gt;anotherName.jar&lt;/bundleFileName&gt; &lt;/jarModule&gt; &lt;/modules&gt; &lt;/configuration&gt; &lt;/plugin&gt; [...] &lt;/project&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload