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.
-
Java Development Kit (JDK) installed.
{ProductShortName} supports the following JDKs:
-
OpenJDK 11
-
Oracle JDK 11
-
-
8 GB RAM
-
macOS installation: the value of
maxproc
must be2048
or greater. -
The Maven
settings.xml
file configured to direct Maven to use the JBoss EAP Maven repository. -
To run the {MavenName} on OpenJDK 17 or Oracle JDK17, you first need to set MAVEN_OPTS on the command line by running the following command:
export MAVEN_OPTS="--add-modules=java.se --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.util.stream=ALL-UNNAMED"
-
Add the following
<plugin>
to your application’spom.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> [...]
-
Specify a migration target. At least one migration target must be supplied within the configuration.
-
-
Add
--add-modules=java.se
to theMAVEN_OPTS
environment variable.export MAVEN_OPTS=--add-modules=java.se
-
Build the project:
$ mvn clean install
You can access the generated reports.