netbeans - Maven include test sources as dependency -


i have multi-module project looks this:

module-a --pom.xml   --sourcedirectory     --sourcea.java   --testsourcedirectory     --testsourcea.java module-b --pom.xml   --sourcedirectory     --sourceb.java   --testsourcedirectory     --testsourceb.java ...many similar modules  parentmodule --pom.xml   --dependency     --module-a     --module-b     ...     --module-x 

i have parentmodule in order access source files (sourcea.java) in a,b, etc. in netbeans using "go type" without opening modules projects. seems simple dependency cannot access testsourcedirectory sources (testsourcea.java).

is there tags allow parentmodule see , index testsourcedirectories in modules?

i think got fundamentally wrong. maven build tool ‐ see maven's introduction. it's not tool supporting handling of sources in ide of choice.

furthermore, dependency, declared in maven, module/artifact/library code relies on @ runtime. so, there's no point declaring test sources, used part of development cycle only, (runtime) dependencies.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -