Skip to content

BlackBeltTechnology/judo-psm-generator-jaxrs

Repository files navigation

judo-psm-generator-jaxrs

PSM based JUDO Jakarta RESTful Web Services Java generator

It can be used as:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <groupId>hu.blackbelt.judo.archetype</groupId>
    <artifactId>judo-psm-generator-jaxrs-example</artifactId>
    <version>${revision}</version>
    <packaging>pom</packaging>

    <name>JUDO PSM Generator Jakarta RESTful Web Services test</name>
    <description>JUDO PSM Jakarta RESTful Web Services Generator Example.</description>

    <properties>
        <revision>1.0.0-SNAPSHOT</revision>
        <maven>3.9.4</maven>

        <judo-psm-archetype-version>1.0.0</judo-psm-archetype-version>
        <judo-psm-generator-jaxrs>1.0.0</judo-psm-generator-jaxrs>
        <judo-meta-psm-version>1.1.0</judo-meta-psm-version>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>hu.blackbelt.judo.archetype</groupId>
                <artifactId>judo-psm-archetype-maven-plugin</artifactId>
                <version>${judo-psm-archetype-version}</version>
                <executions>
                    <execution>
                        <id>execute-psm-test-model-from-artifact</id>
                        <phase>test</phase>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <uris>
                                <uri>${basedir}/src/main/resources</uri>
                            </uris>
                            <helpers>
                                <helper>hu.blackbelt.judo.psm.generator.jaxrs.PsmModelHelper</helper>
                            </helpers>
                            <type>psm-jaxrs</type>
                            <psm>
                                mvn:your.psm.model.group.id:your.psm.model.artifact.id:your.psm.model.version!model-name-in-jar.model
                            </psm>
                            <destination>${basedir}/target/generated-test-classes/psm/jaxrs</destination>
                        </configuration>
                    </execution>
                </executions>

                <dependencies>
                    <dependency>
                        <groupId>hu.blackbelt.judo.meta</groupId>
                        <artifactId>hu.blackbelt.judo.meta.psm.model.[ModelName]</artifactId>
                        <version>${judo-meta-psm-version}</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
</project>

This example generates a complete project setup into target/classes directory. In a project this generation can be placed in the model project as a profile.

The judo-psm-archetype-maven-plugin documentation is placed inside the plugin documentation itself. https://github.com/BlackBeltTechnology/judo-psm-archetype

About

JUDO PSM Jackson Rest API generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •