Eclipse Maven, codegen @DataObject(generateConverter=true) doesn't work
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reviewing the pom.xml annotation-processor configuration and the package-info.java declaration for com.vertx.entity, then run the Maven build using the reported Vert.x 3.5.1 setup. Check whether CodeGenProcessor processes SysLog and whether the expected entity converter is generated; done means the converter appears after a clean compile.
Written by the indexing model from the issue text.
Description
Hi, thank you for seeing this little problem!
environment: Eclipse neon, Maven, jdk8
I'm using Vertx 3.5.1 and I already done the work below:
1.add plugin CodeGenProcessor in the file pom.xml
maven-compiler-plugin
3.1
1.8
1.8
UTF8
false
default-compile
io.vertx.codegen.CodeGenProcessor
-AoutputDirectory=${basedir}/src/main/java
2.add vertx-codegen jar in the file pom.xml
io.vertx
vertx-codegen
3.5.1
processor
provided
3.add @DataObject(generateConverter=true) to the entity class:
@DataObject(generateConverter=true)
public class SysLog{
……
}
4.add package-info.java file at the entity's path
@ModuleGen(name = "entity", groupPackage="com.vertx.entity")
package com.vertx.entity;
import io.vertx.codegen.annotations.ModuleGen;
but still not entity converter no matter how many times I edit the entity file or compiled the whole project.
Please check this problem.
- Dominant language
- Java
- Stars
- 111
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-vertx/vertx-codegen
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
eclipse-vertx/vertx-codegen#361 ·
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
eclipse-vertx/vertx-codegen#340 · 11 comments · 2 reactions ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
eclipse-vertx/vertx-codegen#335 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
eclipse-vertx/vertx-codegen#320 · 4 comments ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
eclipse-vertx/vertx-codegen#319 · 1 comment · 1 reaction ·
All issues in eclipse-vertx/vertx-codegen
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
java-native-access/jna#1740 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
portfolio-performance/portfolio#6119 ·
Maintainers usually reply within 8 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
jenkinsci/ec2-plugin#2041 ·
-
L: github:actions L: php:composer
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
dependabot/dependabot-core#16493 ·
Maintainers usually reply within 1 day