Compiling and Installing de.flapdoodle.embed.process
Obtaining the de.flapdoodle.embed.process Source Code
- Go to the /usr/local directory.
1cd /usr/local
- Download the de.flapdoodle.embed.process source code.
1wget https://github.com/flapdoodle-oss/de.flapdoodle.embed.process/archive/de.flapdoodle.embed.process-2.1.2.zip --no-check-certificate
- Decompress the de.flapdoodle.embed.process source code.
1unzip de.flapdoodle.embed.process-2.1.2.zip - Go to the de.flapdoodle.embed.process-de.flapdoodle.embed.process-2.1.2 directory generated after the de.flapdoodle.embed.process source code package is decompressed.
1cd de.flapdoodle.embed.process-de.flapdoodle.embed.process-2.1.2
Compiling de.flapdoodle.embed.process
- Modify the BitSize.java file.
- Open the BitSize.java file.
1vim ./src/main/java/de/flapdoodle/embed/process/distribution/BitSize.java - Press i to enter the insert mode and modify line 36.
if (osArch.equals("i686_64") || osArch.equals("x86_64") || osArch.equals("amd64") || osArch.equals("ppc64le") || osArch.equals("aarch64")) - Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the BitSize.java file.
- Perform the compilation and installation.
1mvn clean install -DskipTests=true
If the de.flapdoodle.embed.process-2.1.2.jar package is generated in the target directory, the compilation is successful.1ll target