All Smooks components are available from the Maven Central Repository. If your building Smooks from source using Maven, please use:
-
Java 8 or higher
Artifact Coordinates
The artifact coordinates for each of the Smooks artifact is as follows:
Artifact Name | Artifact ID | Group ID | Comment |
---|---|---|---|
Core |
|
|
All cartridges depend on |
Management |
|
|
|
Commons |
|
|
All Smooks artifacts depend on |
Calculation Cartridge |
|
|
|
CSV Cartridge |
|
|
|
Fixed-Length Cartridge |
|
|
|
EDI Cartridge |
|
|
|
EDIFACT Cartridge |
|
|
|
JavaBean Cartridge |
|
|
|
JSON Cartridge |
|
|
|
Routing Cartridge |
|
|
|
Templating Cartridge |
|
|
|
Persistence Cartridge |
|
|
|
Validation Cartridge |
|
|
|
DFDL Cartridge |
|
|
Here is an example declaring a dependency on a Smooks artifact:
<dependency>
<groupId>org.smooks.cartridges</groupId>
<artifactId>smooks-javabean-cartridge</artifactId>
<version>2.0.1</version>
</dependency>
See the POMs in the examples for references of Maven-managed applications that depend on different Smooks cartridges.
Bill of Materials (BOM)
In order to guarantee compatibility between Smooks artifacts, it is recommended to import the Smooks BOM from your POM before declaring dependencies on Smooks:
...
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.smooks</groupId>
<artifactId>smooks-bom</artifactId>
<version>2.1.0</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
...
The BOM will manage the dependency versions therefore omit the version element when declaring Smooks dependencies:
...
<dependencies>
<dependency>
<groupId>org.smooks</groupId>
<artifactId>smooks-core</artifactId>
</dependency>
...
</dependencies>
...
Edge
Snapshots are strongly discouraged from being deployed to production environments. |
The latest Smooks snapshots are available from Sonatype OSSRH in order to test the latest features and bug fixes. You need to declare the Maven repository in your project’s POM:
<repositories>
....
<repository>
<id>oss.sonatype.org-snapshot</id>
<url>http://oss.sonatype.org/content/repositories/snapshots</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>