Win a copy of Machine Learning Systems: Designs that scale this week in the Scala forum
or Xamarin in Action: Creating native cross-platform mobile apps in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

convert into maven project question  RSS feed

 
Ranch Hand
Posts: 108
  • 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: 4865
136
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: 108
  • 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: 4865
136
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: 38250
623
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.
 
If you're gonna buy things, buy this thing and I get a fat kickback:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!