Jline-2.11
Dependency: Jline-2.11 depends on Jansi-1.11, and Jansi-1.11 depends on Jansi-native-1.5.
- 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:
1mvn package -Dmaven.javadoc.skip=true
After the compilation is complete, copy the generated jansi-1.11.jar file to the local Maven repository.
- Download the Jline-2.11 source package.
1wget https://github.com/jline/jline2/archive/jline-2.11.tar.gz - Decompress the source package.
1tar -zxvf jline-2.11.tar.gz
- Go to the directory generated after the decompression.
1cd jline2-jline-2.11
- Add the Kunpeng Maven repository to the pom.xml file.
- Open the file.
1vi pom.xml - 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>

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the file.
- Perform the compilation.
1mvn install package
A JAR package is generated in the ./target/jline-2.11.jar directory.
Parent topic: Compilation