Search code examples
hibernatespringspring-mvcmaven-3m2eclipse

Spring, Maven Dependency and Jar Issues


I had made Spring MVC and Hibernate application by taking reference from here

on the office system(running Ubuntu). It's running fine and showing no problems.

When I copy and save the application on my home system (running windows xp), error shown that some jars failed to transfer.

Also, this dependecy

<dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>3.3.2.GA</version>
        <type>jar</type>
        <scope>compile</scope>
    </dependency>

doesn't work on my xp system.

When I changes the hibernate version to 3.6.x, jars successfully transferred.

I am running maven 3 and m2eclipse on both systems.

Kindly Advice..


Solution

  • You could do mvn install:install to install the jar manually into the .m2 directory . When you try to package the app , you'll see a build failure with a recommendation that you do an mvn install:install . Download the the jar manually from here , do a mvn install:install followed by mvn eclipse:eclipse and refresh the workspace .