maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé BOUTEMY <herve.bout...@free.fr>
Subject Re: How to disable “Test Source Xref” report generation
Date Wed, 10 Apr 2013 00:16:35 GMT
yes, see "Selecting Reports from a Plugin: Configuring Report Sets" in [1] 

notice you're using the new configuration format (ie reportPlugins inside 
maven-site-plugin), which is not recommended at the moment [2]

Regards,

Hervé


[1] http://maven.apache.org/plugins/maven-site-plugin/examples/configuring-
reports.html

[2] http://maven.apache.org/plugins/maven-site-
plugin/maven-3.html#Configuration_formats

Le mardi 9 avril 2013 17:10:01 Aliaksei Lahachou a écrit :
> I think per default Maven simply executes all reports, in your case jxr and
> test-jxr. But you may configure specific reports:
> 
> <plugin>
>     <groupId>org.apache.maven.plugins</groupId>
>     <artifactId>maven-jxr-plugin</artifactId>
>     <version>${plugins.jxr.version}</version>
>     <reportSets>
>         <reportSet>
>             <reports>
>                 <report>jxr</report>
>             </reports>
>         </reportSet>
>     </reportSets>
> </plugin>
> 
> 
> Regards,
> htfv (Aliaksei Lahachou)
> 
> On Tue, Apr 2, 2013 at 2:44 PM, Aleksandra Nowak <lotqua@gmail.com> wrote:
> > Hi all!
> > I'm using Maven Site Plugin to generate my project page and the JXR Plugin
> > to publish the source code. But I don't want to publish sources of test
> > classes. Does anybody know if it is possible to disable "Test Source Xref"
> > report. I've only found this pagehttp://jira.codehaus.org/browse/JXR-47but
> > this parameter doesn't seem to work. My configuration in POM looks like
> > this:
> > 
> > <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-site-plugin</artifactId>
> > <version>3.2</version>
> > <configuration>
> > <reportPlugins>
> > 
> >     <plugin>
> >     
> >         <groupId>org.apache.maven.plugins</groupId>
> >         <artifactId>maven-jxr-plugin</artifactId>
> >         <version>2.3</version>
> >         <configuration>
> >         
> >             <suppressTestXref>true</suppressTestXref>
> >         
> >         </configuration>
> >     
> >     </plugin>
> > 
> > </reportPlugins>
> > </configuration>
> > </plugin>
> > 
> > Kind regards,
> > Alex

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


Mime
View raw message