Rate This Document
Findability
Accuracy
Completeness
Readability

Compiling and Installing de.flapdoodle.embed.process

  • If a proxy is required by the host to access the Internet, configure Cntlm. For details, see Configuring Cntlm.
  • If "validity check failed" is displayed during the file download process, refer to Configuring a Certificate.

Obtaining the de.flapdoodle.embed.process Source Code

  1. Go to the /usr/local directory.
    1
    cd /usr/local
    
  2. Download the de.flapdoodle.embed.process source code.
    1
    wget https://github.com/flapdoodle-oss/de.flapdoodle.embed.process/archive/de.flapdoodle.embed.process-2.1.2.zip --no-check-certificate
    
  3. Decompress the de.flapdoodle.embed.process source code.
    1
    unzip de.flapdoodle.embed.process-2.1.2.zip
    
  4. 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.
    1
    cd de.flapdoodle.embed.process-de.flapdoodle.embed.process-2.1.2
    

Compiling de.flapdoodle.embed.process

  1. Modify the BitSize.java file.
    1. Open the BitSize.java file.
      1
      vim ./src/main/java/de/flapdoodle/embed/process/distribution/BitSize.java
      
    2. 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"))
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  2. Perform the compilation and installation.
    1
    mvn 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.
    1
    ll target