Forked repo from https://github.com/Dr4K4n/pcml2java-maven-plugin.
Generates Java classes from IBM® .PCML-Files (Program Call Markup Language).
Supports both primitive data and struct input/ouput.
Separates input from output beans.
Supports superclass inheritance definition for both bean types.
Plugin is available in jitpack repository.
Latest build
Travis status
From version 2.1.0 supports struct arrays.
From version 2.3.0 supports same struct names for different programs.
From version 2.4.0 supports
- arrays size validation through java validation api annotation.
- primitive arrays size single elements validation through pcml2java-validator annotation.
- Include following plugin-block in the pom.xml of your project.
- Define a sourceFolder where your PCML-Files are located and a packageName for the generated classes.
- If your pcml contains array of strings, add pcml2java-validator dependency
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
...
<dependency>
<groupId>com.github.fabtesta</groupId>
<artifactId>pcml2java-validator</artifactId>
<version>1.1.0</version>
</dependency>
...
<build>
<plugins>
<plugin>
<groupId>com.github.fabtesta</groupId>
<artifactId>pcml2java-maven-plugin</artifactId>
<version>2.4.0</version>
<configuration>
<sourceFolder>src/main/resources</sourceFolder>
<packageName>com.github.fabtesta.test</packageName>
<generateConstants>true</generateConstants>
<beanValidation>true</beanValidation>
<requestSuperClass>com.github.fabtesta.test.ServiceRequest</requestSuperClass>
<responseSuperClass>com.github.fabtesta.test.ServiceResponse</responseSuperClass>
</configuration>
<executions>
<execution>
<goals>
<goal>gensrc</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>