java - JUnit and other dependencies not recognized by CI build -
background:
so team using microsoft's git services , we've set ci tests. not using maven, , project connected remote server through eclipse microsoft team services plugin, try interact remote repo through command line.
current strategy:
i'm not familiar how deal dependencies on remote repo java projects i've tried pushing .jar dependencies in our build path rest of source code (i know they're big , there's better way this).
problem:
when push .jar files, ci tests still fail following errors:
src\jblastests.java(1):src\jblastests.java(1,): error : [javac] d:\a\1\s\ src\jblastests.java:1: error: package org.junit not exist src\jblastests.java(5):src\jblastests.java(5,): error : [javac] d:\a\1\s\ src\jblastests.java:5: error: package org.jblas not exist
and more error reports related missing symbols due packages not being found.
questions:
1) else needs on repo make build work?
2) there better way, besides maven, link libraries repo?
(i'm not averse using maven want find simpler solution interim).
apologies if duplicate. searched couldn't find other posts regarding situation.
it looks dev set ci tests set them ant build task despite not being how handle dependencies. thank howgler pointing out ci might building differently locally. i'll post answer in case else runs issue , doesn't think check ci build settings (and update title appropriately).
lesson
make sure ci build task same how you're building locally. until add dependencies , try push them, builds might succeeding, can misleading ci settings incorrect.
Comments
Post a Comment