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

  • Home
  • SEARCH
  • 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 1032413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:04:23+00:00 2026-05-16T14:04:23+00:00

Something bother me a lot… On a big project with many dependencies, some of

  • 0

Something bother me a lot…
On a big project with many dependencies, some of them are set as SNAPSHOT in Maven2.

The matter is that it seems i can’t get the sources through Eclipse without loading the project or fixing the dependency to the last release.
For debugging, it’s really annoying me…

EDIT

This is what i get in eclipse maven console:

26/08/10 11:31:46 CEST: Downloading http://repo-maven/archiva/repository/snapshots/com/blabla/1.1-SNAPSHOT/blabla-1.1-20100824.213711-80-javadoc.jar
26/08/10 11:31:47 CEST: Could not download sources for com.blabla:blabla:1.1-20100824.213711-80

On archiva i can see the deployed stuff i want to retrieve in eclipse…

Repository   snapshots
Group ID  com.blabla
Artifact ID  blabla
Version  1.1-20100824.213711-80
Packaging  jar
Parent  com.blabla bla 1.1-SNAPSHOT (View)
Other Versions  1.1-20100824.213535-79

I can download sources of this artifact with my browser but not within Eclipse… Any idea?

  • 1 1 Answer
  • 2 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-16T14:04:24+00:00Added an answer on May 16, 2026 at 2:04 pm

    The matter is that it seems I can’t get the sources through Eclipse without loading the project or fixing the dependency to the last release. For debugging, it’s really annoying me…

    Well, these modules are probably not publishing source JARs as part of the “regular” build process (i.e. outside the release). If these modules are under your control (which is my understanding), configuring the Maven Source Plugin to produce source JARs for them and deploying them in your corporate repo should solve the problem. From the Usage page:

    Installing the sources along with your artifact

    There are two ways to do this. You can
    either bind this plugin to a phase or
    you can add it to a profile. The goals
    source:jar-no-fork and
    source:test-jar-no-fork are preferred
    for binding the goal to the build
    lifecycle.

    Installing the sources using a phase binding

    Here is how you would configure the
    plugin in your pom.xml to run
    automatically during the verify phase:

    <project>
      ...
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>2.1.2</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <phase>verify</phase>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
      ...
    </project>
    

    We are using the verify phase here
    because it is the phase that comes
    before the install phase, thus making
    sure that the sources jar has been
    created before the install takes
    place.

    Installing the sources using a profile

    If you want to install a jar of your
    sources along with your artifact
    during the release process, you can
    add this to your pom.xml file:

    <project>
      ...
      <profiles>
        <profile>
          <id>release</id>
          <build>
            <plugins>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>2.1.2</version>
                <executions>
                  <execution>
                    <id>attach-sources</id>
                    <goals>
                      <goal>jar-no-fork</goal>
                    </goals>
                  </execution>
                </executions>
              </plugin>
            </plugins>
          </build>
        </profile>
      </profiles>
      ...
    </project>
    

    Using a profile would probably be a good idea so that building source JARs will only be done by the build running at the CI server level but not on developer machines.

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

Sidebar

Related Questions

I've read some blog articles about Observer pattern implementation on JEE6 and something bother
Something that seems to be absent from the otherwise great new features for Windows
Something that I think is really strange is happening when I use die() .
You know, something that takes an xml input file and returns a dict, creating
i have seen some people in css write something like .together { display:inline; display:inline-block;
I'm having some bother understanding why I cannot get a TreeModelChanged listener to respond
We have a lot of class code which has some boilerplate like the following:
Something terrible as happened with my poor attempt at adding a CountIf forumula to
Something is wrong with my Rails app because when I run bundle install, I
something I've struggled with in the past and am struggling with today is preventing

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.