이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 2. Getting started


2.1. Installing the Maven Plugin

You can install the Maven plugin in your local Maven repository.

Prerequisites

  • OpenJDK 1.8, OpenJDK 11, Oracle JDK 1.8, or Oracle JDK 11
  • 8 GB RAM
  • Maven 3.2.5 or later
  • macOS: The value of maxproc must be 2048 or greater.

Procedure

  1. Clone the Maven plugin Github repository:

    Copy to Clipboard Toggle word wrap
    $ git clone https://github.com/windup/windup-maven-plugin.git
  2. Navigate to the windup-maven-plugin directory.

    Copy to Clipboard Toggle word wrap
    $ cd windup-maven-plugin
  3. Build the project:

    Copy to Clipboard Toggle word wrap
    $ mvn clean install

    The windup-maven-plugin jar is installed in your local Maven repository.

2.2. Running the Maven Plugin

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

Procedure

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

    Copy to Clipboard Toggle word wrap
    [...]
    <plugin>
        <groupId>org.jboss.windup.plugin</groupId>
        <artifactId>windup-maven-plugin</artifactId>
        <version>5.0.Final</version>
        <executions>
            <execution>
                <id>run-windup</id>
                <phase>package</phase>
                <goals>
                    <goal>windup</goal>
                </goals>
            </execution>
        </executions>
        <configuration>
            <offlineMode>true</offlineMode> 
    1
    
        </configuration>
    </plugin>
    [...]
    1
    offlineMode runs the Maven plugin in offline mode, disabling network features to improve performance.
  2. If using Java 11, then --add-modules=java.se must be added to the MAVEN_OPTS environment variable. When using older versions of Java this is not necessary, and you can proceed to the next step.

    Copy to Clipboard Toggle word wrap
    export MAVEN_OPTS=--add-modules=java.se
    Important

    Using the Maven plugin on Java 11 is provided as Technology Preview only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs), might not be functionally complete, and Red Hat does not recommend to use them for production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process.

    See Technology Preview Features support scope on the Red Hat Customer Portal for information about the support scope for Technology Preview features.

  3. Build the project:

    Copy to Clipboard Toggle word wrap
    $ mvn clean install

    You can access the generated reports.

2.3. Running the Maven Plugin with multiple modules

To use the Maven plugin in a project with multiple modules, place the configuration inside the parent’s pom.xml. During execution the Maven plugin will generate a single report that contains the analysis for the parent and any child modules.

Note

It is strongly recommended to set inherited to false in multi-module projects; otherwise, the Maven plugin will be executed when each child is compiled, resulting in multiple executions of the Maven plugin against the child modules. Setting inherited to false results in each project being analyzed a single time and drastically decreased run times.

To run the Maven plugin in a project with multiple modules perform the following steps.

  1. Include the following plugin inside the parent project’s pom.xml. The following is a sample pom.xml for a parent module.

    Copy to Clipboard Toggle word wrap
    <plugin>
        <groupId>org.jboss.windup.plugin</groupId>
        <artifactId>windup-maven-plugin</artifactId>
        <version>5.0.Final</version>
        <inherited>false</inherited>
        <executions>
            <execution>
                <id>run-windup</id>
                <phase>package</phase>
                <goals>
                    <goal>windup</goal>
                </goals>
            </execution>
        </executions>
        <configuration>
            <input>${project.basedir}</input>
            <offlineMode>true</offlineMode>
            <windupHome>>/PATH/TO/CLI/<</windupHome>
        </configuration>
    </plugin>

    This pom.xml file differs from the default in the following attributes:

    • inherited: Defined at the plugin level, this attribute indicates whether or not this configuration should be used in child modules. Set to false for performance improvements.
    • input: Specifies the path to the directory containing the projects to be analyzed. This attribute defaults to {project.basedir}/src/main, and should be defined if the parent project does not have source code to analyze.
    • windupHome: A path to an extracted copy of the MTA CLI. This attribute is optional, but is recommended as a performance improvement.

      The above example demonstrates a set of recommended arguments.

  2. Build the parent project. During the build process the Maven plugin will execute against all children in the project without further configuration.

    Copy to Clipboard Toggle word wrap
    $ mvn clean install
  3. Once completed, you can access the generated reports. This report contains the analysis for the parent and all children.

2.4. Accessing the report

When you execute Migration Toolkit for Applications, the report is generated in the OUTPUT_REPORT_DIRECTORY that you specify using the outputDirectory argument in the pom.xml. Upon completion of the build, you will see the following message in the build log.

Copy to Clipboard Toggle word wrap
Windup report created: <OUTPUT_REPORT_DIRECTORY>/index.html

The output directory contains the following files and subdirectories:

Copy to Clipboard Toggle word wrap
<OUTPUT_REPORT_DIRECTORY>/
├── index.html          // Landing page for the report
├── <EXPORT_FILE>.csv     // Optional export of data in CSV format
├── graph/              // Generated graphs used for indexing
├── reports/            // Generated HTML reports
├── stats/              // Performance statistics

See the Review the reports section of the MTA CLI Guide for information on the MTA reports and how to use them to assess your migration or modernization effort.

맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat, Inc.