Artifactory – Day1 – Assignment – Sandeep

Lifecycles of Mavan
Maven has 3 lifecycles
1. Clean
2. Default (Build)
3. Site

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:
validate: validate the project is correct and all necessary information is available.
compile: compile the source code of the project.
test: test the compiled source code using a suitable unit testing framework. These tests should not require the code be packaged or deployed.
package: take the compiled code and package it in its distributable format, such as a JAR.
integration-test: process and deploy the package if necessary into an environment where integration tests can be run.
verify: run any checks to verify the package is valid and meets quality criteria
install: install the package into the local repository, for use as a dependency in other projects locally.
deploy: done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.

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