Package org.apache.ivy.plugins.parser.m2
Class PomModuleDescriptorWriter
java.lang.Object
org.apache.ivy.plugins.parser.m2.PomModuleDescriptorWriter
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Wraps anIvyVariableContainer
delegating most method calls to the wrapped instance, except for a set of variables which are only stored locally in the wrapper, and not propagated to the wrapped instance. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final PomWriterOptions.ConfigurationScopeMapping
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Artifact
findArtifact
(ModuleDescriptor md, String artifactName) Returns the first artifact with the correct name and without a classifier.private static DependencyDescriptor[]
getDependencies
(ModuleDescriptor md, PomWriterOptions options) private static void
indent
(PrintWriter out, int indent) private static void
printDependencies
(ModuleDescriptor md, PrintWriter out, PomWriterOptions options, int indent, boolean printDependencies) private static void
printDependency
(PrintWriter out, int indent, String groupId, String artifactId, String version, String type, String classifier, String scope, boolean isOptional, boolean isTransitive, ExcludeRule[] excludes) private static void
printExclusions
(ExcludeRule[] exclusions, PrintWriter out, int indent) private static void
setModuleVariables
(ModuleDescriptor md, IvyVariableContainer variables, PomWriterOptions options) static void
write
(ModuleDescriptor md, File output, PomWriterOptions options)
-
Field Details
-
SKIP_LINE
- See Also:
-
DEFAULT_MAPPING
-
-
Constructor Details
-
PomModuleDescriptorWriter
private PomModuleDescriptorWriter()
-
-
Method Details
-
write
public static void write(ModuleDescriptor md, File output, PomWriterOptions options) throws IOException - Throws:
IOException
-
setModuleVariables
private static void setModuleVariables(ModuleDescriptor md, IvyVariableContainer variables, PomWriterOptions options) -
findArtifact
Returns the first artifact with the correct name and without a classifier. -
indent
-
printDependencies
private static void printDependencies(ModuleDescriptor md, PrintWriter out, PomWriterOptions options, int indent, boolean printDependencies) -
printDependency
private static void printDependency(PrintWriter out, int indent, String groupId, String artifactId, String version, String type, String classifier, String scope, boolean isOptional, boolean isTransitive, ExcludeRule[] excludes) -
printExclusions
-
getDependencies
private static DependencyDescriptor[] getDependencies(ModuleDescriptor md, PomWriterOptions options)
-