maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy <ol...@apache.org>
Subject Re: Override reportSets via combine.self="override"?
Date Thu, 14 Nov 2013 23:08:35 GMT
On 7 November 2013 08:53, Mirko Friedenhagen <mfriedenhagen@gmail.com> wrote:
> Hello,
>
> say I have a parent pom, which defines:
>
>           <plugin>
>             <groupId>org.apache.maven.plugins</groupId>
>             <artifactId>maven-surefire-report-plugin</artifactId>
>             <version>2.16</version>
>             <reportSets>
>               <reportSet>
>                 <reports>
>                   <report>report</report>
>                 </reports>
>               </reportSet>
>             </reportSets>
>           </plugin>
>
> I now do not want to override these with:
>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-surefire-report-plugin</artifactId>
>                 <version>2.16</version>
>                 <reportSets>
>                     <reportSet>
>                         <reports combine.self="override">
>                             <report>report-only</report>
>                             <report>failsafe-report-only</report>
>                         </reports>
>                     </reportSet>
>                 </reportSets>
>             </plugin>
>
> so tests are not executed again during site generation.
>
> This does not work, the effective pom still shows:
>
>      <plugin>
>         <artifactId>maven-surefire-report-plugin</artifactId>
>         <version>2.16</version>
>         <reportSets>
>           <reportSet>
>             <reports>
>               <report>report-only</report>
>               <report>failsafe-report-only</report>
>               <report>report</report>
>             </reports>
>           </reportSet>
>         </reportSets>
>       </plugin>
>
> So combine.self="override" seems not to work here. Is this intended?

I believe this works only for <configuration>
This could be done in core (see class DefaultReportingConverter )
or in the maven-reporting-exec shared library.

>
> Regards Mirko
> --
> http://illegalstateexception.blogspot.com/
> https://github.com/mfriedenhagen/
> https://bitbucket.org/mfriedenhagen/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>



-- 
Olivier Lamy
Ecetera: http://ecetera.com.au
http://twitter.com/olamy | http://linkedin.com/in/olamy

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


Mime
View raw message