Rate This Document
Findability
Accuracy
Completeness
Readability

Jline-2.11

Dependency: Jline-2.11 depends on Jansi-1.11, and Jansi-1.11 depends on Jansi-native-1.5.

  1. Compile jansi-native-1.5 and Jansi 1.11. For details, see Jansi Porting Guide (CentOS & openEuler.

    During the compilation, change the command to the following:

    1
    mvn package -Dmaven.javadoc.skip=true
    

    After the compilation is complete, copy the generated jansi-1.11.jar file to the local Maven repository.

  2. Download the Jline-2.11 source package.
    1
    wget https://github.com/jline/jline2/archive/jline-2.11.tar.gz
    
  3. Decompress the source package.
    1
    tar -zxvf jline-2.11.tar.gz
    
  4. Go to the directory generated after the decompression.
    1
    cd jline2-jline-2.11
    
  5. Add the Kunpeng Maven repository to the pom.xml file.
    1. Open the file.
      1
      vi pom.xml
      
    2. Press i to enter the insert mode and add the following content to the file:
      1
      2
      3
      4
      5
      6
      7
      <repositories>
        <repository>
          <id>kunpengmaven</id>
          <name>kunpeng maven</name>
          <url>https://mirrors.huaweicloud.com/kunpeng/maven</url>
         </repository>
      </repositories>
      

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Perform the compilation.
    1
    mvn install package
    

    A JAR package is generated in the ./target/jline-2.11.jar directory.