Note that there are some explanatory texts on larger screens.

plurals
  1. POMaven multi-module web application (Hot swap)
    primarykey
    data
    text
    <p>I have a multi module web application.</p> <p>The structure is:</p> <pre><code>Parent | | - - Child 1 | - - Child 2 | - - Web </code></pre> <p>And the web project depends on the two child modules</p> <p>When using my IDE to build my project I was used to the IDE building the classes in the WEB-INF/classes folder. This was nice as the web server noticed the new classes and either restarted or hot deployed these files. With maven it seems that I have to package the whole thing from scratch every time. </p> <p>I would like to find a way in maven such that i can avoid running mvn:clean mvn:install mvn:war:inplace. Instead I would like a mvn:comile, and then the stuff just there. </p> <p>I hope you understand what I mean. Testing the web app is extremely slow when you always have to build all the project jars and run som war command before things are updated. </p> <p>The web apps pom:</p> <pre><code>&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/maven-v4_0_0.xsd"&gt; &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt; &lt;parent&gt; ... &lt;/parent&gt; &lt;artifactId&gt;web&lt;/artifactId&gt; &lt;packaging&gt;war&lt;/packaging&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;bla.bla.bla&lt;/groupId&gt; &lt;artifactId&gt;bla_child1&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;bla.bla.bla&lt;/groupId&gt; &lt;artifactId&gt;bla_child2&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.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt; &lt;version&gt;2.4&lt;/version&gt; &lt;/plugin&gt; &lt;plugin&gt; &lt;groupId&gt;org.eclipse.jetty&lt;/groupId&gt; &lt;artifactId&gt;jetty-maven-plugin&lt;/artifactId&gt; &lt;version&gt;9.0.4.v20130625&lt;/version&gt; &lt;configuration&gt; &lt;scanIntervalSeconds&gt;30&lt;/scanIntervalSeconds&gt; &lt;webApp&gt; &lt;contextPath&gt;/blabla&lt;/contextPath&gt; &lt;/webApp&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/build&gt; &lt;/project&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.
 

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