Build Tools Flashcards

1
Q

Nexus

A

Maven Artifact repository administration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Maven vs Ant vs Gradle

A

Maven covers 70% of the buil tool marhet share for java applications; gradle 20% and ant 10%

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

POM

A

a description of the project(buil)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

MAVEN Build livecycles is made up of several phases

A

A lifecycles is a set of predefined steps(Phases)
Each pahse is bound to one or more plugin goal
The predefined lifecycles are:
Clean - cleans the project by removing the build artifacts from the working directory
- Phase: pre-clean, clean, post-clean
- Maven Clean Plugin–> Goal: clean –> deletes everything from the target directory
Default- does the build and deployment of the project
- Validate
- Compile–> maven-compiler-plugin:compile
- Test–> maven-surfire-plugin:tesy
- Package–> maven-jar-plugin:jar
- Verify (Runs Integration Tests )
- Install (to local Maven Repo)–> maven-intstall-plugin:install
- Deploy (to share Maven Repo) –> maven-deploy-plugin:deploy

Site-creates a website for your project
Phases: Pre-site; no plugin (just a hook?)
Site–> maven-site-plugin: site
Post-site
Site-Deploy –> maven-site-plugin:deploy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

MAVEN Build livecycles PHASES

A

is made up of several phases:
validate (checks the project structure)
compile
test
package
verify(does integration tests)
install(to local baven repo in home/.m2 folder)
deploy(to remote repo)–> this is usually handled by the CI server

**EACH PHASE WIll also run THE PREVIOUS PHASES!!!!!!
–> package generates the executable JAr(that also contains all the dependencies)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

spring-boot-maven-plugin

A

spring-boot-maven-plugin

<executions><execution><goals>build-info<goal>
sprint-boot:run
spring-boot:build-info--> generates MANIFEST/build-info.properties
</goal></goals></execution></executions>

How well did you know this?
1
Not at all
2
3
4
5
Perfectly