nebula.plugin.publishing.pom.PomParser.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nebula-oss-publishing-plugin Show documentation
Show all versions of nebula-oss-publishing-plugin Show documentation
Nebula Netflix OSS Publishing plugin
The newest version!
package nebula.plugin.publishing.pom
import org.apache.maven.model.Model
import org.apache.maven.model.io.xpp3.MavenXpp3Reader
import java.io.File
import java.io.FileReader
class PomParser {
companion object {
private val reader = MavenXpp3Reader()
@JvmStatic
fun parse(pomFile: File): Model {
return try {
reader.read(FileReader(pomFile))
} catch (e: Exception) {
throw MavenCentralPomVerificationException("Error while trying to read nebula publication Pom file", e)
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy