Skip to content

HeinekenBilly/Maven-zOS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Table of Contents

Maven on zOS

Yes, you can use Maven on zOS under USS, reason being maven at end of the day is Java application and require JRE which is available on USS for most installation. This took me a full week to figure it out but it worked eventually.

Prerequisites

  1. Access to OMVS shell.

  2. You will need Maven binaries in zipped format and can be downloaded from here

  3. Unzip the binaries to any location on your workstation and then transfer using IBM Idz or any other method available to your home direcorty of USS or any other location of your choice.

  4. If you have cURL for zOS which comes packaged with Rocket Git, you can directly download on to USS.

Settings

  1. CD to your direcory where you kept the files on USS and run the following command
chtag -tc ibm-1047 ~/apache-maven-3.6.3/bin/m2.conf 
  1. Now make a copy of this file, just in case.
cp ~/apache-maven-3.6.3/bin/m2.conf ~/apache-maven-3.6.3/bin/m2.conf.bkp
  1. Rename the m2.conf to m2.conf.old
mv m2.conf m2.conf.old
  1. Now using iconv to change the encoding of m2.conf to UTF-8
iconv -f ibm-1047 -t UTF-8 ~/apache-maven-3.6.3/bin/m2.conf.old > ~/apache-maven-3.6.3/bin/m2.conf
  1. set MAVEN_OPTS to use UTF-8 encoding, remember that is zOS so default encoding is Ebcidc.
export MAVEN_OPTS=-Dfile.encoding=UTF-8
  1. Set execute permission on ~/apache-maven-3.6.3/bin.mvn
chmod +x ~/apache-maven-3.6.3/bin/mvn
  1. Test Drive should show version instead of hieroglyph.
mvn -v

With Love, Billy 'The Cat'

About

Handy Dandy Guide for Installing Maven on zOS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published