Dependency on jar

Hi, am trying to create 2 jars and 2nd jar depends on first one. Both from same project.
Business jar from business pkg.
Main jar from main pkg. I am adding in compile
But when I create 2nd jar it fails on compilation because it’s not finding classes from 1st business jar.
What am I missing ?