The Maven build configuration file

Let's see the following configuration in the pom.xml file:

<parent> 
   <groupId>org.springframework.boot</groupId> 
   <artifactId>spring-boot-starter-parent</artifactId> 
   <version>2.0.2.RELEASE</version> 
   <relativePath/> <!-- lookup parent from repository --> 
</parent> 
 
<properties> 
   <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 
   <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> 
   <java.version>1.8</java.version> 
   <spring-cloud.version>Finchley.M7</spring-cloud.version> 
</properties> 
 
<dependencies> 
   <dependency> 
         <groupId>org.springframework.cloud</groupId> 
         <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> 
   </dependency> 
 
   <dependency> 
         <groupId>org.springframework.boot</groupId> 
         <artifactId>spring-boot-starter-test</artifactId> 
         <scope>test</scope> 
   </dependency> 
</dependencies> 
 
<dependencyManagement> 
   <dependencies> 
         <dependency> 
               <groupId>org.springframework.cloud</groupId> 
               <artifactId>spring-cloud-dependencies</artifactId> 
               <version>${spring-cloud.version}</version> 
               <type>pom</type> 
               <scope>import</scope> 
         </dependency> 
   </dependencies> 
</dependencyManagement>

If the application is a Gradle project then build.gradle will be look like as following.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.186.143