Artifactory – Day1 – Assignment – Sandeep
|Lifecycles of Mavan|
Maven has 3 lifecycles
2. Default (Build)
Goal is the single unit of task which does some real work. For example the compile goal (runs as mvn compiler:compile) which compiles the Java source. All goals are provided by plugins, either by default plugins or by user defined plugins (configured in pom file).
Phase is a group of ordered goals or in other words: zero or more plugin goals are bound to a phase (either by default or by user). For example the compile phase (runs as “mvn compile”) consists only compiler:compile goal (plugin). Running a phase basically runs the plugins bound with it.
Build Lifecycle is a group of ordered phases. There are three built-in lifecycle: default, clean and site.
The build lifecycle is composed of the following phases:
What are the Top maven goals we have?
Phase ———————— Goal
process-resources ——— resources:resources
compile ———————- compiler:compile
process-test-resources — resources:testResources
test-compile —————- compiler:testCompile
test ————————– surefire:test
package ——————— jar:jar
install ———————— install:install
deploy ———————– deploy:deploy
What Ports Should I Expose when Setting up JFrog Applications?
Artifactory (Version 7.0 and above)
External Network Port
8081 & 8082
Internal Network Ports (default)
8081 for Artifactory
8040 and 8045 for Access
8048 and 9092 for the Replicator
8070 for Web
8086 for Metadata
8082, 8046, 8047, 8049, and 8091 for the Router
8061, and 8062 for Events