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

10 comments
Comment actions Permalink

Refresh Maven project in the Maven tool window, you can also see the dependencies in the Project View and in the Maven tool window.

0
Comment actions Permalink

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. :)



Screen Shot 2015-03-26 at 5.06.16 PM.png

Screen Shot 2015-03-26 at 5.10.37 PM.png
0
Comment actions Permalink

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, "

  • In the Maven Projects tool window, right-click the desired
    pom.xml
    file, and choose Show Dependencies, or Show Dependencies Popup.
  • Right-click
    pom.xml
    in the editor, and choose Dependencies | Show Dependencies /Show Dependencies popup."


But I do not find Dependencies | Show Dependencies window?

Attach my screen snapshots. Thanks.

Screen Shot 2015-03-26 at 6.11.52 PM.png

0
Comment actions Permalink

This feature is not available in the Community Edition:

https://dl.dropboxusercontent.com/u/2752840/ShareXmod/2015-03/2015-03-27_14-11-17.png

0
Comment actions Permalink

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

0
Comment actions Permalink

"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.

0
Comment actions Permalink

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

0
Comment actions Permalink

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.

0
Comment actions Permalink

Thanks Serge!

Have a great weekend.

regards,
Lin

0

Please sign in to leave a comment.