why is “test-jar” dependency required for “mvn compile”

后端 未结 4 1453
名媛妹妹
名媛妹妹 2021-02-02 13:38

I\'m having trouble using test-jar dependencies in a multi-module project. For example, when I declare that the cleartk-syntax module depends on the

4条回答
  •  长情又很酷
    2021-02-02 14:29

    I am using maven2. I guess the answer is in the maven lifecycle management. The first step of a default lifecycle is validate, which does 'validate the project is correct and all necessary information is available.' (see http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html ).

    So maven just tries its best to get all the needed dependencies for the later execution.

提交回复
热议问题