sdk install maven
apache-maven-*.*.*-bin.zip
๋ค์ด๋ก๋brew install maven
mvn -v
์คํ<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.okdevtv.java</groupId>
<artifactId>okdevtv</artifactId>
<packaging>jar</packaging>
<version>1.0-SNAPSHOT</version>
<name>okdevtv</name>
<url>http://maven.apache.org</url>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.13.2</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
mvn archetype:generate -DgroupId=com.okdevtv.java -DartifactId=okdevtv -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
groupId : com.okdevtv.java, ํ๋ก์ ํธ ํจํค์ง
artifactId : okdevtv, ํ๋ก์ ํธ ์ด๋ฆ
archetypeArtifactId : maven-archetype-quickstart, ํ ํ๋ฆฟ ์ด๋ฆ
mvn package
mvn ์คํ์ ํ์ํ jarํ์ผ ๋ค์ด๋ก๋
ํ๋ก์ ํธ ๋น๋(์ปดํ์ผ, ํ ์คํธ, ํจํค์ง)์ ํ์ํ jarํ์ผ ๋ค์ด๋ก๋
๋ ๋ฒ์งธ ์คํ์ ๋ก์ปฌ์ ์ ์ฅ๋ jar ์ฌ์ฉ์ผ๋ก ๋นจ๋ผ์ง
mvn tomcat:run
mvn spring-boot:run
~/.m2/repository
๊ธฐ๋ณธ ์์น <build>
<finalName>WhatEverYouLikey</finalName>
</build>
gradle init