Maven으로 Java Project를 빌드하는 기초적인 방법이예요!
빌드를 원하는 Java Project에 들어가 pom.xml을 생성해주세요.
이 Repository의 pom.xml 의 주석을 참조해 필요한 부분을 적용해줘요!Maven이 설치된 PC를 이용해 프로젝트 폴더에서 "mvn compile"를 입력해주세요!
프로젝트폴더/target/classes 에 클래스가 생성되었을거예요!
Jar 파일을 생성하려면 "mvn package" 를 입력해주세요!
컴파일과 테스트까지 완료된 후 프로젝트폴더/target에 jar 파일이 생성돼요!
binary-river / usemaven Goto Github PK
View Code? Open in Web Editor NEWMaven을 이용해 기초적인 빌드를 해봅시다.