Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions pkg/apis/enricher/framework/java/jboss_eap_detector.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,24 @@ func (o JBossEAPDetector) GetApplicationFileInfos(componentPath string, ctx *con

// DoFrameworkDetection uses the groupId and artifactId to check for the framework name
func (o JBossEAPDetector) DoFrameworkDetection(language *model.Language, config string) {
if hasFwk, _ := hasFramework(config, "org.jboss.eap.plugins", "eap-maven-plugin"); hasFwk {
language.Frameworks = append(language.Frameworks, "JBoss EAP")
jbossEapClues := []struct {
GroupId string
ArtifactId string
}{
{"org.jboss.eap.plugins", "eap-maven-plugin"},
{"org.jboss.eap", "jboss-eap-bom"},
{"org.jboss.bom", "eap-runtime-artifacts"},
{"org.jboss.bom", "jboss-eap-parent"},
{"org.jboss.bom", "jboss-eap-jakartaee8"},
{"org.jboss.bom", "jboss-eap-javaee8"},
{"org.jboss.bom", "jboss-eap-javaee7"},
}

for _, clue := range jbossEapClues {
if hasFwk, _ := hasFramework(config, clue.GroupId, clue.ArtifactId); hasFwk {
language.Frameworks = append(language.Frameworks, "JBoss EAP")
break
}
}
}

Expand Down
Loading