简体   繁体   中英

Class from maven dependency is not listed in eclipse “Open Type”

I am having a maven project that has few maven dependencies. Out of those dependencies, there is a custom jar coming from our custom maven repo.

When try to search for the classes from that custom jar using ' Open Type ', I am unable to see the classes. But I see the jar is available under ' Maven Dependencies ' of the project. Also I am able to use the classes from the jar in my project.

PS:

  • When I run tests from the project I get " ClassNotFoundException " for the classes from that Jar. Not sure if there is a relation between this and the issue of eclipse unable to list it in "Open Type".

There might be multiple reasons:

  1. try mvn eclipse:eclipse
  2. try in package explorer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM