• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

convert into maven project question

 
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 170
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic