java - "Hide" a maven artifact from the eclipse autocomplete -


for reasons don't want begin into.. have maven hierarchy looks 1 below. in nutshell, requires commonslang3, except 1 ancient artifact requires commonslang2.

we have no issues compile or runtime, dependencies work expected. challenge having @ development time.

we'd ensure on team uses commonslang3 apis, (because of ancient artifact , eclipse auto suggest), accidentally uses commonslang2 apis.

normally, force desired version in our pom, commonslang special snowflake. package signature changed between comonslang2 , commonslang3, means have compile failures if excluded older library. e.g.,

  • org.apache.commons.lang3.stringutils
  • org.apache.commons.lang.stringutils

my question this, how can configure maven/eclipse, use commonlang2 needed during compile... not populate in eclipse class autosuggest list? desired end state types 'stringuti' + ctrl + space, , option see commonslang3. aware each developer can remove individual classes via (window->preferences->java->appearance->type filters) not viable solution 2 reasons: 1) it's large team changing resources... 2) need entire artifact removed, in hundreds of classes.

example tree:

mywar   -- mymodulejar1      -- ...   -- mymodulejar2      -- liba         -- commonslang         -- ...       -- libb         -- commonslang3            -- ...      -- libc         -- commonslang3         -- ...      -- ... 

in eclipse: window->preferences->java->appearance->type filters

add org.apache.commons.lang.*

because want affect auto-complete function of ide, forced change setting in ide. can export preferences , share them of rest of team.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -