How to deploy maven web project to Virgo? [message #976004] |
Thu, 08 November 2012 08:38 |
Erik Vande Velde Messages: 82 Registered: September 2012 |
Member |
|
|
My challenge is to come up with a web project that can be built with maven, and deployed to Virgo. After many days of experiments I found a very cumbersome way to do it, but I hope the experts on this forum can guide me to something more practical.
What works for me today:
1) Organize the code in a typical maven way with src/main/java, src/test/java, src/main/resources, src/test/resources, but with the web configuration directly under 'WebContent', where eclipse dynamic web modules hope to find it
2) Build that code with a mvn clean install, and create an eclipse project with mvn eclipse:eclipse
3) Import that project in eclipse, and add a Virgo Bundle Facet to it
4) Deploy the bundle to Virgo (the server is not running for the time being)
5) Add a Dynamic Web Module Facet to the web bundle project
6) Remove the deployment from step 4 from the virgo server, and add the new bundle (the one with a web icon next to it, created in step 5) to the list of bundles to deploy
7) Start the server ...
My main problem is that when I leave out step 4 from the procedure above, I don't have anything to deploy in step 6. So adding the dynamic web facet somehow makes Virgo/Eclipse forget that this is a deployable bundle. WHY ????
[Updated on: Mon, 12 November 2012 07:26] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03511 seconds