- Home
- Interview Questions
- DevOps
Groovy comes with integrated support for converting between Groovy objects and JSON.
The classes dedicated to JSON serialisation and parsing are found in
the groovy.json package.
JsonSlurper is a class that parses JSON text or reader content into Groovy data
structures (objects) such as maps, lists and primitive types
like Integer , Double , Boolean and String .
The class comes with a bunch of overloaded parse methods plus some special methods
such as parseText , parseFile and others
- One of the biggest benefit of Maven is that its design regards all projects as having a certain structure and a set of supported task work-flows.
- Maven has quick project setup, no complicated build.xml files, just a POM and go
- Alludevelopers in a project use the same jar dependencies due to centralized POM.
- In Maven getting a number of reports and metrics for a project "for free"
- It reduces the size of source distributions, because jars can be pulled from a central location
- Maven lets developers get your package dependencies easily
- With Maven there is no need to add jar files manually to the class path
Build lifecycle is a list of named phases that can be used to give order to goal execution. One of Maven's standard life cycles is the default lifecycle, which includes the following phases, in this order
- 1 validate
- 2 generate-sources
- 3 process-sources
- 4 generate-resources
- 5 process-resources
- 6 compile
- 7 process-test-sources
- 8 process-test-resources
- 9 test-compile
- 10 test
- 11 package
- 12 instal l
- 13 deploy
Maven's dependency-handling mechanism is organized around a coordinate system
identifying individual artifacts such as software libraries or modules.
For example if a project needs Hibernate library. It has to simply declare Hibernate's
project coordinates in its POM.
Maven will automatically download the dependency and the dependencies that Hibernate
itself needs and store them in the user's local repository.
Maven 2 Central Repository is used by default to search for libraries, but developers can
configure the custom repositories to be used (e.g., company-private repositories) within the
POM.
The Central Repository Search Engine, can be used to find out coordinates for different open-source libraries and frameworks.