Java 注释处理器';org.hibernate.jpamodelgen.jpametamodelenticyprocessor';找不到
我试图在我的spring boot应用程序中实现hibernate元模型。我越来越Java 注释处理器';org.hibernate.jpamodelgen.jpametamodelenticyprocessor';找不到,java,hibernate,spring-boot,gradle,jpamodelgen,Java,Hibernate,Spring Boot,Gradle,Jpamodelgen,我试图在我的spring boot应用程序中实现hibernate元模型。我越来越 Annotation processor 'org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor' not found 在构建应用程序时出现上述错误 我的Gradle配置和详细错误如下所示 buildscript { ext { springBootVersion = '2.2.6.RELEASE' } reposit
Annotation processor 'org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor' not found
在构建应用程序时出现上述错误
我的Gradle配置和详细错误如下所示
buildscript {
ext {
springBootVersion = '2.2.6.RELEASE'
}
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath('se.transmode.gradle:gradle-docker:1.2')
classpath("gradle.plugin.at.comm_unity.gradle.plugins:jpamodelgen-plugin:1.1.4")
}
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
apply plugin: "jacoco"
apply from: 'docker.gradle'
apply plugin: "at.comm_unity.gradle.plugins.jpamodelgen"
sourceCompatibility = 1.8
bootJar {
launchScript()
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.springframework.boot:spring-boot-starter-quartz'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'io.jsonwebtoken:jjwt-api:0.10.5'
implementation 'org.flywaydb:flyway-core'
compileOnly 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.h2database:h2'
runtimeOnly 'mysql:mysql-connector-java'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.10.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.10.5'
annotationProcessor 'org.projectlombok:lombok'
annotationProcessor('org.hibernate:hibernate-jpamodelgen:5.4.14.Final')
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.springframework.security:spring-security-test'
}
test.reports.junitXml.setDestination(file("${buildDir}/test-results"))
jacocoTestReport {
reports {
html.destination file("${buildDir}/jacocoHtml")
}
}
jpaModelgen {
library = "org.hibernate:hibernate-jpamodelgen"
jpaModelgenSourcesDir="src/jpaModelgen/java"
}
sourceSets {
main {
java {
srcDirs += "src/jpaModelgen/java"
}
}
}
使用/gradlew build--info
运行应用程序时,我发现以下错误
我正在使用spring boot 2.2.6,hibernate jpamodelgen是否有任何版本兼容性。从下面的url获得了答案,这将解决我的问题