File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Porting maven project to eclipse..... problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Porting maven project to eclipse..... problem" Watch "Porting maven project to eclipse..... problem" New topic
Author

Porting maven project to eclipse..... problem

Shounak Acharya
Greenhorn

Joined: Sep 29, 2009
Posts: 1
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

Joined: May 14, 2008
Posts: 5772
    
    7

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.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Porting maven project to eclipse..... problem
 
Similar Threads
eclipse galileo + m2eclipse + enterprise application
Doubt regarding Embedded mavne runtime in Eclipse 3.4
use MAVEN_REPO in eclipse
ClassPathXmlApplicationContext wildcard problem
Libraries not visible under projects java build path in eclipse