3

I am using the maven site plugin to generate a project site. This creates a default site and can be viewed under src/target/index.html. I need to add content to the index. How can this be done?

ON reading the maven documentation, I created an index.apt under the src/site folder. How do I get the content of this file to show up in the index.html page in the target folder?

user_mda
  • 18,148
  • 27
  • 82
  • 145

2 Answers2

2

I am using Maven 3.3.9
My solution was to add an index.html file under ${baseDir}/src/site/resources.
Then run:

mvn clean site

Your index.html file should replace the default one.

Ryan Pelletier
  • 616
  • 7
  • 20
1

You just have to launch mvn clean site.

Tony Chemit
  • 1,175
  • 4
  • 14
  • 30