在一个有继承关系的POM文件中,父项目中有如下定义:

<dependencyManagement>
<dependency>
    <groupId>com.typesafe.play</groupId>
    <artifactId>play-java_2.12</artifactId>
    <version>${play2.version}</version>
</dependency>
</dependencyManagement>

在项目中如果也需要这个jar包,也需要加入到依赖中,但是可以不用指定version 

<dependencies>
    <dependency>
            <groupId>com.typesafe.play</groupId>
            <artifactId>play-java_2.12</artifactId>
    </dependency>
</dependencies>

 


 
                    
            
                

相关文章:

  • 2022-01-16
  • 2022-12-23
  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
猜你喜欢
  • 2022-12-23
  • 2018-03-25
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2021-12-08
相关资源
相似解决方案