pom-util

A library for reading Maven POM files.

License

License

GroupId

GroupId

com.samskivert
ArtifactId

ArtifactId

pom-util_2.10
Last Version

Last Version

0.6
Release Date

Release Date

Type

Type

jar
Description

Description

pom-util
A library for reading Maven POM files.
Project URL

Project URL

http://github.com/samskivert/pom-util
Project Organization

Project Organization

com.samskivert
Source Code Management

Source Code Management

http://github.com/samskivert/pom-util

Download pom-util_2.10

How to add to project

<!-- https://jarcasting.com/artifacts/com.samskivert/pom-util_2.10/ -->
<dependency>
    <groupId>com.samskivert</groupId>
    <artifactId>pom-util_2.10</artifactId>
    <version>0.6</version>
</dependency>
// https://jarcasting.com/artifacts/com.samskivert/pom-util_2.10/
implementation 'com.samskivert:pom-util_2.10:0.6'
// https://jarcasting.com/artifacts/com.samskivert/pom-util_2.10/
implementation ("com.samskivert:pom-util_2.10:0.6")
'com.samskivert:pom-util_2.10:jar:0.6'
<dependency org="com.samskivert" name="pom-util_2.10" rev="0.6">
  <artifact name="pom-util_2.10" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.samskivert', module='pom-util_2.10', version='0.6')
)
libraryDependencies += "com.samskivert" % "pom-util_2.10" % "0.6"
[com.samskivert/pom-util_2.10 "0.6"]

Dependencies

compile (1)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.10.3

test (2)

Group / Artifact Type Version
junit : junit jar 4.10
com.novocode : junit-interface jar 0.7

Project Modules

There are no modules declared in this project.

pom-util

This is a Scala library for extracting project metadata from Maven POM files. It does not aim to reproduce all of Maven's functionality, but rather to make it easy to extract basic metadata for a project for use by simple development tools.

Usage

The POM class exposes the metadata from a pom.xml file:

val pom = POM.fromFile(new File("pom.xml"))
// do what you will with pom.groupId, pom.artifactId, etc.

A POM's dependencies are modeled via the Dependency class, and one can locate said dependencies in the local Maven repository if desired:

val pom = POM.fromFile(new File("pom.xml"))
pom.depends map(_.localArtifact) foreach { f => println("File: " + f.getPath) }

License

pom-util is released under the New BSD License, which can be found in the LICENSE file.

Versions

Version
0.6
0.5