JUnit test fails with java.lang.ClassNotFoundException: com.mysql.jdbc.Driver on Tycho environment
问题 I have a very strange situation. I have a set of eclipse plugin projects which I am using tycho and maven for building them. I used JDBC driver in one of the projects and I have a test plugin to test this project. Since the com.mysql.jdbc plugin was not available in the eclipse p2 repository ( and we don't have our own p2), I imported the jdbc plugin and created an OSGi plugin and add the dependency to my local plugin. I have multiple eclipse workspaces sat up. Only in the very first