Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Porting maven project to eclipse..... problem

 
Shounak Acharya
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a project that has been built with maven. Now I want to import it on eclipse but my eclipse does not have the maven plugg-in. I have imported it and resolved all the dependencies. The project is built upon struts framework. Now when I run the project from within eclipse it throws a run-time exception stating that application-context.xml does not exist even though I have put the application-context.xml in the WEB-INF folder. Please provide a suggestion cause my office does notr allow me to download the plug-inn for maven.
 
Peter Johnson
author
Bartender
Posts: 5855
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Shounak. welcome to Java Ranch!

Are you sure that when your WAR gets built and deployed, that the deployed WAR contains WEB-INF/application-context.xml?

Also, even without the m2eclipsep lugin you can still use Maven to build your app. In your project's properties, look under Builders, click the New button, choose Program, and then fill in the information necessary to run mvn.

Shounak wrote:cause my office does notr allow me to download the plug-inn for maven.

I am now prying my fingers away from the keyboard before going into a rant about how some companies make it impossible for their employees to get any work done by dictating byzantine rules. You have my sympathy.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic