Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Maven library not found when I test an Eclipse Plug-In(Maven library not found when I test an Eclipse Plug-In)
Maven library not found when I test an Eclipse Plug-In [message #1779290] Thu, 04 January 2018 21:57 Go to next message
Rodrigo Alvarenga is currently offline Rodrigo AlvarengaFriend
Messages: 3
Registered: January 2018
Junior Member
Dear Coders,

I created an Eclipse Plugin (actually a BIRT emitter) which uses a few classes from Maven to access an specific client (ElasticSearch).

First I created the plugin and than I converted the project "as Maven" with a right click on the project folder.

Now, when I am testing the plugin, runtime can't see Maven libraries:

Caused by: java.lang.NoClassDefFoundError: org/elasticsearch/common/settings/Settings

I inserted pom.xml on my plug-in classpath. Should I add anything else?

Thanks for your help. Happy new year to us all!

BR

[Updated on: Thu, 04 January 2018 21:59]

Report message to a moderator

Re: Maven library not found when I test an Eclipse Plug-In [message #1779300 is a reply to message #1779290] Fri, 05 January 2018 05:48 Go to previous message
Ed Merks is currently online Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This isn't a JDT question. Certainly a JDT knows nothing about pom.xml and will do nothing with regard to the classpath. If you have an Eclipse plugin, dependencies should be in the MANIFEST.MF and they should resolve in your target platform. Perhaps https://www.eclipse.org/m2e/ can help and your build could use https://www.eclipse.org/tycho/ to extend Maven.

Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Java Development related questions.
Next Topic:Is it possible to get ASTNode and corresponding IBinding using offset and length?
Goto Forum:
  


Current Time: Thu Apr 25 15:06:01 GMT 2024

Powered by FUDForum. Page generated in 0.04058 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top