Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

maven configuration for compiling a java project in eclips

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the correct forum. This forum is for Spring questions, not Maven questions.

Thanks

Mark
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic