Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IntellijJ, I have these Jars

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I'm trying to create a new application using IntelliJ 7, this project uses Spring and Hibernate.
When I'm trying to create it, IntelliJ tries to connect to Maven repositories to download Spring and Hibernate Jars.
I don't need this since I already have these Jars.
I didn't figured out how to make IntelliJ uses my Jars, any help?
Thank for your time.
 
Dmitry Jemerov
author
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello John,

In the technologies selection page of the New Project Wizard, there's a "Change..." button at the bottom. It allows you to pick the .jar files from your local disk instead of downloading them from a repository.
 
Taras Tielkes
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can simply create a project without Spring and/or Hibernate facets.

Then:
1) Add your specific spring/hibernate JARs using the regular "Project Settings" dialog.
2) Add Spring and Hibernate facets to the relevant modules. (Using the context menu for nodes in the module tree in the "Project Settings" dialog)

The current support for downloading spring/hibernate JARs at project creation time is quite simplistic, perhaps IDEA 8.0 will provide something more powerful (Maven based)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic