-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
Description
Issue
The migration of the test-project/spring-boot-jpa to quarkus is not complete using the existing rewrite-spring-to-quarkus recipes
rewrite . -r org.openrewrite.quarkus.spring.SpringBootToQuarkus \
--jar org.openrewrite.recipe:rewrite-spring-to-quarkus:0.6.1,org.openrewrite.recipe:rewrite-java-dependencies:1.52.0 \
-d false
// Next
mvn quarkus:dev
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< com.example:spring-boot-jpa >---------------------
[INFO] Building spring-boot-jpa 0.0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The artifact io.quarkus:quarkus-junit5:jar:3.32.3 has been relocated to io.quarkus:quarkus-junit:jar:3.32.3: Update the artifactId in your project build file. Refer to https://github.com/quarkusio/quarkus/wiki/Migration-Guide-3.31 for more information.
[INFO]
[INFO] --- quarkus:3.32.3:dev (default-cli) @ spring-boot-jpa ---
[INFO] Invoking resources:3.3.1:resources (default-resources) @ spring-boot-jpa
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Invoking quarkus:3.32.3:generate-code (default) @ spring-boot-jpa
[INFO] Invoking compiler:3.13.0:compile (default-compile) @ spring-boot-jpa
[INFO] Recompiling the module because of changed source code.
[WARNING] File encoding has not been set, using platform encoding UTF-8, i.e. build is platform dependent!
[INFO] Compiling 7 source files with javac [debug target 1.8] to target/classes
[INFO] -------------------------------------------------------------
[WARNING] COMPILATION WARNING :
[INFO] -------------------------------------------------------------
[WARNING] bootstrap class path is not set in conjunction with -source 8
not setting the bootstrap class path may lead to class files that cannot run on JDK 8
--release 8 is recommended instead of -source 8 -target 1.8 because it sets the bootstrap class path automatically
[WARNING] source value 8 is obsolete and will be removed in a future release
[WARNING] target value 8 is obsolete and will be removed in a future release
[WARNING] To suppress warnings about obsolete options, use -Xlint:-options.
[INFO] 4 warnings
[INFO] -------------------------------------------------------------
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/config/AuditConfiguration.java:[5,39] package org.springframework.data.domain does not exist
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/config/AuditConfiguration.java:[6,54] package org.springframework.data.jpa.repository.config does not exist
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/config/AuditConfiguration.java:[9,2] cannot find symbol
symbol: class EnableJpaAuditing
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/config/AuditConfiguration.java:[14,12] cannot find symbol
symbol: class AuditorAware
location: class com.example.audit.config.AuditConfiguration
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/config/AuditorAwareImpl.java:[5,39] package org.springframework.data.domain does not exist
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/config/AuditorAwareImpl.java:[7,42] cannot find symbol
symbol: class AuditorAware
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/repository/UserRepository.java:[3,47] package org.springframework.data.jpa.repository does not exist
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/repository/UserRepository.java:[8,41] cannot find symbol
symbol: class JpaRepository
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[5,43] package org.springframework.data.annotation does not exist
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[6,43] package org.springframework.data.annotation does not exist
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[7,43] package org.springframework.data.annotation does not exist
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[8,43] package org.springframework.data.annotation does not exist
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[9,51] package org.springframework.data.jpa.domain.support does not exist
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[26,20] type jakarta.ws.rs.core.Response does not take parameters
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[33,20] type jakarta.ws.rs.core.Response does not take parameters
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[40,20] type jakarta.ws.rs.core.Response does not take parameters
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[54,20] type jakarta.ws.rs.core.Response does not take parameters
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[16,18] cannot find symbol
symbol: class AuditingEntityListener
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[19,6] cannot find symbol
symbol: class CreatedDate
location: class com.example.audit.entity.AuditorEntity
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[23,6] cannot find symbol
symbol: class CreatedBy
location: class com.example.audit.entity.AuditorEntity
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[27,6] cannot find symbol
symbol: class LastModifiedDate
location: class com.example.audit.entity.AuditorEntity
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/entity/AuditorEntity.java:[31,6] cannot find symbol
symbol: class LastModifiedBy
location: class com.example.audit.entity.AuditorEntity
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[26,39] annotation @jakarta.ws.rs.PathParam is missing a default value for the element 'value'
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[40,38] annotation @jakarta.ws.rs.PathParam is missing a default value for the element 'value'
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[54,38] annotation @jakarta.ws.rs.PathParam is missing a default value for the element 'value'
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/config/AuditorAwareImpl.java:[9,5] method does not override or implement a method from a supertype
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[21,30] cannot find symbol
symbol: method findAll()
location: variable userRepository of type com.example.audit.repository.UserRepository
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[27,30] cannot find symbol
symbol: method findById(java.lang.Long)
location: variable userRepository of type com.example.audit.repository.UserRepository
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[34,36] cannot find symbol
symbol: method save(com.example.audit.entity.User)
location: variable userRepository of type com.example.audit.repository.UserRepository
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[41,30] cannot find symbol
symbol: method findById(java.lang.Long)
location: variable userRepository of type com.example.audit.repository.UserRepository
[ERROR] /Users/cmoullia/code/quarkus/rewrite-demo/rewrite-client/test-project/spring-boot-jpa/src/main/java/com/example/audit/controller/UserController.java:[55,30] cannot find symbol
symbol: method findById(java.lang.Long)
location: variable userRepository of type com.example.audit.repository.UserRepository
[INFO] 31 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.553 s
[INFO] Finished at: 2026-03-17T11:43:52+01:00
[INFO] ------------------------------------------------------------------------
Reactions are currently unavailable