Rate This Document
Findability
Accuracy
Completeness
Readability

Importing BES JAR Packages to the Maven Repository

If the build is performed locally, run the following command to import the packages to the local repository:

1
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=jar

Among the packages, bes-lite-spring-boot-2.x-starter-9.5.5.jar is the mandatory BES package for Spring Boot. Its minor version is subject to the actual JAR package. The following is an example. Replace the -Dfile value with the actual JAR package and path.

  • An example on Windows:

    Before running the previous command, run mvn -version in the CMD screen. If a Maven version is displayed, Maven has been installed. Otherwise, install Maven first.

    1
    mvn install:install-file -Dfile="D:\BES-AppServer-SpringBoot-2.x-9.5.5.007\bes-lite-spring-boot-2.x-starter-9.5.5.jar" -DgroupId="com.bes.appserver" -DartifactId="bes-lite-spring-boot-2.x-starter" -Dversion="9.5.5" -Dpackaging=jar
    
  • An example on Linux:
    1
    mvn install:install-file -Dfile="/bes/jars/bes-lite-spring-boot-2.x-starter-9.5.5.jar" -DgroupId="com.bes.appserver" -DartifactId="bes-lite-spring-boot-2.x-starter" -Dversion="9.5.5" -Dpackaging=jar
    
  • To upload the package to the remote repository at the same time, run the following command:
    1
    mvn deploy:deploy-file -Dfile=<path-to-file> -DgroupId="com.bes.appserver" -DartifactId="bes-lite-spring-boot-2.x-starter" -Dversion="9.5.5" -Dpackaging=jar -DrepositoryId=<repository-id> -Durl=<repository-url>
    
    • <repository-id>: remote repository ID configured in settings.xml, which is used to associate repository authentication information.
    • <repository-url>: remote repository URL, which is used to upload or download files.

Optional packages: For example, bes-websocket-9.5.5.jar supports the WebSocket capability; bes-jdbcra-spring-boot-starter-9.5.5.jar and bes-jdbcra-9.5.5.jar support the JDBC connection pool capability. Import packages required for your code project. For details, see Table 1.

Table 1 JAR packages

JAR Package

Function

bes-lite-spring-boot-2.x-starter-9.5.5.007.jar

(Mandatory) Replacing the core dependency package of Tomcat

bes-actuator-spring-boot-2.x-starter-9.5.5.007.jar

(Optional) Actuator detection

bes-gmssl-9.5.5.007.jar

(Optional) SM algorithms

bes-jasper-9.5.5.007.jar

(Optional) JSP compilation

bes-jdbcra-9.5.5.007.jar

(Optional) JDBC connection pool

bes-jdbcra-spring-boot-starter-9.5.5.007.jar

(Optional) JDBC connection pool

bes-websocket-9.5.5.007.jar

(Optional) WebSocket

bes-webapp-compressor-9.5.5.007.jar

(Optional) Compression and decompression