Logo Search packages:      
Sourcecode: maven-repo-helper version File versions

org::debian::maven::repo::POMCleaner Class Reference

Inheritance diagram for org::debian::maven::repo::POMCleaner:

org::debian::maven::repo::POMTransformer org::debian::maven::repo::POMReader

List of all members.


Detailed Description

Cleans up a POM for inclusion in the /usr/share/maven-repo/ repository.

All POMs should contain only

Author:
Ludovic Claude <ludovicc@users.sourceforge.net>

Definition at line 20 of file POMCleaner.java.


Public Member Functions

void addDefaultRules ()
void addIgnoreRule (DependencyRule rule)
void addIgnoreRules (File file)
void addPublishedRule (DependencyRule rule)
void addPublishedRules (File file)
void addRule (DependencyRule rule)
void addRules (File file)
void cleanPom (File originalPom, File targetPom, File pomProperties, boolean noParent, boolean keepPomVersion, String setVersion, String debianPackage)
boolean isKeepAllElements ()
void keepPomVersions (File poms, final String debianPackage)
POMInfo readPom (Reader originalPom) throws XMLStreamException
POMInfo readPom (File originalPom) throws XMLStreamException, FileNotFoundException
void setKeepAllElements (boolean keepAllElements)
void setVerbose (boolean verbose)
POMInfo transformPom (File originalPom, File targetPom, boolean noParent, boolean keepPomVersion, String setVersion, String debianPackage) throws XMLStreamException, FileNotFoundException, IOException
void transformPom (File originalPom, File targetPom) throws XMLStreamException, FileNotFoundException, IOException
void transformPoms (File poms, final String debianPackage, final boolean keepPomVersion, final String setVersion)

Static Public Member Functions

static Map getPomOptions (File poms)
static void main (String[] args)

Protected Member Functions

boolean acceptDependency (Dependency dependency, POMInfo info)
void indent (XMLStreamWriter writer, int inLevel) throws XMLStreamException
boolean isInfoElement (String element)
boolean isReadIgnoredElement (String element)
boolean isWriteIgnoredElement (String element)

Protected Attributes

final XMLInputFactory factory = XMLInputFactory.newInstance()

Static Private Member Functions

static int inc (int i, String[] args)

Private Attributes

boolean keepAllElements = false

Static Private Attributes

static final Logger log = Logger.getLogger(POMCleaner.class.getName())
static final List WRITE_IGNORED_ELEMENTS

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index