dev-notes/docs/languages/java/spring/pom.xml.md

46 lines
1.3 KiB
Markdown
Raw Normal View History

2021-01-31 11:05:37 +01:00
# pom.xml
File specifing project dependencies.
```xml
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>major.minor.patch</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>major.minor.patch.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>base_package</groupId>
<artifactId>Project_Name</artifactId>
<version>major.minor.patch</version>
<name>Project_Name</name>
<description>...</description>
<properties>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
```