登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
AI 队友
登录
注册
轻量养虾,开箱即用!低 Token + 稳定算力,Gitee & 模力方舟联合出品的 PocketClaw 正式开售!点击了解详情
代码拉取完成,页面将自动刷新
开源项目
>
程序开发
>
网络开发包
&&
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
337
Star
3.9K
Fork
825
dromara
/
forest
代码
Issues
178
Pull Requests
0
Wiki
统计
流水线
服务
JavaDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
开发画像分析
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
forest-spring-boot-starter 1.5.6缺少protobuf-java的jar包
已完成
#I4DKQW
许大仙
创建于
2021-10-12 17:23
### 当前使用Forest版本以及所使用的后端及版本 Forest: version Backend: (okhttp或httpclient)/version forest-spring-boot-starter 1.5.6 ### 该问题是如何引起的? 缺少protobuf-java的jar包 在forest-1.5.6.pom ```xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.dtflys.forest</groupId> <artifactId>forest</artifactId> <version>1.5.6</version> <packaging>pom</packaging> <name>forest</name> <description>A easy HTTP client framework for Java</description> <url>https://github.com/mySingleLive/forest</url> <licenses> <license> <name>The MIT License (MIT)</name> <url>https://mit-license.org</url> <distribution>repo</distribution> </license> </licenses> <developers> <developer> <id>gongjun</id> <name>gongjun</name> <email>dt_flys@hotmail.com</email> <url>http://www.dtflys.com</url> </developer> </developers> <scm> <url>https://github.com/mySingleLive/forest</url> <connection>scm:git:https://github.com/mySingleLive/forest.git</connection> <developerConnection>http://www.dtflys.com</developerConnection> <tag>1.5.6</tag> </scm> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <spring.version>5.0.16.RELEASE</spring.version> <spring-boot.version>2.2.5.RELEASE</spring-boot.version> <common-io.version>2.7</common-io.version> <commons-fileupload.version>1.3.3</commons-fileupload.version> <commons-logging.version>1.2</commons-logging.version> <juniversalchardet.version>1.0.3</juniversalchardet.version> <jsr305.version>3.0.1</jsr305.version> <fastjson.version>1.2.48</fastjson.version> <jackson.version>2.9.10</jackson.version> <jackson-databind.version>2.9.10.7</jackson-databind.version> <gson.version>2.8.6</gson.version> <xercesImpl.version>2.12.0</xercesImpl.version> <slf4j.version>1.7.10</slf4j.version> <log4j.version>2.4.1</log4j.version> <okhttp.version>3.14.9</okhttp.version> <httpcore.version>4.4.14</httpcore.version> <httpnio.version>4.4.6</httpnio.version> <httpclient.version>4.5.13</httpclient.version> <httpasyncclient.version>4.1.4</httpasyncclient.version> <mockwebserver.version>3.14.9</mockwebserver.version> <mockserver-netty.version>3.10.4</mockserver-netty.version> <mockito.version>1.9.5</mockito.version> <junit.version>4.13.2</junit.version> <moco-core.version>0.12.0</moco-core.version> <spring-boot-starter-test.version>1.5.1.RELEASE</spring-boot-starter-test.version> <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> <maven-source-plugin.version>2.1.2</maven-source-plugin.version> <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version> <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version> <nexus-staging-maven-plugin.version>1.6.3</nexus-staging-maven-plugin.version> <spring-boot-maven-plugin.version>2.0.1.RELEASE</spring-boot-maven-plugin.version> <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version> <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version> <protobuf.version>3.14.0</protobuf.version> </properties> <modules> <module>forest-core</module> <module>forest-spring</module> <module>forest-spring-boot-starter</module> <module>forest-mock</module> </modules> <dependencies> <!-- mockito --> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>${mockito.version}</version> <scope>test</scope> </dependency> <!-- junit --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> <version>${xercesImpl.version}</version> <scope>provided</scope> </dependency> <!-- mock server --> <dependency> <groupId>org.mock-server</groupId> <artifactId>mockserver-netty</artifactId> <version>${mockserver-netty.version}</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-buffer</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-codec</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-codec-http</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-codec-socks</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-common</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-handler</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-transport</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.github.dreamhead</groupId> <artifactId>moco-core</artifactId> <version>${moco-core.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>3.13.2</version> <scope>test</scope> </dependency> <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>mockwebserver</artifactId> <version>3.14.9</version> <scope>test</scope> </dependency> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.5.2</version> <scope>test</scope> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>${spring-boot.version}</version> <exclusions> <exclusion> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-logging-juli</artifactId> </exclusion> <!-- use ctrip modified version instead --> <exclusion> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>${spring-boot-starter-test.version}</version> <scope>test</scope> </dependency> <dependency> <!-- Import dependency management from Spring Boot --> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>${spring-boot.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${maven-compiler-plugin.version}</version> <inherited>true</inherited> <executions> <execution> <id>main-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <encoding>UTF-8</encoding> </configuration> </execution> <execution> <id>test-compile</id> <phase>test-compile</phase> <goals> <goal>testCompile</goal> </goals> <configuration> <fork>true</fork> <compilerArgs> <arg>-parameters</arg> </compilerArgs> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>${cobertura-maven-plugin.version}</version> <configuration> <formats> <format>html</format> <format>xml</format> </formats> <check /> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>${maven-deploy-plugin.version}</version> </plugin> </plugins> </build> <distributionManagement> <snapshotRepository> <id>oss-snapshot</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <id>oss-release</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> </repository> </distributionManagement> <profiles> <profile> <id>disable-javadoc-doclint</id> <activation> <jdk>[1.8,)</jdk> </activation> <properties> <additionalparam>-Xdoclint:none</additionalparam> </properties> </profile> <profile> <id>oss-release</id> <build> <plugins> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>${nexus-staging-maven-plugin.version}</version> <extensions>true</extensions> <configuration> <serverId>oss-snapshot</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>false</autoReleaseAfterClose> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${maven-source-plugin.version}</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven-javadoc-plugin.version}</version> <executions> <execution> <id>attach-javadocs</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <encoding>UTF-8</encoding> <charset>UTF-8</charset> <docencoding>UTF-8</docencoding> <!-- <additionalJOption>-Xdoclint:none</additionalJOption>--> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>${maven-gpg-plugin.version}</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project> ``` 你只是在properties中定义了,但是没有在`<dependencies></dependencies>`中定义依赖啊 ### 重现步骤(如果有请写完整) ### 报错信息/完整请求日志(如果没有请求日志请把开关打开) ### 接口定义(必要时请提供)
### 当前使用Forest版本以及所使用的后端及版本 Forest: version Backend: (okhttp或httpclient)/version forest-spring-boot-starter 1.5.6 ### 该问题是如何引起的? 缺少protobuf-java的jar包 在forest-1.5.6.pom ```xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.dtflys.forest</groupId> <artifactId>forest</artifactId> <version>1.5.6</version> <packaging>pom</packaging> <name>forest</name> <description>A easy HTTP client framework for Java</description> <url>https://github.com/mySingleLive/forest</url> <licenses> <license> <name>The MIT License (MIT)</name> <url>https://mit-license.org</url> <distribution>repo</distribution> </license> </licenses> <developers> <developer> <id>gongjun</id> <name>gongjun</name> <email>dt_flys@hotmail.com</email> <url>http://www.dtflys.com</url> </developer> </developers> <scm> <url>https://github.com/mySingleLive/forest</url> <connection>scm:git:https://github.com/mySingleLive/forest.git</connection> <developerConnection>http://www.dtflys.com</developerConnection> <tag>1.5.6</tag> </scm> <properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <spring.version>5.0.16.RELEASE</spring.version> <spring-boot.version>2.2.5.RELEASE</spring-boot.version> <common-io.version>2.7</common-io.version> <commons-fileupload.version>1.3.3</commons-fileupload.version> <commons-logging.version>1.2</commons-logging.version> <juniversalchardet.version>1.0.3</juniversalchardet.version> <jsr305.version>3.0.1</jsr305.version> <fastjson.version>1.2.48</fastjson.version> <jackson.version>2.9.10</jackson.version> <jackson-databind.version>2.9.10.7</jackson-databind.version> <gson.version>2.8.6</gson.version> <xercesImpl.version>2.12.0</xercesImpl.version> <slf4j.version>1.7.10</slf4j.version> <log4j.version>2.4.1</log4j.version> <okhttp.version>3.14.9</okhttp.version> <httpcore.version>4.4.14</httpcore.version> <httpnio.version>4.4.6</httpnio.version> <httpclient.version>4.5.13</httpclient.version> <httpasyncclient.version>4.1.4</httpasyncclient.version> <mockwebserver.version>3.14.9</mockwebserver.version> <mockserver-netty.version>3.10.4</mockserver-netty.version> <mockito.version>1.9.5</mockito.version> <junit.version>4.13.2</junit.version> <moco-core.version>0.12.0</moco-core.version> <spring-boot-starter-test.version>1.5.1.RELEASE</spring-boot-starter-test.version> <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version> <maven-source-plugin.version>2.1.2</maven-source-plugin.version> <maven-javadoc-plugin.version>3.2.0</maven-javadoc-plugin.version> <cobertura-maven-plugin.version>2.7</cobertura-maven-plugin.version> <nexus-staging-maven-plugin.version>1.6.3</nexus-staging-maven-plugin.version> <spring-boot-maven-plugin.version>2.0.1.RELEASE</spring-boot-maven-plugin.version> <maven-deploy-plugin.version>2.8.2</maven-deploy-plugin.version> <maven-gpg-plugin.version>1.5</maven-gpg-plugin.version> <protobuf.version>3.14.0</protobuf.version> </properties> <modules> <module>forest-core</module> <module>forest-spring</module> <module>forest-spring-boot-starter</module> <module>forest-mock</module> </modules> <dependencies> <!-- mockito --> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>${mockito.version}</version> <scope>test</scope> </dependency> <!-- junit --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>${junit.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> <version>${xercesImpl.version}</version> <scope>provided</scope> </dependency> <!-- mock server --> <dependency> <groupId>org.mock-server</groupId> <artifactId>mockserver-netty</artifactId> <version>${mockserver-netty.version}</version> <scope>provided</scope> <exclusions> <exclusion> <groupId>xerces</groupId> <artifactId>xercesImpl</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-buffer</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-codec</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-codec-http</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-codec-socks</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-common</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-handler</artifactId> </exclusion> <exclusion> <groupId>io.netty</groupId> <artifactId>netty-transport</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.github.dreamhead</groupId> <artifactId>moco-core</artifactId> <version>${moco-core.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>3.13.2</version> <scope>test</scope> </dependency> <dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>mockwebserver</artifactId> <version>3.14.9</version> <scope>test</scope> </dependency> <dependency> <groupId>cn.hutool</groupId> <artifactId>hutool-all</artifactId> <version>5.5.2</version> <scope>test</scope> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> <version>${spring-boot.version}</version> <exclusions> <exclusion> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-logging-juli</artifactId> </exclusion> <!-- use ctrip modified version instead --> <exclusion> <groupId>org.apache.tomcat.embed</groupId> <artifactId>tomcat-embed-core</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <version>${spring-boot-starter-test.version}</version> <scope>test</scope> </dependency> <dependency> <!-- Import dependency management from Spring Boot --> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-dependencies</artifactId> <version>${spring-boot.version}</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>${maven-compiler-plugin.version}</version> <inherited>true</inherited> <executions> <execution> <id>main-compile</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> <configuration> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> <encoding>UTF-8</encoding> </configuration> </execution> <execution> <id>test-compile</id> <phase>test-compile</phase> <goals> <goal>testCompile</goal> </goals> <configuration> <fork>true</fork> <compilerArgs> <arg>-parameters</arg> </compilerArgs> <source>${maven.compiler.source}</source> <target>${maven.compiler.target}</target> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>cobertura-maven-plugin</artifactId> <version>${cobertura-maven-plugin.version}</version> <configuration> <formats> <format>html</format> <format>xml</format> </formats> <check /> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>${maven-deploy-plugin.version}</version> </plugin> </plugins> </build> <distributionManagement> <snapshotRepository> <id>oss-snapshot</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> </snapshotRepository> <repository> <id>oss-release</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> </repository> </distributionManagement> <profiles> <profile> <id>disable-javadoc-doclint</id> <activation> <jdk>[1.8,)</jdk> </activation> <properties> <additionalparam>-Xdoclint:none</additionalparam> </properties> </profile> <profile> <id>oss-release</id> <build> <plugins> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>${nexus-staging-maven-plugin.version}</version> <extensions>true</extensions> <configuration> <serverId>oss-snapshot</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>false</autoReleaseAfterClose> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>${maven-source-plugin.version}</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>${maven-javadoc-plugin.version}</version> <executions> <execution> <id>attach-javadocs</id> <phase>package</phase> <goals> <goal>jar</goal> </goals> <configuration> <encoding>UTF-8</encoding> <charset>UTF-8</charset> <docencoding>UTF-8</docencoding> <!-- <additionalJOption>-Xdoclint:none</additionalJOption>--> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>${maven-gpg-plugin.version}</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> </project> ``` 你只是在properties中定义了,但是没有在`<dependencies></dependencies>`中定义依赖啊 ### 重现步骤(如果有请写完整) ### 报错信息/完整请求日志(如果没有请求日志请把开关打开) ### 接口定义(必要时请提供)
评论 (
3
)
登录
后才可以发表评论
状态
已完成
待办的
进行中
已完成
已关闭
负责人
未设置
标签
未设置
标签管理
里程碑
未关联里程碑
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (
-
)
标签 (
-
)
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
参与者(2)
Java
1
https://gitee.com/dromara/forest.git
git@gitee.com:dromara/forest.git
dromara
forest
forest
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
评论
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册