Maven doesn't recognize sibling modules when running mvn dependency:tree

后端 未结 8 2068
伪装坚强ぢ
伪装坚强ぢ 2020-12-02 04:31

I\'m trying to set up a multi-module Maven project, and the inter-module dependencies are apparently not being set up correctly.

I have:



        
8条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 05:21

    As discussed in this maven mailing list thread, the dependency:tree goal by itself will look things up in the repository rather than the reactor. You can work around this by mvn installing, as previously suggested, or doing something less onerous that invokes the reactor, such as

    mvn compile dependency:tree
    

    Works for me.

提交回复
热议问题