protected void mergeReportPlugin_ArtifactId( ReportPlugin target, ReportPlugin source, boolean sourceDominant, Map<Object, Object> context ) { String src = source.getArtifactId(); if ( src != null ) { if ( sourceDominant || target.getArtifactId() == null ) { target.setArtifactId( src ); target.setLocation( "artifactId", source.getLocation( "artifactId" ) ); } } }
try artifact = artifactFactory.createPluginArtifact( p.getGroupId(), p.getArtifactId(), VersionRange.createFromVersionSpec( version ) ); "' for report '" + ArtifactUtils.versionlessKey( p.getGroupId(), p.getArtifactId() ) + "': " + e.getMessage(), e );
if ( pluginGroupId.equals( plugin.getGroupId() ) && pluginArtifactId.equals( plugin.getArtifactId() ) )
String pluginId = ArtifactUtils.versionlessKey( plugin.getGroupId(), plugin.getArtifactId() ); if ( dag.getVertex( pluginId ) != null && !pluginId.equals( id ) )
if ( pluginGroupId.equals( plugin.getGroupId() ) && pluginArtifactId.equals( plugin.getArtifactId() ) )
validateStringNotEmpty( "reporting.plugins.plugin.artifactId", result, p.getArtifactId() );
if ( reportPlugin.getArtifactId() != null ) serializer.startTag( NAMESPACE, "artifactId" ).text( reportPlugin.getArtifactId() ).endTag( NAMESPACE, "artifactId" );
private Xpp3Dom convert( ReportPlugin plugin ) { Xpp3Dom dom = new Xpp3Dom( "reportPlugin" ); addDom( dom, "groupId", plugin.getGroupId() ); addDom( dom, "artifactId", plugin.getArtifactId() ); addDom( dom, "version", plugin.getVersion() ); Xpp3Dom configuration = (Xpp3Dom) plugin.getConfiguration(); if ( configuration != null ) { configuration = new Xpp3Dom( configuration ); dom.addChild( configuration ); } if ( !plugin.getReportSets().isEmpty() ) { Xpp3Dom reportSets = new Xpp3Dom( "reportSets" ); for ( ReportSet reportSet : plugin.getReportSets() ) { Xpp3Dom rs = convert( reportSet ); reportSets.addChild( rs ); } dom.addChild( reportSets ); } return dom; }
pp.setArtifactId( report.getArtifactId() ); pp.setVersion( report.getVersion() );
public static ReportPlugin cloneReportPlugin( ReportPlugin src ) { if ( src == null ) { return null; } ReportPlugin result = new ReportPlugin(); result.setArtifactId( src.getArtifactId() ); result.setConfiguration( cloneConfiguration( src.getConfiguration() ) ); result.setGroupId( src.getGroupId() ); result.setInherited( src.getInherited() ); result.setReportSets( cloneList( src.getReportSets(), REPORT_SET_CLONER ) ); result.setVersion( src.getVersion() ); return result; }
Version.V20, p.getArtifactId(), p );
&& "maven-project-info-reports-plugin".equals( plugin.getArtifactId() ) )
if ( reportPlugin.getArtifactId() != null ) serializer.attribute( NAMESPACE, "artifactId", reportPlugin.getArtifactId() );
pluginProlog( rplugin.getGroupId(), rplugin.getArtifactId(), rplugin.getVersion() );
public VersionlessProjectKey( final ReportPlugin plugin ) { groupId = plugin.getGroupId(); artifactId = plugin.getArtifactId(); }
private static boolean isReportPluginJavaDocPlugin( String pluginArtifactId, ReportPlugin reportPlugin ) { return ( reportPlugin.getGroupId().equals( MAVEN_JAVADOC_PLUGIN_GROUP_ID ) ) && ( reportPlugin.getArtifactId().equals( pluginArtifactId ) ); }
private void fireAddReportEvent( ReportPlugin plugin ) { for ( Iterator i = listeners.iterator(); i.hasNext(); ) { ConverterListener listener = (ConverterListener) i.next(); listener.addReportEvent( plugin.getGroupId(), plugin.getArtifactId() ); } } }
private GAV( ReportPlugin reportPlugin, MavenProject project ) { groupId = reportPlugin.getGroupId(); artifactId = reportPlugin.getArtifactId(); version = resolveReportPluginVersion( reportPlugin, project ); }
public PluginWrapper( ReportPlugin plugin, String source ) { setGroupId( plugin.getGroupId() ); setArtifactId( plugin.getArtifactId() ); setVersion( plugin.getVersion() ); setSource( source ); }
private static Plugin cloneReportPluginToPlugin(ReportPlugin reportPlugin) { Plugin plugin = new Plugin(); plugin.setGroupId(reportPlugin.getGroupId()); plugin.setArtifactId(reportPlugin.getArtifactId()); plugin.setVersion(reportPlugin.getVersion()); plugin.setConfiguration(reportPlugin.getConfiguration()); return plugin; }