Display all the classes loaded by jvm in Eclipse

I have a maven project which referenced hibernate-jpa-2.0 then I upgraded to hibernate-jpa-2.1. I got rid of all the indirect references to jpa-2.0 in pom and added explicitly the reference to jpa-2.1 but somehow it still uses the old one. In order to find out which jar version it is using, I added ‘-verbose:class‘ vm parameter then found out it still uses jpa-2.0 on the classpath. Then I manually deleted jpa-2.0 from local maven repository and rebuilt the project. Then everything works fine.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s