• 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 - specify a dependency only for unit-test

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi!

I ask myself, if it is possible with maven to specify a dependency (or classpath) only for the unit tests and not for compiling the project sources.

Now, perhaps you wonder, why I need this.
Our project is splittet into serveal layers. And for each layer we have a eclipse-project and a own pom. For the unit test, we need serveral common classes (usually helpers and dummy-objects) and I won't that these classes are visible while compiling the project.

any idea?

Stefan
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you ever get an answer to this question? I have a similar one.

--matthew
reply
    Bookmark Topic Watch Topic
  • New Topic