private boolean isDepOfIdlArtifact ( Artifact artifact , Map < String , Artifact > depsMap ) { List < String > depTrail = artifact . getDependencyTrail ( ) ; // depTrail can be null sometimes, which seems like a maven bug if ( depTrail != null ) { for ( String name : depTrail ) { Artifact dep = depsMap . get ( name ) ; if ( dep != null && isIdlCalssifier ( dep , classifier ) ) { return true ; } } } return false ; }
Checks if the artifact is dependency of an dependent idl artifact