Skip to content

Maven generate sources

Kristian Karl edited this page Mar 4, 2021 · 7 revisions

graphwalker:generate-sources

The plugin generates interfaces from models that are placed in the folder src/main/resources. The models are placed in sub directories to mimic package name structure.

An example of a model that would generate an interface SmallTest in the package com.company:

src/main/resources/com/company/SmallTest.graphml

The interface will be generated into:

target/generated-sources/graphwalker/com/company/SmallTest.java

Example

$ mvn graphwalker:generate-sources
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------< org.graphwalker.example:java-prestashop >---------------
[INFO] Building GraphWalker PrestaShop Example 4.3.1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- graphwalker-maven-plugin:4.3.1:generate-sources (default-cli) @ java-prestashop ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.713 s
[INFO] Finished at: 2019-09-28T11:30:18+02:00
[INFO] ------------------------------------------------------------------------
Clone this wiki locally