Note that there are some explanatory texts on larger screens.

plurals
  1. POHow do I deploy multiple peer webapps from a parent pom
    primarykey
    data
    text
    <p>I have a set of web apps that I manage that I am trying to move to maven. </p> <pre> /pom.xml // parent pom webapp1/pom.xml // configured to point to parent webapp2/pom.xml // peer of webapp1 and points to parent. </pre> <p>each of the webapps refers to the parent pom, and they both currently have a jetty maven plugin that works.</p> <p>My question is how do I mount each of the webapps from the parent pom such that mvn jetty:run works in the parent directory?</p> <p>edit to anwer: Pascal T The issue is not so much that I'm getting an error when I try and run the command from the root pom, but that I'm not sure how to configure it.</p> <p>for example the webapp1/pom.xml looks like:</p> <pre><code>&lt;project&gt; ... &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.mortbay.jetty&lt;/groupId&gt; &lt;artifactId&gt;maven-jetty-plugin&lt;/artifactId&gt; &lt;/plugin&gt; &lt;/plugins&gt; ... &lt;/project&gt; </code></pre> <p>changing to this directory and typing mvn jetty:run works just fine and affords me the ability to hit: <a href="http://localhost:8080/webapp1" rel="noreferrer">http://localhost:8080/webapp1</a>.</p> <p>However, what I would like would be to be in the parent of webapp1, and run all 'n' webapps from the parent directory. Thus having <a href="http://localhost:8080/webapp1" rel="noreferrer">http://localhost:8080/webapp1</a>, and <a href="http://localhost:8080/webapp2" rel="noreferrer">http://localhost:8080/webapp2</a> available with one command line parameter.</p> <p>btw, if the answer involved a tomcat plugin, that would be fine.</p>
    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.
 

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