Running the {MavenNameTitle}

The {MavenName} is run by including a reference to the plugin inside your application’s pom.xml file. When the application is built, the {MavenName} is run and generates the reports for analysis.

Prerequisites
Procedure
  1. Add the following <plugin> to your application’s pom.xml file:

    [...]
    <plugin>
        <groupId>org.jboss.windup.plugin</groupId>
        <artifactId>{LC_PSN}-maven-plugin</artifactId>
        <version>{ProductDistributionVersion}</version>
        <executions>
            <execution>
                <id>run-windup</id>
                <phase>package</phase>
                <goals>
                    <goal>windup</goal>
                </goals>
            </execution>
        </executions>
        <configuration>
            <target>eap:7</target> (1)
        </configuration>
    </plugin>
    [...]
    1. Specify a migration target. At least one migration target must be supplied within the configuration.

  2. Add --add-modules=java.se to the MAVEN_OPTS environment variable.

    export MAVEN_OPTS=--add-modules=java.se
  3. Build the project:

    $ mvn clean install

    You can access the generated reports.