Camunda Spin is a library for simple XML and JSON processing on the JVM (JavaVirtual Machine), targeting Java and JVM-based scripting languages such asGroovy, JRuby, Jython, JavaScript and Java Expression Language. It provides acomprehensible fluent API for working with different data formats throughlightweight wrapper objects.

Spin can be used in any Java-based application by adding the following mavendependency to your pom.xml file:

Camunda BOM

If you use Spin in combination with other Camunda BPM projects (such as the Camunda process engine), please import the Camunda BOM to ensure that you use the Camunda Spin version matching your process engine version.

  1. <dependencyManagement>
  2. <dependencies>
  3. <dependency>
  4. <groupId>org.camunda.spin</groupId>
  5. <artifactId>camunda-spin-bom</artifactId>
  6. <scope>import</scope>
  7. <type>pom</type>
  8. <version>${version.spin}</version>
  9. </dependency>
  10. </dependencies>
  11. </dependencyManagement>
  1. <dependencies>
  2. <dependency>
  3. <groupId>org.camunda.spin</groupId>
  4. <artifactId>camunda-spin-core</artifactId>
  5. </dependency>
  6. <dependency>
  7. <groupId>org.camunda.spin</groupId>
  8. <artifactId>camunda-spin-dataformat-all</artifactId>
  9. </dependency>
  10. </dependencies>

Camunda Spin is published to maven central.

原文: https://docs.camunda.org/manual/7.9/reference/spin/