facebook

Adding/removing Spring capabilities

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #239333 Reply

    Hi,

    I am creating a new Web Project. I want to add Spring support to the project, so I added ‘Spring Capabilities’ to the project, and selected the Core Library, and the option to copy the jars to WEB-INF/lib directory. The problem is that after that, I can’t change what Spring Libraries I want copied to the lib directory, I can only do that the first time I add Spring capabilities.

    Basically, I want a way to add/remove Spring libraries as I see fit, and have the option to select which library set is to be copied to WEB-INF/lib. For example, I wouldn’t want to have ‘Spring Testing Libraries’ copied to the war file, but I want them referenced on my project for testing.

    I don’t think there’s currently a way to do this.

    System:
    Windows XP SP2

    Eclipse 3.1.1
    Build id: M20050929-0840

    MyEclipse: 4.0.2 GA
    Build id: 20051010-4.0.2-GA

    #239478 Reply

    Riyad Kalla
    Member

    javageek,
    You should be able to navigate to your Build Path settings, then under Libraries, click Add Library, and then drill downt o MyEclipse LIbraries, there you should be able to add/remove the Spring libraries as yous ee fit. Let me know if you run into any hassle.

    #239619 Reply

    Yes, I can do that, but even though I already added ‘Spring Core Libraries’ to my WEB-INF/lib path (because I want that library distributed with my .war), when I select ‘Spring Testing Libraries’ MyEclipse also selects the core libraries, which means that now I have 2 copies of spring’s core jars in my project, one inside my lib/ path, and one referenced.

    I’m not sure what are the implications of this, though. I might not be affected at all, but it doesn’t look right. 😉

    #239640 Reply

    Riyad Kalla
    Member

    I’m not sure what are the implications of this, though. I might not be affected at all, but it doesn’t look right. 😉

    It is alright for now, the redundancy is just at runtime, if it really bothered you, you could just remove the JARs from your /lib directory from the lib path, but they will still be deployed.

    #243720 Reply

    persist
    Member

    I have just been checking out Lombos and SpringIDE. It has me thinking that MyEclipse is a long way off providing the support that they are for free. I have run into numerous errors that were based in the MyEclipse ide which is totally unacceptable. Additionally the memory footprint of this product is terrible. Take a look at it. It installs easily and is clean and light.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Adding/removing Spring capabilities

You must be logged in to post in the forum log in