You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jochen Wiedmann <jo...@gmail.com> on 2011/03/04 13:53:48 UTC

How to include site into war file?

Hi,

I've got a project, which is distributed as a web application. I'd
like to include the site into the webapp. As you possibly know, the
assembly plugin does support this, so it shouldn't be all too
impossible.

I tried the following snippet in my POM. Unfortunately, this seems to
trigger an endless loop between the site and the javadoc plugin.

Any other ideas how I might achieve my goal?

Thanks,

Jochen



      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-site-plugin</artifactId>
            <executions>
              <execution>
                <phase>generate-resources</phase>
                <goals>
                  <goal>site</goal>
                </goals>
                <configuration>
                  <outputDirectory>${webappDirectory}/docs</outputDirectory>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>


-- 
I Am What I Am And That's All What I Yam (Popeye)

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


Re: How to include site into war file?

Posted by Wendy Smoak <ws...@gmail.com>.
On Wed, Mar 9, 2011 at 9:22 AM, Jochen Wiedmann
<jo...@gmail.com> wrote:
> No chance?

I would probably package the site up as a zip and put it in the
repository, then dependency:unpack it where you want it in the webapp.
 That assumes the documentation is in a separate module.

Otherwise, I'd probably just expect to run "mvn site install" in order
to build it (not trying to bind an execution of the site plugin in the
project pom, as you've noted it has side effects.)

If that doesn't help, try posting a simple example project that
demonstrates the problem so people can play with it.

-- 
Wendy

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


Re: How to include site into war file?

Posted by Jochen Wiedmann <jo...@gmail.com>.
No chance?


On Fri, Mar 4, 2011 at 1:53 PM, Jochen Wiedmann
<jo...@gmail.com> wrote:
> Hi,
>
> I've got a project, which is distributed as a web application. I'd
> like to include the site into the webapp. As you possibly know, the
> assembly plugin does support this, so it shouldn't be all too
> impossible.
>
> I tried the following snippet in my POM. Unfortunately, this seems to
> trigger an endless loop between the site and the javadoc plugin.
>
> Any other ideas how I might achieve my goal?
>
> Thanks,
>
> Jochen
>
>
>
>      <build>
>        <plugins>
>          <plugin>
>            <groupId>org.apache.maven.plugins</groupId>
>            <artifactId>maven-site-plugin</artifactId>
>            <executions>
>              <execution>
>                <phase>generate-resources</phase>
>                <goals>
>                  <goal>site</goal>
>                </goals>
>                <configuration>
>                  <outputDirectory>${webappDirectory}/docs</outputDirectory>
>                </configuration>
>              </execution>
>            </executions>
>          </plugin>
>        </plugins>
>      </build>
>
>
> --
> I Am What I Am And That's All What I Yam (Popeye)
>



-- 
I Am What I Am And That's All What I Yam (Popeye)

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