Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't re-build project without Maven "clean" phase #44

Open
wodzuu opened this issue May 15, 2024 · 1 comment
Open

Can't re-build project without Maven "clean" phase #44

wodzuu opened this issue May 15, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@wodzuu
Copy link

wodzuu commented May 15, 2024

How to reproduce

  1. run mvn clean package
  2. run mvn package

Expected behaviour
The second command succeeds

Actual behaviour
The command execution fails with error message

[ERROR] Failed to execute goal com.ethlo.persistence.tools:eclipselink-maven-plugin:3.0.2:modelgen (modelgen) on project security: Processing failed: 
[ERROR] Note: Hibernate JPA 2 Static-Metamodel Generator 6.2.0.CR4
[ERROR] warning: Unable to parse persistence.xml: Unable to perform unmarshalling at line number 0 and column 0. Message: null
[ERROR] error: Problem with Filer: Attempt to recreate a file for type com.my.Entity_

Workaround
Include the clean phase each time you build the project

@ethlo ethlo added this to the 3.0.3 milestone May 15, 2024
@ethlo ethlo self-assigned this May 15, 2024
@ethlo ethlo added the bug label May 15, 2024
@ethlo
Copy link
Owner

ethlo commented May 28, 2024

Unfortunately this seems to be a bug/limitation in the Hibernate library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants