Spring Initializr pom.xml: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
<project xmlns="http://maven.apache.org/POM/4.0.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
           http://maven.apache.org/xsd/maven-4.0.0.xsd">
           http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<modelVersion>4.0.0</modelVersion>
<groupId>sia</groupId>
<groupId>sia</groupId>
<artifactId>taco-cloud</artifactId>
<artifactId>taco-cloud</artifactId>
<version>0.0.1-SNAPSHOT</version>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>
<packaging>jar</packaging>
JAR packaging
 
  <name>taco-cloud</name>
<name>taco-cloud</name>
<description>Taco Cloud Example</description>
<description>Taco Cloud Example</description>
<parent>
<parent>
   <groupId>org.springframework.boot</groupId>
   <groupId>org.springframework.boot</groupId>
Line 25: Line 28:
   <relativePath/> <!-- lookup parent from repository -->
   <relativePath/> <!-- lookup parent from repository -->
</parent>
</parent>
<properties>
<properties>
   <project.build.sourceEncoding>
   <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      UTF-8</project.build.sourceEncoding>
   <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
   <project.reporting.outputEncoding>
      UTF-8</project.reporting.outputEncoding>
Spring Boot version
  Licensed to <ovidiu@novaordis.com>
Initializing a Spring application
13
   <java.version>1.8</java.version>
   <java.version>1.8</java.version>
</properties>
</properties>
<dependencies>
<dependencies>
   <dependency>
   <dependency>
     <groupId>org.springframework.boot</groupId>
     <groupId>org.springframework.boot</groupId>
Starter dependencies
     <artifactId>spring-boot-starter-thymeleaf</artifactId>
     <artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
  </dependency>
<dependency>
  <dependency>
     <groupId>org.springframework.boot</groupId>
     <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-web</artifactId>
     <artifactId>spring-boot-starter-web</artifactId>
Line 61: Line 59:
       <scope>test</scope>
       <scope>test</scope>
   </dependency>
   </dependency>
  <dependency>
  <dependency>
       <groupId>org.seleniumhq.selenium</groupId>
       <groupId>org.seleniumhq.selenium</groupId>
       <artifactId>htmlunit-driver</artifactId>
       <artifactId>htmlunit-driver</artifactId>
       <scope>test</scope>
       <scope>test</scope>
    </dependency>
  </dependency>
</dependencies>
</dependencies>
<build>
<build>
   <plugins>
   <plugins>
Spring Boot plugin
       <plugin>
       <plugin>
         <groupId>org.springframework.boot</groupId>
         <groupId>org.springframework.boot</groupId>

Revision as of 05:34, 8 October 2018

Internal

Example

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
          http://maven.apache.org/xsd/maven-4.0.0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>sia</groupId>
<artifactId>taco-cloud</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>jar</packaging>

<name>taco-cloud</name>
<description>Taco Cloud Example</description>

<parent>
  <groupId>org.springframework.boot</groupId>
  <artifactId>spring-boot-starter-parent</artifactId>
  <version>2.0.4.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>
</properties>

<dependencies>
  <dependency>
    <groupId>org.springframework.boot</groupId>
     <artifactId>spring-boot-starter-thymeleaf</artifactId>
  </dependency>
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
  </dependency>
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-devtools</artifactId>
    <scope>runtime</scope>
  </dependency>
  <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-test</artifactId>
    <scope>test</scope>
  </dependency>
  <dependency>
    <groupId>org.seleniumhq.selenium</groupId>
    <artifactId>selenium-java</artifactId>
      <scope>test</scope>
  </dependency>
  <dependency>
      <groupId>org.seleniumhq.selenium</groupId>
      <artifactId>htmlunit-driver</artifactId>
      <scope>test</scope>
  </dependency>
</dependencies>
<build>
  <plugins>
       <plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
      </plugin>
    </plugins>
</build>
</project>