Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven assembly Plugin with Maven Jar Plugin
    primarykey
    data
    text
    <p>I'm trying to use the maven assembly plugin for the first time. Essentially, I want to combine the output of the maven assembly plugin with that of the maven jar plugin into the target/classes directory so I can still run the app within Eclipse. </p> <p>I couldn't find a way to tell the maven jar plugin to collect the output of the maven assembly plugin. Similarly, I found no way to tell assembly plugin to put its output into target/classes.</p> <p>The closes i cam to a solution was to tell assembly plugin to output its result into classes.dir directory. The suffix 'dir' is the format used while 'classes' is the finalName define in the plugin configuration. </p> <p>I was hoping that directory-single would force assembly plugin to ignore the format and hence, output in the classes directory. This doesn't work for me; am i misinterpreting the description of this goal?</p> <p>How would you guys solve this issue? Below is my assembly plugin declaration in the pom as well as my descriptor:</p> <pre><code> &lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt; &lt;version&gt;2.2-beta-1&lt;/version&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;package&lt;/id&gt; &lt;goals&gt; &lt;goal&gt;directory-single&lt;/goal&gt; &lt;/goals&gt; &lt;phase&gt;package&lt;/phase&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;configuration&gt; &lt;appendAssemblyId&gt;false&lt;/appendAssemblyId&gt; &lt;finalName&gt;classes&lt;/finalName&gt; &lt;descriptors&gt; &lt;descriptor&gt;descriptor.xml&lt;/descriptor&gt; &lt;/descriptors&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;assembly&gt; &lt;files&gt; &lt;file&gt; &lt;source&gt;${repository-path}&lt;/source&gt; &lt;outputDirectory&gt;/&lt;/outputDirectory&gt; &lt;filtered&gt;true&lt;/filtered&gt; &lt;destName&gt;repository.xml&lt;/destName&gt; &lt;/file&gt; &lt;/files&gt; &lt;fileSets&gt; &lt;fileSet&gt; &lt;directory&gt;src/main/resources&lt;/directory&gt; &lt;outputDirectory&gt;/&lt;/outputDirectory&gt; &lt;/fileSet&gt; &lt;fileSet&gt; &lt;directory&gt;${project.build.directory}&lt;/directory&gt; &lt;/fileSet&gt; &lt;/fileSets&gt; &lt;/assembly&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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