내 연락처 정보
우편메소피아@프로톤메일.com
2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Maven 프로젝트에서는pom.xml
파일은 프로젝트의 종속성, 플러그인, 빌드 구성 등을 정의하는 프로젝트 개체 모델(POM)의 구성 파일입니다.다음은pom.xml
파일의 몇 가지 중요한 태그와 해당 기능은 다음과 같습니다.
<modelVersion>
:
4.0.0
。<modelVersion>4.0.0</modelVersion>
<groupId>
:
<groupId>com.example</groupId>
<artifactId>
:
<artifactId>my-project</artifactId>
<version>
:
<version>1.0.0</version>
<packaging>
:
jar
、war
、pom
기다리다.기본값은jar
。<packaging>jar</packaging>
<name>
:
<name>My Project</name>
<description>
:
<description>This is a sample project</description>
<url>
:
<url>http://www.example.com</url>
<dependencies>
:
<dependency>
라벨 패키지.<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.3.8</version>
</dependency>
</dependencies>
<dependencyManagement>
:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>5.3.8</version>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
:
<repositories>
<repository>
<id>central</id>
<url>https://repo.maven.apache.org/maven2</url>
</repository>
</repositories>
<build>
:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
<properties>
:
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<profiles>
:
<profiles>
<profile>
<id>dev</id>
<properties>
<env>development</env>
</properties>
</profile>
</profiles>
이 태그는 다음을 구성합니다. pom.xml
Maven 프로젝트를 구성하고 관리하기 위한 기본 프레임워크입니다. 각 태그는 특정 목적을 수행하며 개발자가 프로젝트의 다양한 측면을 정의하는 데 도움이 됩니다.