简体   繁体   English

搜索普通 jar 的 Spring Boot 项目

[英]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.

相关问题 普通Java项目中的Spring Boot库用法 - Spring Boot library usage in plain Java project Spring 引导项目 jar 作为另一个项目中的依赖项 - Spring Boot project jar as dependency in another project 创建Jar of Maven Spring Boot项目 - Create Jar of maven spring boot project Spring Boot war或jar for rest api project - Spring Boot war or jar for rest api project 无法在Spring Boot项目中使用自定义jar - unable to use custom jar in spring boot project 添加外部 jar 到 Spring 引导 maven 项目 - add external jar to Spring boot maven project 将Spring Web项目打包到没有Spring Boot的jar(uber-jar)中(非spring-boot项目) - Package Spring web project into jar (uber-jar) without spring boot (non spring-boot project) Spring 引导 gradle 项目部署到 heroku 使用 bitbucket 管道给出错误没有主要清单属性,在 build/libs/app-SNAPSHOT-plain.jar - Spring boot gradle project deployed to heroku using bitbucket pipeline gives error no main manifest attribute, in build/libs/app-SNAPSHOT-plain.jar 将一个 spring-boot 项目作为 jar 添加到另一个项目中 - Add one spring-boot project as a jar to another project 如何从spring boot项目创建jar,我们要在另一个spring boot应用中使用的jar? - how to create jar from spring boot project , this jar we want to use in another spring boot app?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM