Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.21 KB

README.md

File metadata and controls

35 lines (28 loc) · 1.21 KB

Hollow-api-generator-plugin

This plugin provides goal for generating hollow consumer api, that is described here

Usage

In order to use, add plugin to your pom.xml file and configure it

<plugin>
    <groupId>com.github.igorperikov</groupId>
    <artifactId>hollow-maven-plugin</artifactId>
    <version>0.1.1</version>
    <configuration>
        <packagesToScan>
            <param>org.example.package1</param>
            <param>org.example.package2</param>
        </packagesToScan>
        <apiClassName>MyApiClassName</apiClassName>
        <apiPackageName>org.example.package3.generated.api</apiPackageName>
    </configuration>
</plugin>

where:

  • packagesToScan - packages with your data classes, note that scan is recursive
  • apiClassName - class name for your api implementation
  • apiPackageName - target package in your project for api-related sources

launch task:

mvn compile hollow:generate

N.B. it is important to launch compile before hollow:generate because plugin needs .class files to generate consumer api