-
JAVA 빌드와 배포에 대해서.. [1]<java, ant, maven, jenkins>개발/JAVA 2019. 1. 14. 10:13
빌드는 소프트웨어의 제품(산출물)을 만드는 데 필요한 모든 단계를 다루는 프로세스이다. 자바에서는 일반적으로 다음을 포함한다.
-
소스 생성 (가끔).
-
소스 컴파일
-
테스트 소스 컴파일
-
실행 테스트 ( 단위 테스트 , 실행 테스트 등)
-
패키징 ( jar, war, ejb-jar, ear 로)
-
동작 체크
-
리포트 생성
보다시피 컴파일은 빌드의 한부분이다.( 모범 사례는 Maven이나 Ant와 같은 도구로 모든 단계를 완전히 자동화하고 지속적으로 빌드를 실행하는 것이다)
The "Build" is a process that covers all the steps required to create a "deliverable" of your software.
In the Java world, this typically includes:
- Generating sources (sometimes).
- Compiling sources.
- Compiling test sources.
- Executing tests (unit tests, integration tests, etc).
- Packaging (into jar, war, ejb-jar, ear).
- Running health checks (static analyzers like Checkstyle, Findbugs, PMD, test coverage, etc).
- Generating reports
So as you can see, compiling is only a (small) part of the build (and the best practice is to fully automate all the steps with tools like Maven or Ant and to run the build continuously which is known as Continuous Integration).
Ant, Maven 메뉴얼
Ant : https://ant.apache.org/manual/index.html
Maven : https://maven.apache.org/guides/getting-started/index.html
반응형 -