How to configure and run Mainframe H3270 Screens project
When working with Mainframe H3270 screens, you must provide the H3270 jar to the OpenLegacy CLI and place it inside your .m2 directory in case you need to compile the project.
You can find the JAR here.
- Unzip the file.
- Copy from:
mainframe-h3270-screens/h3270/1.3.3.3/h3270-1.3.3.3.jar
into:
/.ol/cli/extra-classpath-resources/h3270-1.3.3.3.jar
This will allow the CLI to use the H3270 JAR and run the emulation.
In case you want to compile the OpenLegacy API, make sure to have the following artifact in your .m2 repository:
- groupId: Set the group ID to h3270
- artifactId: Set the artifact ID to h3270
- version: Set the version to 1.3.3.3
You can run the install-to-m2.sh script inside the root directory, or call this command from the terminal:
mvn install:install-file \
-Dfile=./h3270/1.3.3.3/h3270-1.3.3.3.jar \
-DpomFile=./h3270/1.3.3.3/h3270-1.3.3.3.pom \
-DgroupId=h3270 \
-DartifactId=h3270 \
-Dversion=1.3.3.3 \
-Dpackaging=jar
Or create the following hierarchy in your .m2 repository:
.m2/repository/h3270/h3270/1.3.3.3/h3270-1.3.3.3.jar
.m2/repository/h3270/h3270/1.3.3.3/h3270-1.3.3.3.pom
Updated 9 months ago