Rate This Document
Findability
Accuracy
Completeness
Readability

Jline-2.10.5

Dependency: Jline-2.10.5 depends on Jansi-1.4, and Jansi 1.4 depends on Jansi-native-1.0.

  1. Compile Jansi-native-1.0 (see Jansi 移植指南(CentOS 7.6&openEuler 20.03)), and copy the generated jansi-native-1.0-linux64.jar file to the /home directory.
  2. Create the jansi-native-1.0 directory in the /home directory and decompress the jansi-native-1.0-linux64.jar package to the directory.
    1
    2
    3
    4
    mkdir /home/jansi-native-1.0
    cp jansi-native-1.0-linux64.jar /home/jansi-native-1.0
    cd /home/jansi-native-1.0
    jar -xf jansi-native-1.0-linux64.jar
    
  3. Create the jline-2.10.5 directory, and download and decompress jline-2.10.5.jar.
    1
    2
    3
    4
    5
    mkdir /home/jline-2.10.5
    cd /home/jline-2.10.5
    wget https://repo1.maven.org/maven2/org/scala-lang/jline/2.10.5/jline-2.10.5.jar
    jar -xf jline-2.10.5.jar
    rm -rf jline-2.10.5.jar
    
  4. Replace the libjansi.so file of Jline-2.10.5 with the libjansi.so file of Jansi-native-1.0.
    1
    2
    cd /home/jline-2.10.5
    cp /home/jansi-native-1.0/META-INF/native/linux64/libjansi.so META-INF/native/linux64/libjansi.so
    
  5. Package jline-2.10.5.jar again.
    cd /home/jline-2.10.5
    jar -cf jline-2.10.5.jar ./

The value of groupId is org.scala-lang and the value of MD5 is 2a9314e4fd985f848e2e170349d2a1cc.