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

maven configuration for compiling a java project in eclips

 
Madhu Menda
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)

 
Madhu Menda
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this to the correct forum. This forum is for Spring questions, not Maven questions.

Thanks

Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic