Note that there are some explanatory texts on larger screens.

plurals
  1. POUsing maven overlays in webapp run configuration using IntelliJ?
    primarykey
    data
    text
    <p>I am developing a magnolia based website. I am using the webapp archetype to create a new web application. Using the command line I am able to produce a WAR and deploy that in my container (Tomcat). I then run it and it works fine.</p> <p>My next step was to import my project structure into IntelliJ. IntelliJ sees everything fine, and is able to compile it all. I have tested this by doing a maven clean first, and then let IntelliJ do the rest (rebuild project).</p> <p>The last step is to let it run in my container. I have set up the run configurations before for web apps (they do not use war overlays), and they worked just fine. In this case I set it up just like before and point to my exploded webapp artifact.</p> <p>Once I run tomcat, it does not find my webapp. I find that the overlay has not been merged into the target directory of the project (which normally is the case when just doing maven install). IntellJ however has created an overlays directory in my project and unpacked the (overlay/super) WAR file in there.</p> <p>I get it working when I do a maven install myself, and then run Tomcat in IntelliJ. Which is obvious, because all sorts of needed files are now in my target directory (like a web.xml for example :)).</p> <p>What I want is this: - IntelliJ knows that when it runs Tomcat, it should have prepared the target directory just like "mvn install" or "mvn package" would do.</p> <p>What it does: - It does something in between. It does create a target dir, and it does copy resources from the webapp project. It does not overlay any WAR dependency, hence the webapp target dir is incomplete.</p> <p>Anyone has any tips to solve this?</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