How can I make the test jar include dependencies in Maven?

后端 未结 6 1786
广开言路
广开言路 2020-12-28 20:05

I have a project with src/main/java and src/test/java structure, and I managed to use maven-jar-plugin to build a jar of the test branch. However, I want to package the test

6条回答
  •  [愿得一人]
    2020-12-28 20:27

        
            me.wener.xxx
            xxx-core
            ${xxx.version}
            test-jar
            
        
    

    I use this to include the test jar.the important line is test-jar.I am not sure this is what you need.

    3 years ago, but may help others.At least, it helped me. :-)

提交回复
热议问题