pom-util

A library for reading Maven POM files.

License

License

GroupId

GroupId

com.samskivert
ArtifactId

ArtifactId

pom-util
Last Version

Last Version

1.8
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/
Source Code Management

Source Code Management

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

Download pom-util

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.0
org.scala-lang.modules : scala-xml_2.12 jar 1.0.6

test (1)

Group / Artifact Type Version
junit : junit jar 4.8.1

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
1.8
1.7.5
1.7.3
0.4
0.3
0.1