inlong icon indicating copy to clipboard operation
inlong copied to clipboard

[Feature][Tool] Auto-add the JDBC jar to the Manager-web module with inlong-dev-toolkit.sh

Open featzhang opened this issue 2 years ago • 3 comments

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

featzhang avatar Mar 30 '23 06:03 featzhang

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar May 30 '23 01:05 github-actions[bot]

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

hongyuzhou avatar Jul 11 '23 13:07 hongyuzhou

This issue is stale because it has been open for 60 days with no activity.

github-actions[bot] avatar Sep 11 '23 01:09 github-actions[bot]