|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES All Classes |
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. |
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.
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(); }
N/A.
N/A
|
|||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES All Classes |