You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Tobias Gierke <to...@code-sourcery.de> on 2009/03/04 09:39:00 UTC
Including the project's pom.xml in generated site ?
Hi,
Is there currently a (simple) way to deploy a project's pom.xml together
with the generated site upon release ?
The reason I'm asking is this:
All my sites get deployed into different subdirectories of the same base
directory on a webserver. I want to be able to dynamically discover the
project's documentation and render a top-level 'entry' HTML page that
provides links to each project's individual index.html along with some
details from the release POM (version,groupId,description etc.). These
details obviously can't be easily parsed from the generated site HTML.
I've already written a small patch for the site plugin (that adds a
<addPom/> configuration option) but I'd really like to have this feature
without having to patch the plugin every time a new release comes up.
Thanks in advance,
Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Including the project's pom.xml in generated site ?
Posted by "Lewis, Eric" <Er...@ipi.ch>.
Hi
I may be a bit late ;-) but since I had the same problem, I sending the
solution. Hope it helps you.
In your <build>, add the following:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<executions>
<execution>
<id>add-pom-to-site</id>
<phase>site</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${project.reporting.outputDirectory}</outputDirectory>
<resources>
<resource>
<directory>./</directory>
<includes>
<include>pom.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
Best regards,
Eric
Tobias Gierke-2 wrote:
>
> Hi,
>
> Is there currently a (simple) way to deploy a project's pom.xml together
> with the generated site upon release ?
>
> The reason I'm asking is this:
>
> All my sites get deployed into different subdirectories of the same base
> directory on a webserver. I want to be able to dynamically discover the
> project's documentation and render a top-level 'entry' HTML page that
> provides links to each project's individual index.html along with some
> details from the release POM (version,groupId,description etc.). These
> details obviously can't be easily parsed from the generated site HTML.
> I've already written a small patch for the site plugin (that adds a
> <addPom/> configuration option) but I'd really like to have this feature
> without having to patch the plugin every time a new release comes up.
>
> Thanks in advance,
>
> Tobias
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Including-the-project%27s-pom.xml-in-generated-site---tp22325784p25748592.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org