java - Access to another maven dependency configuration files -
i'm writing here because i'm getting headaches trying find out happening.
i'm working on "toolbox" project id validate provided string among different kind of rules. i've stored different rules on xml files , project works properly.
its structure :
validatorproject : |___ src/main/java |____ validatormanage.java (this 1 have method able load correct config validator file , validate provided string) |___ src/main/resources |____ *.xml (a lot of xml config files)
unit testing, direct manager instanciation inside project works expected.
now i'd add project maven dependency other projects need validate datas.
my problem creating new validatormanger instance in second project validatormanager.class.getclassloader().getresourceasstream
not working because used project n°2 classpath , can't find config files.
i tried import resources in maven build of validator project (i got if unzip jar file), don't know how can have access it.
if have solution (and more important explanations way work) grateful cause turn around on this. i'm pretty sure there during maven build of validator project can't find what.
thanks in advance taking time read me , sorry english :/
have nice day
put xml config files under src/main/resources
Comments
Post a Comment