• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

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: 28812
212
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.
 
Oh. Hi guys! Look at this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic