I have two projects, A, and B. Project A depends on project B. Project B implements several JUnit tests that run properly with maven test. Project B JUnit tests also define some constants that both project A, and B rely on. When I run maven install on project B none of the test classes (namely the constants) make it into the Project B SNAPSHOT jar, so when project A looks for project B’s constants it can’t find them in project B’s SNAPSHOT jar that is installed in my local repo. Is there any way to tell maven to package/install a test SNAPSHOT jar, or something similar so project A can have access to those constants during the test? These constants are only used in the tests.
Share
testing.test.