Module MavenPom

Provides classes and predicates for working with Maven POM files and their content.

Import path

semmle.code.xml.MavenPom

Imports

XML

Provides classes and predicates for working with XML files and their content.

Classes

Artifact

An XML element named “artifactId”, as found in Maven POM XML files.

Dependencies

An XML element named “dependencies”, as found in Maven POM XML files.

Dependency

An XML element named “dependency”, as found in Maven POM XML files.

DependencyManagement

An XML element named dependencyManagement, as found in Maven POM XML files.

Group

An XML element named “groupId”, as found in Maven POM XML files.

MavenRepo

A folder that represents a maven local repository using the standard layout. Any folder called “repository” with a parent name “.m2” is considered to be a maven repository.

MavenRepoJar

A jar file inside a maven repository.

Named

An XML element named “name”, as found in Maven POM XML files.

Parent

An XML element named “parent”, as found in Maven POM XML files.

Pom

An XML element named “project”, with convenience access methods to retrieve child XML elements named “version”, “name” and “dependencies”, typically found at the top-level of Maven POM XML files.

PomDependency

A Maven dependency element that represents an actual dependency from a given pom project.

PomElement

An XML element that provides access to its value string in the context of Maven POM XML files.

PomProperties

An XML element name “properties”, as found in Maven POM XML files.

PomProperty

An XML element that is the child of a PomProperties element, as found in Maven POM XML files. Represents a single property.

ProtoPom

An XML element that provides convenience access methods to retrieve child XML elements named “groupId”, “artifactId” and “versionID”, typically contained in Maven POM XML files.

Scope

An XML element named “scope”, as found in Maven POM XML files.

Version

An XML element named “version”, as found in Maven POM XML files.