Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

234
Views
What is a "site" that is created when running the maven site command?

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?

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

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.

over 4 years ago · Santiago Trujillo Report

0

Maven's site - is a command for generating documentation for your project. Later after the build is finished you could open it in the browser and navigate to different parts of it. All sources are generated into target folder.

For running this command you have to add the site plugin to your pom file first. Otherwise, the build failed.

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:

  • Apache Maven Site Plugin
  • Creating a site
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!