Tip: How to Run MyBatis Generator in Eclipse Without the Plugin #1479
leratc
started this conversation in
Show and tell
Replies: 2 comments
-
|
This is a good tip! Can you explain what you mean when you say your plugin doesn't work? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I failed to install the eclipse plugin in my Last updated eclipse. No icon plugin appears. The maven approach seams better to me because i can use vscode or intellij ide the same way sarting from the 2.0 version snapshot with javaMergeEnabled option to true. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Since my eclipse plugin does not work, I found a maven runner solution that works with any IDE.
In Eclipse, create a Maven runner named
mybatisRunnerwith:${workspace_loc:/myproject}mbg.config=${selected_resource_name}In
pom.xml, configure the plugin like this:Then while editing an MBG file, right-click and run
mybatisRunnerto execute the MyBatis Generator.All my MBG files are located in src/main/db/mybatis/mybatisGenerator folder.
Beta Was this translation helpful? Give feedback.
All reactions