File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Using Maven in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Reply Bookmark "Using Maven in Eclipse" Watch "Using Maven in Eclipse" New topic
Author

Using Maven in Eclipse

Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
Hi everyone,

I've created a new Java Maven Project on Eclipse and I added a DBUnit dependency to my POM, like this:

<dependency>
<groupId>dbunit</groupId>
<artifactId>dbunit</artifactId>
<version>2.1</version>
<scope>test</scope>
</dependency>

Then I ran mvn install from my project's home directory.

When I create a new Class is my src.test.java directory and try to extend DBTestCase, that class is not found.

Isn't it that simple?

Thanks in advance for any help.


J2EE Architect/Developer
Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
Alright, my colleague that I don't even like helped me out. I needed to run mvn eclipse:myeclipse from the command line and then refresh my Eclipse project, and it worked.

Thanks anyway.
 
 
subject: Using Maven in Eclipse
 
Threads others viewed
Unable to create one single jar file in maven with dependencies included inside
How to get Maven to include "persistence.xml" into a web app??
Spring Major version '3' expected
Problem with Enums
Need com.thoughtworks.xstream.annotations
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture