Usage Example

1. A configuration that creates three documentations for the current project version, the previous version and the version in PROD environment 
could look like this. The persistence documentation is then executed with mvn japedo:generate

                        <plugin>
                                <groupId>com.logitags</groupId>
                                <artifactId>japedo-maven-plugin</artifactId>
                                <version>1.1</version>
                                <configuration>
                                        <japedoDirectory>D:\Projekte\japedo\test</japedoDirectory>
                                        <proxyHost>proxy-server.localnet</proxyHost>
                                        <proxyPort>8080</proxyPort>
                                        <jobs>
                                                <job>
                                                        <name>myProject-v2.2</name>
                                                        <includeSources>
                                                                <includeSource>com.company</includeSource>
                                                                <includeSource>net.company</includeSource>
                                                        </includeSources>
                                                        <excludeSources>
                                                                <excludeSource>com.company:generic:LATEST</excludeSource>
                                                        </excludeSources>
                                                        <additionalDependencies>
                                                                <dependency>com.h2database:h2:1.4.200</dependency>
                                                                <dependency>org.springframework:spring-beans:4.3.3.RELEASE</dependency>
                                                        </additionalDependencies>
                                                        <dbConnectionUrl>jdbc:oracle:thin:@localhost:1521:XE</dbConnectionUrl>
                                                        <dbDriverClassName>oracle.jdbc.OracleDriver</dbDriverClassName>
                                                        <dbPassword>dev</dbPassword>
                                                        <dbUsername>dev</dbUsername>
                                                        <dbSchema>dev</dbSchema>
                                                </job>
                                                <job>
                                                        <name>myProject-v2.1</name>
                                                        <projectVersion>2.1</projectVersion>
                                                        <includeSources>
                                                                <includeSource>com.company</includeSource>
                                                                <includeSource>net.company</includeSource>
                                                        </includeSources>
                                                        <excludeSources>
                                                                <excludeSource>com.company:generic:LATEST</excludeSource>
                                                        </excludeSources>
                                                        <additionalDependencies>
                                                                <dependency>com.h2database:h2:1.4.200</dependency>
                                                                <dependency>org.springframework:spring-beans:4.3.3.RELEASE</dependency>
                                                        </additionalDependencies>
                                                        <dbConnectionUrl>jdbc:oracle:thin:@localhost:1521:XE</dbConnectionUrl>
                                                        <dbDriverClassName>oracle.jdbc.OracleDriver</dbDriverClassName>
                                                        <dbPassword>preprod</dbPassword>
                                                        <dbUsername>preprod</dbUsername>
                                                        <dbSchema>preprod</dbSchema>
                                                </job>
                                                <job>
                                                        <name>PROD-env</name>
                                                        <dataFile>C:\japedo-jobs\PROD_20210901-job.js</dataFile>
                                                </job>
                                        </jobs>
                                </configuration>
                        </plugin>

2. When the persistence documentation shall be generated in the Maven build lifecycle, you have to configure like this:

                        <plugin>
                                <groupId>com.logitags</groupId>
                                <artifactId>japedo-maven-plugin</artifactId>
                                <version>1.1</version>
                                <executions>
                                        <execution>
                                                <id>generate</id>
                                                <goals>
                                                        <goal>generate</goal>
                                                </goals>
                                        </execution>
                                </executions>
                                <configuration>
                                ...
                                </configuration>
                        </plugin>