Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to skip building of the pom in multi-module project
    primarykey
    data
    text
    <p>I'm trying to optimize my build process (in development) in term of time to build the whole tree of maven multi-module project. Some of the POM are actually aggregation of sources/libraries that rarelly (and typically) never change. So specific sub-questions are</p> <ol> <li><p>Is it possible to somehow configure maven to not build pom if there are no changes in sources specified in POM:project/build/sourceDirectory attribute?</p></li> <li><p>Or is it possible to (at least) conditionally disable maven-bundle-plugin? - it takes most of the time.</p></li> </ol> <p>Google could not find anything relevant Q#1. Typical solution does not work for #2 - when i try to specify 'executions' for maven-bundle-plugin (like this)</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.felix&lt;/groupId&gt; &lt;artifactId&gt;maven-bundle-plugin&lt;/artifactId&gt; &lt;version&gt;${maven-bundle-plugin.version}&lt;/version&gt; &lt;extensions&gt;true&lt;/extensions&gt; &lt;executions&gt; &lt;execution&gt; &lt;id&gt;osgi-bundle&lt;/id&gt; &lt;phase&gt;bundle&lt;/phase&gt; &lt;goals&gt; &lt;goal&gt;bundle&lt;/goal&gt; &lt;/goals&gt; </code></pre> <p>i receive this error in output</p> <pre><code>[bundle:bundle] Bundle artifact-id:bundle-id:bundle:0.1.0-SNAPSHOT : The JAR is empty: dot Error(s) found in bundle configuration </code></pre> <p>Any help is appreciated. I'm aware about following: <br/> * <a href="https://stackoverflow.com/questions/7821152/disable-a-maven-plugin-defined-in-a-parent-pom">Disable a Maven plugin defined in a parent POM</a> (maven-bundle-plugin can't work with 'executions' tag) <br/> * <a href="https://stackoverflow.com/questions/4287451/skip-execution-of-a-maven-plugin-if-a-file-does-not-exist">Skip execution of a maven plugin if a file does not exist</a> (maven-bundle-plugin does not have skip confiuration option) <br/> * <a href="https://stackoverflow.com/questions/5579256/how-to-skip-lifecycle-phase-in-multi-maven-module">How to skip lifecycle phase in multi maven module</a> (the same as previous) <br/> * If entire maven-bundle-plugin is moved into profile, maven does not recognize packaging=bundle.</p>
    singulars
    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.
    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