protected void updatePlugin ( Plugin value , String xmlTag , Counter counter , Element element ) { Element root = element ; Counter innerCount = new Counter ( counter . getDepth ( ) + 1 ) ; findAndReplaceSimpleElement ( innerCount , root , "groupId" , value . getGroupId ( ) , "org.apache.maven.plugins" ) ; findAndReplaceSimpleElement ( innerCount , root , "artifactId" , value . getArtifactId ( ) , null ) ; findAndReplaceSimpleElement ( innerCount , root , "version" , value . getVersion ( ) , null ) ; findAndReplaceSimpleElement ( innerCount , root , "extensions" , ( value . isExtensions ( ) == false ) ? null : String . valueOf ( value . isExtensions ( ) ) , "false" ) ; iteratePluginExecution ( innerCount , root , value . getExecutions ( ) , "executions" , "execution" ) ; iterateDependency ( innerCount , root , value . getDependencies ( ) , "dependencies" , "dependency" ) ; findAndReplaceXpp3DOM ( innerCount , root , "goals" , ( Xpp3Dom ) value . getGoals ( ) ) ; findAndReplaceSimpleElement ( innerCount , root , "inherited" , value . getInherited ( ) , null ) ; findAndReplaceXpp3DOM ( innerCount , root , "configuration" , ( Xpp3Dom ) value . getConfiguration ( ) ) ; }
Method updatePlugin .