I am new to java and working in a project managed by maven. This is a basic question so I'm sorry, but I like to become familiar with all the terminology. When I google the question it is answered by stating that maven creates a site. What kind of site? What specifically is meant by that?
CodePudding user response:
It simply means that Maven can generate a website for your project and release it to the public based on the pom.xml 's configuration. Internally, it uses Maven Site Plugin to do it.
A real life example is the JUnit4 web site. Given this pom.xml, it will then generate this web site.
CodePudding user response:
Maven site - is a command for generating documentation for your project.
The Maven site lifecycle has two phases bound to the goals of the site plugin by default: the site phase is bound to the site goal, and the site-deploy phase is bound to the deploy goal.
Here are the descriptions of those goals:
site – generate a site for a single project; the generated site only shows information about the artefacts specified in the POM
deploy – deploy the generated site to the URL specified in the distributionManagement element of the POM
In addition to the site and deploy, the site plugin has several other goals to customize the content of the generated files and to control the deployment process.
Useful links:
