I have added test scope tag above those dependencies. But i still get the same error "Embedded error: [ibm][db2][jcc][10333][11649] No license was found. An appropria te license file db2jcc_license_*.jar must be provided in the CLASSPATH setting." db2jcc_licence_cu.jar is renamed as db2jcc_licence_cu9.jar in my Maven2 Dependencies when i look at eclipse. The jars' names are changed when "mvn test" is executed? I think db2jcc_licence_cu9.jar is enough to be used as db2jcc_license_*.jar. Can anybody have an idea to fix this error? Please help.....
On 20/06/07, Thorsten Heit <[EMAIL PROTECTED]> wrote:
Hi, > I use Eclipse IDE to develop this project with Maven plugin. I have > checked the name of these jars in Maven2 Dependencies. Their names are > db2jcc-9.jar anad db2jcc_licence-9.jar, respectively. I can not find any support > for DB2. > > Can anyone help me??? You should have at least the following dependencies in your pom.xml: <dependency> <groupId>com.ibm.db2</groupId> <artifactId>db2jcc</artifactId> <version>9</version> </dependency> <dependency> <groupId>com.ibm.db2</groupId> <artifactId>db2jcc_license_cu</artifactId> <version>9</version> </dependency> If you only need the jars in test classes, add <scope>test</scope> in the above dependencies. I'd assume that this should work... HTH Thorsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
