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 ?
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.
All things are lawful, but not all things are profitable.
posted 5 months ago
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 ?