• 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
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

convert into maven project question  RSS feed

 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used eclipse convert to maven project tool to convert a simple java project.  I have question here:  In my project, in java build path-->library I have bunch of open source jar files like some apache open source jars.   After I used the tool to convert the pj inot maven pj, it generates a pom.xml.  But the pom.xml doesn't include anything like dependency for these jar files.  I checked the effective pom.xml and it doesn't have it either.  I thought maven uses pom.xml to specify what dependency jars it needs to get from repository, right ?  So for my case, my project needs those jars but why the conversion tool doesn't include them in pom.xml ?
 
Sheriff
Posts: 5291
142
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the jars aren't under the Maven Dependencies pull down then there're not from the pom file.  I've never heard of Eclipse adding jars during a conversion to Maven.  I've added this thread to the Eclipse forum to see if anyone has an idea.
 
Linwood Hayes
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess I have to manually add the dependency elements for those jars in pom.xml. 

Another question--- In eclipse, if i have WEB project and EJB project and EAR project, do i need to convert ALL three of them into maven or just convert WEB and EJB projects ?
 
Knute Snortum
Sheriff
Posts: 5291
142
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not very familiar with Java EE, but I would think that you would want all three built by Maven or some build control system.  I've added this thread to the Java EE forum.
 
author & internet detective
Marshal
Posts: 38682
677
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Linwood Hayes wrote:I guess I have to manually add the dependency elements for those jars in pom.xml. 

Another question--- In eclipse, if i have WEB project and EJB project and EAR project, do i need to convert ALL three of them into maven or just convert WEB and EJB projects ?


All three. It is common to have a parent project and also child projects.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!