Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

maven dependency runtime

Posts: 15
  • Mark post as helpful
  • send pies
  • 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: 22498
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • 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.
Lasagna is spaghetti flvored cake. Just like this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic