Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

how to configure my already existing project in Maven

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello friends,

plese tell me, how to configure my already existing project in Maven???
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried so far? Have you read the Maven quickstart guides on their website?
 
pallavi chaudhari
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Martijn Verburg wrote:What have you tried so far? Have you read the Maven quickstart guides on their website?




not whole...but somewhat.....

please provide link......if any for mavenizing existing project in Netbeans
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well firstly, have you enabled the Maven plugin for Netbeans?
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, Maven is very opinionated about how a project is managed. You might have to create a new Maven project (after installing the Maven plugin) and copy your sources into that project. If your current project build multiple artifacts, you will need multiple Maven projects.

For the benefit of the forum readers, Pallavi posted his pom.xml here:
https://coderanch.com/t/463400/Ant-Maven-Other-Build-Tools/use-pom-xml-preexisting-project
 
pallavi chaudhari
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Martijn Verburg wrote:Well firstly, have you enabled the Maven plugin for Netbeans?



hi Martijn,

yes i have enabled Maven plugin.And created new Maven Project.

 
pallavi chaudhari
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Peter Johnson wrote:Also, Maven is very opinionated about how a project is managed. You might have to create a new Maven project (after installing the Maven plugin) and copy your sources into that project. If your current project build multiple artifacts, you will need multiple Maven projects.

For the benefit of the forum readers, Pallavi posted his pom.xml here:
https://coderanch.com/t/463400/Ant-Maven-Other-Build-Tools/use-pom-xml-preexisting-project



Hello Peter,

Shall I have to do this manually......netbeans does not provide this conversion from existing java project to Maven Project??(But I think its possible using Eclipse...Am i correct???)

 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You generally have to manually change your project yes.
 
pallavi chaudhari
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Martijn Verburg wrote:You generally have to manually change your project yes.




Ok.....I am doing that.....I need artifact id for org.apache.commons.pool.ObectPool

please tell......i searched but not getting...
 
Martijn Verburg
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look in mvnrepository.com and also search for "Maven Search sites" in google, it'll come up with a few more, best of luck!
 
My pie came with a little toothpic holding up this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic