Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » eclipse plugin classpath issue(restrict class path to dependent project)
eclipse plugin classpath issue [message #1709231] Fri, 25 September 2015 07:01
Shri G is currently offline Shri GFriend
Messages: 7
Registered: August 2014
Junior Member
Created multimodule maven project where folder structure is as below,

|-ProjectA
|-projectB
|-projectC
|-projectD
Created jar of ProjectA using maven shade and AppendingTransformer to include spring handlers,Schema.(Project B uses spring 3.0.7.RELEASE)

Then added this ProjectA jar in eclipse plugin project and build path. One of the eclipse project calls ProjectB.method(); which loads configuration file as,

ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("classpath*:META-INF/myfolder/plugin.xml");
This plugin.xml has

<context:component-scan base-package="mysamplefolderpath" />
Problem occurs when it's starts scanning base package in all the jars which are in classpath of eclipse plugin project (eclipse plugin project uses spring 3.0.5.RELEASE).

How can I restrict that base package scan in classpath of ProjectA only?
Previous Topic:E4 plug-in's are not visible
Next Topic:Problem with "MatchingCharacterPainter"
Goto Forum:
  


Current Time: Thu Apr 25 15:56:55 GMT 2024

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

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

Back to the top