Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6123743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:03:08+00:00 2026-05-23T16:03:08+00:00

I’m doing some tests with Spring 2.0.8. I’ve the following problem, all the source

  • 0

I’m doing some tests with Spring 2.0.8. I’ve the following problem, all the source code is downloaded with the “spring” artifact, but is not attached by mvn eclipse:eclipse to the other artifacts, for instance for “spring-aop” artifact, I can’t access source from Eclipse, despite the aop package is present in spring-2.0.8-sources.jar.

<properties>
    <org.springframework.version>2.0.8</org.springframework.version>
</properties>
<dependencies>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-aop</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>
</dependencies>

If I add the spring-2.0.8-sources.jar manually to spring-aop in Java Build Path, then I can navigate the source code from Eclipse, but I was wondering how to tell Maven to do that, since every time I add or change a library, I’d have to repeat the attach source operation.

UPDATE: My original fear of having the configuration overwritten proved wrong. Both m2eclipse and “mvn eclipse:eclipse” don’t overwrite manual changes to the configuration. I am still interested to know if it’s possible to tell Maven to attach sources from another dependency. I’ve also a Nexus installation, if that can help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:03:09+00:00Added an answer on May 23, 2026 at 4:03 pm

    As @Will Iverson says, recent m2eclipse plugins can download sources automatically, either ahead-of-time, or on-demand. The m2eclipse has been able to do this for quite a long time.

    If this is not working:

    • check you have an up-to-date plugin (and an up-to-date Eclipse!),
    • look at the way that the plugin is configured,
    • check Eclipse’s effective web proxy configuration,
    • check ~/.m2/settings.xml to see if you are using a maven proxy repository,
    • if you are using a proxy repository, check the repository configs to see if it is serving source JARs.

    If I understand, when I add a dependency, you’re suggesting that I should do m2Maven > Update Dependencies, m2Maven > Download JavaDoc, m2Maven > Download Sources, and this operation, despite being more inconvenient of calling “mvn eclipse:eclipse”, will preserve my manual changes, instead of overwriting them.

    1. If you are using m2eclipse, you should need to use “mvn eclipse:eclipse”. Instead you just import the maven project using (for example) File > Import > Maven > Existing Maven Project.

    2. I don’t think this will destroy your existing hand-created project settings … assuming that you haven’t accidentally checked them into SCM or something.

    3. If you are concerned about the possibility of losing settings, make a backup copy of your workspace; e.g. cp -r ... or tar cf ...

    4. Maven allows you to import direct from SCM in one step. That’s surely more convenient than mvn eclipse:eclipse … and it gives you the benefits of the m2eclipse plugin.


    The problem, I think is that spring sources are present and they are served, but they are all in one dependency, other dependencies don’t have source attachments, however their sources is in the “spring” dependency.

    Ah. I see.

    I don’t think there’s much you (or m2eclipse) can do about that. That’s arguably a bug in the Spring 2.0.x POM files or in the dependent POM files. Certainly, later versions of Spring (2.5.x and 3.0.x) don’t have that problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.