Please enable JavaScript.
Coggle requires JavaScript to display documents.
MAVEN (build lifecycle (test (Mvn D(variable name), test the compiled…
MAVEN
build lifecycle
test
Mvn D(variable name)
test the compiled code
package
taking compiled code and make it packafge
compile
running the source code if there is an error or not
target folder created
verify
validate
validation if all necessary information is available
install
deploy
Log4j
Log4j2 from apache fx:
record activity
used by any application
Devs look at the logs
understand where when how a bug happened
in java lost of lots of lgging tracking dependenc but log4j is famous one
purpose
show which step
help us debug issues
sometimes you can understand the heart of the problem
how a basic java proj is made?
create class sfiles
compile
add ibrary &dependency
test
create folders packages
deploy
why to use Mvn
use pom and not need to download jars
write dependency thats it
creating java-based project is easy easy very very
lifrcycle
clean
project cleaning
site
creation of site documentation
default
project deployment
what is POM.xml
a file where you can manage whole project
at the end of the project pom.xml should be done properly
min requirements for a pom.xml
groupID,
artifactID
, modelVersion,
version.
project root
artifactid project name
artifat is a file
deployed maven repository
dependenies
if project is now working update maven
mvnrepository.com
where jar files repositories are stored in computer
.m2 folder
can you exclude a dependency
YES
excludiosn
groupid
exclusions
artifact id
version
exclusion
exclusions
jar:jar ne yapar
just create a JAR from the target/classes directory
you can create POM.xml
groupid name of package
in pom.xml you can add dependencies and run tyour testcases
its a build tool
how to convert maven to eclipse
mvn eclipse : eclipse
ApacheANT MAVEN
TOOLBOX
FRAMEWORK
PROCEDURAL STEP STEP
YOU CAN DIRECLY RUN WITHOUT COMPILE
NO LIFECYCLE
HAS LIFECYCLE
NOT REUSABLE
PLUGINS ARE RESUSABE