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

Issue with persistence generation, it still using h2 database instead Postgres #2

Open
steelcorsy opened this issue Nov 18, 2016 · 2 comments

Comments

@steelcorsy
Copy link

steelcorsy commented Nov 18, 2016

Hi! In first place, thanks for the wonderful tool for generate jsf code.

In second place, sorry, English is not my native language

I am having issues by generating code, i am editting my pom.xml to use with postgres database, maven jdbc drivers are installed correctly, connection to database ok, all is ok.

Project is being generated by using h2 database, pom.xml is already edited for use postgres connection, DS is not being created by last script.

I am doing:

1.- mvn com.jaxio.celerio:bootstrap-maven-plugin:4.0.12:bootstrap

I choose 4 option, empty project.
I am deleting sql folder to avoid script executions problems.
I edit my pom.xml (look uploaded file)
I had installed jdbc drivers (maven postgres jar is same as wildfly deployed jar)

2.- mvn -Pmetadata generate-sources
Printed a "Write metadata.xml file to src/main/config/celerio-maven-plugin/metadata.xml" type message

3.- mvn -Pgen generate-sources

All is ok, then, i got a nice project using h2 database instead postgres

pom.txt

persistence.txt

What is wrong? Do you can post a example about by using real database connections?

@diogenessantoss
Copy link

Hi @steelcorsy, I got able to execute my project with postgresql.
See my files attached and any doubt you can ask me. I'll try to perform the same way you did, to find your mistake.

persistence.txt
pom.txt

@steelcorsy
Copy link
Author

Thank you, I am so new by using this tool, I have developments by reusing one above another project with JSF but I want to build a new hybrid j2ee template with this framework, thanks for the support

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

No branches or pull requests

2 participants