Question

if i define this dependency at parent's pom:

<dependencyManagement> 
    <dependencies>
      <dependency>
         <groupId>org.springframework<groupId>
         <artifactId>spring-core<artifactId>
         <version>3.1.0.RELEASE</version>
      </dependency>

and in one of the childss:

<project>
  <dependencies>
    <dependency> // note: no version declared
      <groupId>org.springframework<groupId>
      <artifactId>spring-core<artifactId>
    </dependency>

so, the scope? is always compile, or can i specify?

Was it helpful?

Solution

compile is the default scope for a dependency (pom reference). You can specify scope also and it will be inherited

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top