public void updateLegacyDocument( ArtifactInfo ai, Document doc ) { updateDocument( ai, doc ); // legacy! if ( ai.getPrefix() != null ) { doc.add( new Field( ArtifactInfo.PLUGIN_PREFIX, ai.getPrefix(), Field.Store.YES, Field.Index.NOT_ANALYZED ) ); } if ( ai.getGoals() != null ) { doc.add( new Field( ArtifactInfo.PLUGIN_GOALS, ArtifactInfo.lst2str( ai.getGoals() ), Field.Store.YES, Field.Index.NO ) ); } doc.removeField( ArtifactInfo.GROUP_ID ); doc.add( new Field( ArtifactInfo.GROUP_ID, ai.getGroupId(), Field.Store.NO, Field.Index.NOT_ANALYZED ) ); }
public void updateLegacyDocument( ArtifactInfo ai, Document doc ) { updateDocument( ai, doc ); // legacy! if ( ai.getPrefix() != null ) { doc.add( new Field( ArtifactInfo.PLUGIN_PREFIX, ai.getPrefix(), Field.Store.YES, Field.Index.NOT_ANALYZED ) ); } if ( ai.getGoals() != null ) { doc.add( new Field( ArtifactInfo.PLUGIN_GOALS, ArtifactInfo.lst2str( ai.getGoals() ), Field.Store.YES, Field.Index.NO ) ); } doc.removeField( ArtifactInfo.GROUP_ID ); doc.add( new Field( ArtifactInfo.GROUP_ID, ai.getGroupId(), Field.Store.NO, Field.Index.NOT_ANALYZED ) ); }
public void updateLegacyDocument( ArtifactInfo ai, Document doc ) { updateDocument( ai, doc ); // legacy! if ( ai.getPrefix() != null ) { doc.add( new Field( ArtifactInfo.PLUGIN_PREFIX, ai.getPrefix(), Field.Store.YES, Field.Index.NOT_ANALYZED ) ); } if ( ai.getGoals() != null ) { doc.add( new Field( ArtifactInfo.PLUGIN_GOALS, ArtifactInfo.lst2str( ai.getGoals() ), Field.Store.YES, Field.Index.NO ) ); } doc.removeField( ArtifactInfo.GROUP_ID ); doc.add( new Field( ArtifactInfo.GROUP_ID, ai.getGroupId(), Field.Store.NO, Field.Index.NOT_ANALYZED ) ); }
public void artifactDiscovered( ArtifactContext ac ) { count++; long t = System.currentTimeMillis(); ArtifactInfo ai = ac.getArtifactInfo(); if ( !quiet && debug && "maven-plugin".equals( ai.getPackaging() ) ) { System.err.printf( "Plugin: %s:%s:%s - %s %s\n", // ai.getGroupId(), ai.getArtifactId(), ai.getVersion(), ai.getPrefix(), "" + ai.getGoals() ); } if ( !quiet && ( debug || ( t - ts ) > 2000L ) ) { System.err.printf( " %6d %s\n", count, formatFile( ac.getPom() ) ); ts = t; } }
ai.getGoals().add( mojoConfig.getChild( "goal" ).getValue() );
ai.getGoals().add( mojoConfig.getChild( "goal" ).getValue() );
ai.getGoals().add( mojoConfig.getChild( "goal" ).getValue() );
hit.setBundleName( artifactInfo.getBundleName() ); hit.setContext( artifactInfo.getContext() ); hit.setGoals( artifactInfo.getGoals() ); hit.setPrefix( artifactInfo.getPrefix() ); hit.setPackaging( artifactInfo.getPackaging() );