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

后端 未结 8 2073
伪装坚强ぢ
伪装坚强ぢ 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:05

    The only thing that workd for me : switching to gradle :(

    I have

    Parent
      +---dep1
      +---war1 (using dep1)
    

    and I can just cd in war1 and use mvn tomcat7:run-war. I always have to install the whole project before, despite war1 references his parent and the parent references war1 and dep1 (as modules) so all dependencies should be known.

    I don't understand what the problem is.

提交回复
热议问题