Package org.repoweb.pom

POM (Project Object Model) definition.

See:
          Description

Interface Summary
ArtifactInfo Represent information of a maven's artifact.
 

Class Summary
Dependency Describe a project dependency.
Project Bean for a POM (Project Object Model).
Property Represent one property attached to one dependency.
StringUtil Set of String utilities methods.
XMLProject XML utilitary class for POM files.
 

Package org.repoweb.pom Description

POM (Project Object Model) definition. The pom package contains the bean definition and the XMLFactory for read/write POM.

NB :It will be extracted into a library for reuse purpose.


How to use

Use XMLProject to marshall/unmarshall xml file to/from project bean.

Code Sample : bean to XML

        Project prj = new Project();
        prj.setArtifactId("repoweb");
        ...
        prj.addDependency(new Dependency("junit", "junit", "3.8.1"));

        String result = XMLProject.toXml(prj);

Code Sample : XML to bean

        final FileReader reader = new FileReader("./project.xml");
        try {
            Project prj = XMLProject.toBean(new InputSource(reader));
            ...
        }
        finally {
            reader.close();
        }

How to extend

N/A.


Class summary

N/A



Copyright © 2003-2005 Repoweb. All Rights Reserved.