• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

maven dependency runtime

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I've got a problem when running a test with maven.

In my project I connecto to an XML Database (exist). For this I need xmlrcp in order to send the message to the DB.
In my pom I have this as dependencies:


and it imports the jar files properly. The compilation works fine but the problem comes in runtime when performing thes test to the databse. This is the error that I am getting:


So the class is not exported and used in runtime. Do you know any way to fix this? It is driving me crazy and I have no ideas anymore.

Thanks in advance.
 
Saloon Keeper
Posts: 27876
197
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just as a casual guess, I'd suspect that you need to change the scope of the xmlrpc jar. Runtime scope isn't the same as test scope, and if the jar isn't pulled in for test scope, you'd have a problem for sure.
 
reply
    Bookmark Topic Watch Topic
  • New Topic