Hello Jörg,

eh, yes, it's exactly as you say. I created the following structure:

target/generated-site/apt/example2.apt
target/generated-site/resources/example.html

And as expected I get the following files:

target/site/example.html
target/site/example2.html

And somehow it makes sense that the same structure is expected in the 
target/generated-site folder as in the src/site folder.
Makes me wonder why I didn't try that before. :-(

Anyway, thanks a lot. :-)

Regards
Gerrit


-----Ursprüngliche Nachricht-----
Von: Jörg Schaible [mailto:joerg.schai...@bpm-inspire.com] 
Gesendet: Montag, 7. November 2016 14:35
An: users@maven.apache.org
Betreff: Re: Maven-Site-Plugin: Generated content?

Hi Gerrit,

Hohl, Gerrit wrote:

> Hello everyone, :-)
> 
>  
> 
> I'm trying to create some content for the Maven site during the Maven 
> build process.
> 
>  
> 
> I recognized that the maven-site-plugin has a <generatedSiteDirectory> 
> configuration property which allows defining a directory which holds 
> such generated content.
> 
> Normally it's the target/generated-site folder.
> 
> So I placed an APT as well as a HTML file there.
> 
> But nothing happened.
> 
> So I defined it in the configuration of the maven-site-plugin in the 
> pluginManagement section:
> 
> <generatedSiteDirectory>${project.build.directory}/generated-site</gen
> er
> atedSiteDirectory>
> 
> But also that didn't change anything.
> 
> After the Maven build there is still no file in the target/site folder.
> 
> Neither the rendered APT file nor the HTML file.
> 
>  
> 
> Where is my mistake? :-(

The different formats are nomrally extected in different directories (according 
to 
http://maven.apache.org/plugins/maven-site-plugin/examples/creating-content.html).
 Have you tried to create the same structure for the generated-site directory?

Cheers,
Jörg


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to