I am doing some project based in Spring framework and using maven for building. I need to clear some understanding for the following concepts:
Basically i referred to spring.io's quick guide (sample codes as how-to).
1) If we have an import statement e.g.import org.springframework.stereotype.*,how do we know what maven artifacts we have to provide in pom.xml?
2) Given an import statement e.g. above, how do we know which jar (and hence the artifacts) we have to use in as maven dependency. The short cut that i think of is to use a shell script which does jar -xvf and does look for the package which matches which the import statement in the code.
Any answers highly appreciated.
Thanks!