Last active
March 19, 2025 05:02
-
-
Save unclebean/f83e02f44e06a36fb56a025e9d6d1e66 to your computer and use it in GitHub Desktop.
maven_project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\\\<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>com.example</groupId> | |
<artifactId>my-maven-project</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>pom</packaging> | |
<modules> | |
<module>spring-boot-app</module> | |
</modules> | |
<properties> | |
<java.version>21</java.version> | |
<spring-boot.version>3.4.2</spring-boot.version> | |
</properties> | |
<build> | |
<plugins> | |
<!-- Configure Maven Compiler Plugin for Java 21 --> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>3.10.1</version> | |
<configuration> | |
<release>${java.version}</release> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> | |
<parent> | |
<groupId>com.example</groupId> | |
<artifactId>my-maven-project</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
</parent> | |
<artifactId>spring-boot-app</artifactId> | |
<packaging>jar</packaging> | |
<dependencies> | |
<!-- Spring Boot Starter provides auto-configuration support, logging, etc. --> | |
<dependency> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-starter</artifactId> | |
</dependency> | |
</dependencies> | |
<build> | |
<plugins> | |
<!-- Spring Boot Maven Plugin allows you to run your application with mvn spring-boot:run --> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> | |
<version>${spring-boot.version}</version> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment