Jar 依赖关系 - ifeilong/feilong GitHub Wiki

Jar 依赖关系

Table of Contents

下面罗列依赖关系

1. 可选依赖

1.1. 使用 加密解密 功能

com.feilong.security.oneway.Sm3Util

需自行依赖

<!-- for com.feilong.security.oneway.Sm3Util -->
<dependency>
	<groupId>org.bouncycastle</groupId>
	<artifactId>bcprov-jdk15on</artifactId>
	<version>1.55</version>
</dependency>

1.2. 使用 velocity 模板 功能

com.feilong.template.TemplateUtil

需自行依赖

<dependency>
    <groupId>org.apache.velocity</groupId>
    <artifactId>velocity-engine-core</artifactId>
    <version>2.2</version>
</dependency>
Warning
注意是依赖 velocity 2 系列版本 , 和 1 系列不兼容

1.3. 使用 POI excel 功能

com.feilong.excel.ExcelReaderUtil com.feilong.excel.ExcelWriteUtil

需自行依赖

<!-- poi HSSF is our port of the Microsoft Excel 97(-2007) file format (BIFF8) to pure Java. -->
<dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi</artifactId>
    <version>4.1.2</version>
</dependency>

<!-- poi-ooxml XSSF is our port of the Microsoft Excel XML (2007+) file format (OOXML) to pure Java -->
<dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>poi-ooxml</artifactId>
    <version>4.1.2</version>
    <exclusions>
        <exclusion>
            <groupId>com.github.virtuald</groupId>
            <artifactId>curvesapi</artifactId>
        </exclusion>
    </exclusions>
</dependency>

<!-- poi-ooxml-schemas是ooxml-schemas的精简版 -->
<dependency>
    <groupId>org.apache.poi</groupId>
    <artifactId>ooxml-schemas</artifactId>
    <version>1.4</version>
</dependency>
Warning
注意是依赖 poi 4 系列版本, 和POI3 不兼容

1.4. 使用 SFTP 功能

com.feilong.net.filetransfer.sftp.SFTPFileTransfer

需自行依赖

<dependency>
    <groupId>com.jcraft</groupId>
    <artifactId>jsch</artifactId>
    <version>0.1.55</version>
</dependency>

1.5. 使用 email 功能

com.feilong.net.mail.DefaultMailSender

需自行依赖

<dependency>
    <groupId>com.sun.mail</groupId>
    <artifactId>javax.mail</artifactId>
    <version>1.6.2</version>
</dependency>

1.6. 使用 Jsoup 功能

com.feilong.net.jsoup.JsoupUtil

需自行依赖

<dependency>
    <groupId>org.jsoup</groupId>
    <artifactId>jsoup</artifactId>
    <version>1.13.1</version>
</dependency>

1.7. 使用 HTTP 功能

com.feilong.net.http.HttpClientUtil

需自行依赖

<!--httpmime -->
<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpmime</artifactId>
    <version>4.5.12</version>
</dependency>

<!--httpclient -->
<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpclient</artifactId>
    <version>4.5.12</version>
</dependency>

1.8. 使用 CXF 功能

com.feilong.net.cxf.JaxWsDynamicClientUtil

需自行依赖

<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-frontend-jaxws</artifactId>
    <version>3.1.11</version>
    <exclusions>
        <exclusion>
            <groupId>org.apache.geronimo.specs</groupId>
            <artifactId>geronimo-javamail_1.4_spec</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-ws-addr</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-bindings-xml</artifactId>
        </exclusion>
    </exclusions>
</dependency>

<dependency>
    <groupId>org.apache.cxf</groupId>
    <artifactId>cxf-rt-transports-http</artifactId>
    <version>3.1.11</version>
    <exclusions>
        <exclusion>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-api</artifactId>
        </exclusion>
        <exclusion>
            <groupId>org.apache.cxf</groupId>
            <artifactId>cxf-rt-core</artifactId>
        </exclusion>
    </exclusions>
</dependency>

1.9. spring xml customer tag

<feilong:accessor-cookie id="cookieAccessor" name="aaa" httpOnly="true" maxAge="#{T(com.feilong.core.TimeInterval).SECONDS_PER_YEAR}" />
<!-- spring-beans version 不限制 -->
<dependency>
	<groupId>org.springframework</groupId>
	<artifactId>spring-beans</artifactId>
	<version>5.2.6.RELEASE</version>
</dependency>

1.10. 配置式组件

<!-- spring-expression version 不限制 -->
<dependency>
	<groupId>org.springframework</groupId>
	<artifactId>spring-expression</artifactId>
	<version>5.2.6.RELEASE</version>
</dependency>
⚠️ **GitHub.com Fallback** ⚠️