You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Oleg Estekhin <ol...@gmail.com> on 2010/12/16 00:10:58 UTC

maven site 3.0 plugin - is it possible to add reporting plugin in profile?

Hi

With site 2.0 plugin it was possible to add reporting plugin in a profile 
without redefining all other reporting plugins declared in the main 
reporting section. One example of the usecase for this would be when some 
heavy tests with maven invoker plugin were configured only in the profile so 
invoker reporting would configured only in the profile too.

It is possible to do the same with the site 3.0?

The example profile, when using site 2.0, was looking like this:

<profile>
            <id>integration-tests</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-invoker-plugin</artifactId>
                        <version>1.5</version>
                        <configuration>
                            <!-- my config -->
                        </configuration>
                        <executions>
                            <execution>
                                <goals>
                                    <goal>install</goal>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
            <reporting>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-invoker-plugin</artifactId>
                        <version>1.5</version>
                    </plugin>
                </plugins>
            </reporting>
        </profile>


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