Maven updated and existing classpath for a Java peoject?
Hello everyone,
If I create a Maven project, and add dependencies in Maven pom.xml, I think Maven will update classpath, and how to see exsting classpath and Maven updated ones for build a Java project? Thanks.
thanks in advance,
Lin
请先登录再写评论。
Refresh Maven project in the Maven tool window, you can also see the dependencies in the Project View and in the Maven tool window.
Thanks Serge,
For project View, do you mean project Structure? Attach screen snapshot. And what is the Maven tool function do you mean? Checked under Tool Menu, seems no Maven. Sorry for basic questions from a beginer. :)
Here is the screenshot:

Related links:
https://www.jetbrains.com/idea/help/maven-projects-tool-window.html
https://www.jetbrains.com/idea/help/working-with-maven-dependencies.html
Thanks Serge,
The documents helped a lot. From this document (https://www.jetbrains.com/idea/help/working-with-maven-dependencies.html ) you referred, it is mentioned, "
But I do not find Dependencies | Show Dependencies window?
Attach my screen snapshots. Thanks.
This feature is not available in the Community Edition:

Thanks Serge,
When you say "Project View" window in your first reply, which window do you mean? Appreciate if you could post a scren snapshots. :)
Have a good weekend.
regards,
Lin
"Project" on the left of the screen shows the dependencies under "External Libraries" node.
Dependencies are also shown on the righ of the screen in the "Maven Projects" under "Dependencies" node.
Thanks Serge,
Want to confirm my understanding is correct,
1. On the left side Project window, it contans all dependent libraries, the ones from Maven and the ones from external (besids maven);
2. On the right side Maven window, it contains only Maven dependencies.
regards,
Lin
1. If you are using Maven, there will be no other dependencies as all the dependencies are synchronized with Maven, but this list also contains JDK.
2. Yes, this list will not include JDK.
Thanks Serge!
Have a great weekend.
regards,
Lin