[Feature][Tool] Auto-add the JDBC jar to the Manager-web module with inlong-dev-toolkit.sh
Description
When building the InLong local development environment, the user needs to add a JDBC jar to the Manager-web module manually, otherwise will throw the exception:
at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:89) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:151) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:145) ~[mybatis-3.5.9.jar:3.5.9]
at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:140) ~[mybatis-3.5.9.jar:3.5.9]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_292]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_292]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_292]
at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_292]
at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:426) ~[mybatis-spring-2.0.5.jar:2.0.5]
... 60 more
Caused by: java.sql.SQLException: com.mysql.cj.jdbc.Driver
at com.alibaba.druid.util.JdbcUtils.createDriver(JdbcUtils.java:679) ~[druid-1.2.6.jar:1.2.6]
at com.alibaba.druid.pool.DruidDataSource.resolveDriver(DruidDataSource.java:1214) ~[druid-1.2.6.jar:1.2.6]
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:883) ~[druid-1.2.6.jar:1.2.6]
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1393) ~[druid-1.2.6.jar:1.2.6]
at com.alibaba.druid.pool.DruidDataSource.getConnection(DruidDataSource.java:1389) ~[druid-1.2.6.jar:1.2.6]
To improve development efficiency, automate this process:
In macOS and Linux, detect whether the idea script is installed in the environment, use the command to modify the module's dependencies, and add the JDBC jar to it
Use case
No response
Are you willing to submit PR?
- [X] Yes, I am willing to submit a PR!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
This issue is stale because it has been open for 60 days with no activity.
Is there any progress on this issue? I'm a new user of InLong, and just ran into this problem today. Manually modify the pom to solve this problem
This issue is stale because it has been open for 60 days with no activity.