maven configuration for compiling a java project in eclips
Madhu Menda
Greenhorn
Joined: May 30, 2011
Posts: 7
posted
0
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
posted
0
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)
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
posted
0
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.