scalaxb Maven Plugin

Maven plugin for scalaxb, an XML data-binding tool for Scala.

License

License

Categories

Categories

Scala Languages Maven Build Tools
GroupId

GroupId

io.github.bbarker
ArtifactId

ArtifactId

scalaxb-maven-plugin
Last Version

Last Version

1.5.3-bb-pre-1
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

scalaxb Maven Plugin
Maven plugin for scalaxb, an XML data-binding tool for Scala.
Project URL

Project URL

http://scalaxb.org/mvn-scalaxb
Source Code Management

Source Code Management

https://github.com/eed3si9n/scalaxb

Download scalaxb-maven-plugin

How to add to project

<plugin>
    <groupId>io.github.bbarker</groupId>
    <artifactId>scalaxb-maven-plugin</artifactId>
    <version>1.5.3-bb-pre-1</version>
</plugin>

Dependencies

compile (6)

Group / Artifact Type Version
io.github.bbarker : scalaxb_2.11 jar 1.5.3-bb-pre-1
org.apache.maven.plugin-tools : maven-plugin-annotations Optional jar 3.3
org.apache.maven : maven-plugin-api jar 2.0.9
org.sonatype.plexus : plexus-build-api jar 0.0.7
org.apache.maven : maven-project jar 2.0.9
org.codehaus.plexus : plexus-utils jar 3.0.17

test (1)

Group / Artifact Type Version
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

scalaxb

Maven Central

Join the chat at https://gitter.im/eed3si9n/scalaxb

scalaxb is an XML data-binding tool for Scala that supports W3C XML Schema (xsd) and Web Services Description Language (wsdl) as the input file.

From schema documents scalaxb will generate Scala source files containing case classes to represent the data and typeclass instances to turn XML documents into an object, and the object back to XML.

Modules

There are currently four ways of running scalaxb:

  • command line app scalaxb
  • sbt plugin sbt-scalaxb
  • maven plugin mvn-scalaxb
  • web API scalaxb-heroku hosted on heroku

sbt-scalaxb

To call scalaxb from sbt 1.x and sbt 0.13.x, put this in your project/scalaxb.sbt:

resolvers += Resolver.sonatypeRepo("public")
addSbtPlugin("org.scalaxb" % "sbt-scalaxb" % "X.X.X")

and this in build.sbt:

lazy val dispatchVersion = "1.1.3"
lazy val dispatch = "org.dispatchhttp" %% "dispatch-core" % dispatchVersion
lazy val jaxbApi = "javax.xml.bind" % "jaxb-api" % "2.3.0"
lazy val scalaXml = "org.scala-lang.modules" %% "scala-xml" % "1.3.0"
lazy val scalaParser = "org.scala-lang.modules" %% "scala-parser-combinators" % "1.1.2"

lazy val root = (project in file(".")).
  enablePlugins(ScalaxbPlugin).
  settings(
    name := "foo-project",
    scalaxbPackageName in (Compile, scalaxb) := "generated",
    // scalaxbAutoPackages in (Compile, scalaxb) := true,
    scalaxbDispatchVersion in (Compile, scalaxb) := dispatchVersion,
    libraryDependencies ++= Seq(dispatch, jaxbApi, scalaParser, scalaXml)
  )

command line app scalaxb

See INSTALL.md.

mvn-scalaxb

See mvn-scalaxb.

Documents

Further info is available at scalaxb.org.

Bug Reporting

If you're having problem with scalaxb, please take a moment and read issue reporting guideline.

Licensing

It's the MIT License. See the file called LICENSE.

Contacts

Versions

Version
1.5.3-bb-pre-1