Use as dependency to generate automatically build from a Spring Project #1423
Replies: 1 comment 1 reply
-
We already have the SchemaSpy.properties that is read automatically, else it can be specified with The it's a matter of when and how to run schemaspy, if docker you'll need at least two mounts, 1 for the configFile and one for output. Depending on how you manage the database and it's setup you could either build with each build or you could build each time the database is changed. There is also the possibility of running it just based of script like I would try to avoid adding SchemaSpy to you classpath, unless you want to be able to generate new reports during runtime. Else I would keep it of the classpath just to avoid conflict with versions or accidentally creating a runtime dependency on SchemaSpy. |
Beta Was this translation helpful? Give feedback.
-
Hello friends,
I want to put on a personal site the output generated with this amazing schemaspy tool, but I have doubts how to do it in a simple way. I already have it with a dockerfile in Jenkins using Envinject and also Parametrized Trigger plugin. But this requires me more configuration work due to the fact that I want to do it in multiple projects.
I would like to create a utility class that I don't know if it already exists to run the schemaspy arguments in a java project taking the arguments from the .properties file, so that I only have to take the generated output and deploy it to the site where I will host the results for collaborators to see.
I was planning something like code below.
And after use
I'm searching for advices, I'm nobbie on this, so I dont know what is the best alternative to generate this on multiple projects.
Regards,
Beta Was this translation helpful? Give feedback.
All reactions