[英]Spring Boot project searching plain jar
I am upgrading current system to spring boot 2.5.2.我正在将当前系统升级到 spring boot 2.5.2。 I have custom spring boot starter which I installed to my local maven repository.
我有自定义的 spring boot starter,我安装到我的本地 maven 存储库。 But its generating plain jar.
但它生成普通罐子。 I installed plain jar but the project I am gonna use this starter looking for normal jar.
我安装了普通 jar,但我将使用这个启动器寻找普通 jar 的项目。 When I disable plain jar and install normal jar, its looking plain jar.
当我禁用普通 jar 并安装普通 jar 时,它看起来很普通。 Is there any way to install both or is there any other way to look only plain jar or normal jar.
有没有什么方法可以同时安装两者,或者有没有其他方法可以只查看普通 jar 或普通 jar。
Java version is 11, Gradle version is 6.8.3, spring boot version is 2.5.2, spring boot dependency management version is 1.0.8 Java版本为11,Gradle版本为6.8.3,spring boot版本为2.5.2,spring boot依赖管理版本为1.0.8
In the custom starter one of the module added as a "api project" when I change that to "compile project" in build.gradle it worked.在自定义启动器中,当我在 build.gradle 中将其更改为“编译项目”时,其中一个模块添加为“api 项目”,它起作用了。 Because of "api project" when it generating jar and pom file it was adding classifier as a "plain" and it was searching plain-jar.
由于“api 项目”在生成 jar 和 pom 文件时将分类器添加为“普通”并且正在搜索普通 jar。 After change it, everything worked for me.
更改后,一切都对我有用。
sorry, I can't comment.对不起,我不能发表评论。 I can't understand your mean.
我不明白你的意思。
depend on your message, I know you have write a starter that install to local maven, maybe like mvn install
, but I don't know what is plain jar, what is normal jar.取决于你的消息,我知道你已经写了一个安装到本地 maven 的启动器,可能像
mvn install
,但我不知道什么是普通 jar,什么是普通 jar。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.