Package org.eclipse.jetty.maven.plugin
Class WarPluginInfo
java.lang.Object
org.eclipse.jetty.maven.plugin.WarPluginInfo
WarPluginInfo
Information about the maven-war-plugin contained in the pom
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet value of dependentWarExcludes for maven-war-pluginGet value of dependentWarIncludes for maven-war-pluginGet config for any overlays that have been declared for the maven-war-plugin.org.apache.maven.project.MavenProject
org.apache.maven.artifact.Artifact
getWarArtifact
(String groupId, String artifactId, String classifier) Get an artifact of type war that matches the given coordinates.Set<org.apache.maven.artifact.Artifact>
Get all dependent artifacts that are wars.org.apache.maven.model.Plugin
Find the maven-war-plugin, if one is configuredboolean
Check if the given artifact matches the group and artifact coordinates.boolean
-
Constructor Details
-
WarPluginInfo
public WarPluginInfo(org.apache.maven.project.MavenProject project)
-
-
Method Details
-
getProject
public org.apache.maven.project.MavenProject getProject()- Returns:
- the project
-
getWarArtifacts
Get all dependent artifacts that are wars.- Returns:
- all artifacts of type "war" or "zip"
-
getWarArtifact
public org.apache.maven.artifact.Artifact getWarArtifact(String groupId, String artifactId, String classifier) Get an artifact of type war that matches the given coordinates.- Parameters:
groupId
- the groupId to matchartifactId
- the artifactId to matchclassifier
- the classified to match- Returns:
- the matching Artifact or null if no match
-
getWarPlugin
public org.apache.maven.model.Plugin getWarPlugin()Find the maven-war-plugin, if one is configured- Returns:
- the plugin
-
getDependentMavenWarIncludes
Get value of dependentWarIncludes for maven-war-plugin- Returns:
- the list of dependent war includes
-
getDependentMavenWarExcludes
Get value of dependentWarExcludes for maven-war-plugin- Returns:
- the list of dependent war excludes
-
getMavenWarOverlayConfigs
Get config for any overlays that have been declared for the maven-war-plugin.- Returns:
- the list of overlay configs
-
match
-
match
Check if the given artifact matches the group and artifact coordinates.- Parameters:
a
- the artifact to checkgid
- the group idaid
- the artifact id- Returns:
- true if matched false otherwise
-