• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Adding maven projects to Servers added to Eclipse 3.4

 
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Guys,

Basically i can add a server such as Jboss, Tomcat to eclipse perfectly fine, and if i create a Dynamic Web Project it can be seen by the server and added to it for hot deployments etc, All works great

So heres the prob, I found in order to create a War file with maven, it expects the project to be in a certain structure eg

src/java/main
src/java/resources
src/java/webapp

And you put all your jsps, WEB_INF ect in the webapp folder.

Which is different to the Dynamic Web Project structure

src/java/main
WebContext

WebContext or what ever you call the folder is basicaly on the same level as src and you can put the jsps here etc.

Now a project with the maven structure can not be seen by the embedded server in eclipse and so the project cant be added for hot deploments through eclipse, instead i need to do builds etc with maven and drop the war into Tomcat myself or with a script, Anyone know how to get a mavinised Web project added as a project to a server added to eclipse

I have tried both tomcat 6.0, Jboss 4.2 and Jetty-Launcher.

best
Mark
 
Mark Hughes
Ranch Hand
Posts: 146
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok sorry, with further investigation, i now know that it is actually when you use the mvn eclipse:eclipse command to generate source code into an eclipse project that the embedded server in eclipse cant work, ill look for maven help.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any luck with this?

I think I have the same problem. Basically, I'm trying to set up a development environment where no IDE-specific stuff gets into the repository, only pom:s and code. It works great with Netbeans, but Eclipse doesn't seem to recognize that my projects are Webapps, so I can't deploy them, even though Maven builds a war as well as exploded war in target.

Please let me know if you solved your problem!
 
Greenhorn
Posts: 11
Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for bringing up an old thread, but I have the same problem. Does anyone know its solution?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try installing the Sonatype Maven WTP Extra plugin from http://m2eclipse.sonatype.org/sites/m2e-extras
Once installed, your Maven web apps should be publishable to servers in Eclipse
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can solve this issue just by adding Dynamic Web Module facet to the project in project Properties > Project Facets.

I know its too late, but someone might benefit from it.
 
I am mighty! And this is a mighty small ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic