在构建主项目时,如何运行子模块插件目标 我想在构建项目后运行spring-boot插件,但是spring-boot插件只添加到了子模块中,有什么解决方案吗?一如既往的感谢! main-project
pom.xml
spring-boot plugin not added in the main pom.xml
module1
pom.xml
module2
pom.xml
depend on module1
spring-boot plugin added 当我运行该命令
我正在尝试创建一个多模块spring引导项目(对Struts2 2/Ib提斯项目的重写),我希望将其描述如下:
-- Parent project. //contains <properties> that should be shared through the child modules
|- model //Contains ONLY Hibernate entities
|- dataaccess //uses 'model' but has dataManagers and dataRepositories with Spring @Autowire
我在用坏的jlink插件打包我的项目时遇到了麻烦。项目包含Spring Boot,它通过FXVeawer与JavaFX一起工作。Spring Data应用程序与数据库一起工作。
我的build.gradle
plugins {
id 'org.springframework.boot' version '2.6.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'application'
id
我正在Spring中开发一个多模块项目,其中的项目结构如下:
com.app.parent <- parent pom with version numbers and common dependencies (POM)
com.app.core <- repository and service layer, models, DTOs (JAR)
com.app.rest <- rest API (WAR)
com.app.soap <- soap API (WAR)
用于父项目的文件是:
<artifactId>app-parent&
我创建了一个由控制器、服务、存储库三个模块组成的弹簧引导级多模块项目.主文件位于控制器模块中,命名为MySpringBootApplication.
我可以构建这个项目(使用gradle构建)并获得jar文件。但是,在命令行中启动这个jar之后,我接受了下一个错误:
Error: Could not find or load main class com.epam.esm.config.MySpringBootApplication Caused by: java.lang.ClassNotFoundException: com.epam.esm.config.MySpringBootAppl
我正在尝试建立多模块项目。
RootProject设置
rootProject.name = 'Abc'
include 'catalog'
include 'catalog-common'
根项目Abc/build.gradle
plugins {
id 'org.springframework.boot' version '2.7.3' apply false
id 'io.spring.dependency-management' version '1.0.13.RE
我正在尝试构建一个Gradle文件并获得错误的Build file '.../build.gradle' is not part of the build defined by settings file '.../settings.gradle'. If this is an unrelated build, it must have it's own settings file.
这是我的build.gradle:
buildscript {
repositories {
mavenCentral()
}
de
我有两个项目,第一个项目依赖于javassist,第二个项目依赖于第一个和spring-boot-starter-thymeleaf。 构建gradle类似于下面的第一个项目 plugins {
id 'org.springframework.boot' version '2.3.3.RELEASE'
id 'java'
}
group 'org.example'
version '1.0-SNAPSHOT'
sourceCompatibility = 1.8
repositories {