@@ -612,7 +612,9 @@ public static boolean setPomEvidence(Dependency dependency, Model pom, List<Clas
612612
613613 //Description
614614 final String description = pom .getDescription ();
615- if (description != null && !description .isEmpty () && !description .startsWith ("POM was created by" )) {
615+ if (description != null && !description .isEmpty ()
616+ && !description .startsWith ("POM was created by" )
617+ && !description .startsWith ("Sonatype helps open source projects" )) {
616618 foundSomething = true ;
617619 final String trimmedDescription = addDescription (dependency , description , "pom" , "description" );
618620 addMatchingValues (classes , trimmedDescription , dependency , EvidenceType .VENDOR );
@@ -742,9 +744,11 @@ protected boolean parseManifest(Dependency dependency, List<ClassNameInformation
742744 dependency .addEvidence (EvidenceType .VENDOR , source , key , value , Confidence .MEDIUM );
743745 addMatchingValues (classInformation , value , dependency , EvidenceType .VENDOR );
744746 } else if (key .equalsIgnoreCase (BUNDLE_DESCRIPTION )) {
745- foundSomething = true ;
746- addDescription (dependency , value , "manifest" , key );
747- addMatchingValues (classInformation , value , dependency , EvidenceType .PRODUCT );
747+ if (!value .startsWith ("Sonatype helps open source projects" )) {
748+ foundSomething = true ;
749+ addDescription (dependency , value , "manifest" , key );
750+ addMatchingValues (classInformation , value , dependency , EvidenceType .PRODUCT );
751+ }
748752 } else if (key .equalsIgnoreCase (BUNDLE_NAME )) {
749753 foundSomething = true ;
750754 dependency .addEvidence (EvidenceType .PRODUCT , source , key , value , Confidence .MEDIUM );
@@ -804,7 +808,9 @@ protected boolean parseManifest(Dependency dependency, List<ClassNameInformation
804808 } else if (key .contains ("license" )) {
805809 addLicense (dependency , value );
806810 } else if (key .contains ("description" )) {
807- addDescription (dependency , value , "manifest" , key );
811+ if (!value .startsWith ("Sonatype helps open source projects" )) {
812+ addDescription (dependency , value , "manifest" , key );
813+ }
808814 } else {
809815 dependency .addEvidence (EvidenceType .PRODUCT , source , key , value , Confidence .LOW );
810816 dependency .addEvidence (EvidenceType .VENDOR , source , key , value , Confidence .LOW );
0 commit comments