HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🌚
[New] 우기팀
/
득윤
득윤
/
🕜
Week4 Day1 - 해리 Build
🕜

Week4 Day1 - 해리 Build

 
What is Build
 
Maven
What is Archetype in maven
  • quick start archetype
 

Maven Coordinate

Maven Coordinate identify uniquely a project, a dependency, or a plugin defined in POM
Combination of
  • a group identifier
  • an artifact identifier
  • and the version
  • + ) packagin and the classifier
<groupId>org.prgms</groupId> <artifactId>harry-maven-study</artifactId> <version>1.0-SNAPSHOT</version>
maven coordinate example

Maven supports multi module project

  • 부모 POM 파일에는 modules 태그 추가
  • 자식 POM 파일에는 parent 태그 추가

Maven Lifecycle|

Maven Lifecycle
Maven Lifecycle
default lifecycle - https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
default lifecycle - https://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
 

Transitive Dependencies - 전이 의존성

Maven avoids the need to discover and specify the libraries that your own dependencies require by including transitive dependencies automatically.
 
Introduction to the Dependency Mechanism - Document Link
 
mvn dependency:tree
의존성 tree 형태로 출력
[INFO] org.prgms:harry-maven-study:jar:1.0-SNAPSHOT [INFO] \- junit:junit:jar:4.11:test [INFO] \- org.hamcrest:hamcrest-core:jar:1.3:test
실행 결과
 

dependency scope

Dependency scope is used to limit the transitivity of a dependency and to determine when a dependency is included in a classpath.
 
 
Gradle

Gradle

  • Gradle 은 또 다른 build tool
  • groovy, kotlin 기반 빌드 스크립트 작성 가능
 

Gradle Task

notion image
  • gradle task 는 plug in 을 통해 설정된다.