How to configure pom to run tests packaged in a jar?

前端 未结 3 1543
梦谈多话
梦谈多话 2021-01-01 16:57

I have a maven build process that publishes executable jars and their tests to Nexus. I have another maven build process that needs to access these jars (executable + test)

3条回答
  •  孤独总比滥情好
    2021-01-01 17:37

    The attached test-jar can be used as a usual dependency in other project which supports reuse of code in the test area but you can't run tests out of the jar. If you really need the solution you have to write at least a single suite (etc.?) to start the tests from the jar.

提交回复
热议问题