This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes maven configuration for compiling a java project in eclips Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven configuration for compiling a java project in eclips" Watch "maven configuration for compiling a java project in eclips" New topic
Author

maven configuration for compiling a java project in eclips

Madhu Menda
Greenhorn

Joined: May 30, 2011
Posts: 7
Hi ,

I'm using eclipse and maven. Could you please explain me where i've to do configuration for maven clean and build. I read from some of the post like we have to configure in project.xml and pom.xml files . Can anyone expalin me with example.

Thanks in advance
Madhu
rob michael
Greenhorn

Joined: May 22, 2011
Posts: 27
Hi Madhu,

are you familiar with Maven already?

The pom.xml is the build configuration file that Maven uses to build projects, and this is the core of your maven builds (to maven as build.xml is to ant).

If you want to use Maven & Eclipse I would recommend you install the M2Eclipse plugin - this allows you to import existing maven projects as well as create new ones (which will give you an empty pom file and the required directory structure)


Have a look at my blog: http://automateddeveloper.blogspot.com/
Or even my Android Apps (website): http://www.mobile.thirdmindmedia.co.uk
Madhu Menda
Greenhorn

Joined: May 30, 2011
Posts: 7
rob michael wrote:Hi Madhu,

are you familiar with Maven already?

The pom.xml is the build configuration file that Maven uses to build projects, and this is the core of your maven builds (to maven as build.xml is to ant).

If you want to use Maven & Eclipse I would recommend you install the M2Eclipse plugin - this allows you to import existing maven projects as well as create new ones (which will give you an empty pom file and the required directory structure)



Hi Rob ,

Thank you. I'm not familiar with Maven, I'm beginner to Maven. Recently i developed one struts project i'm not able to compiling and target folder was not created.

Thanks,
Madhu
rob michael
Greenhorn

Joined: May 22, 2011
Posts: 27
No probs Madhu,

I would recommend reading up on Maven before getting started - http://maven.apache.org/users/index.html is a good place to start. Its quite straight forward to get a simple java maven project configured and building as it uses convention over configuration.

Once you are confident you understand the maven pom setup, then install M2Eclipse plugin.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

Moving this to the correct forum. This forum is for Spring questions, not Maven questions.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
GeeCON Prague 2014
 
subject: maven configuration for compiling a java project in eclips