[ 
https://issues.apache.org/jira/browse/MDEP-623?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16549838#comment-16549838
 ] 

Michael Osipov commented on MDEP-623:
-------------------------------------

First of all, I have moved this issue to the appropriate place. Moreover, MDEP 
does not know that the source that not exist. Simply a 404 could also mean that 
it shows up tomorrow. I'd like to know why you need to download source JARs in 
developer builds. What benefit do you gain from?

What you are ultimately looking for is to exclude artifacts from being 
downloaded: 
https://maven.apache.org/plugins/maven-dependency-plugin/sources-mojo.html#excludeArtifactIds

> Need to be able to tell Maven to not bother trying to download particular 
> sources jars
> --------------------------------------------------------------------------------------
>
>                 Key: MDEP-623
>                 URL: https://issues.apache.org/jira/browse/MDEP-623
>             Project: Maven Dependency Plugin
>          Issue Type: Improvement
>          Components: sources
>            Reporter: Jim Showalter
>            Priority: Major
>         Attachments: pom.xml
>
>
> Sources jars are optional, so Maven has no way of knowing if a project 
> decided to publish a sources jar. Even if the code and released jar hasn't 
> changed since 1998, somebody might edit the build pom to generate a sources 
> jar.
> This causes Maven to attempt to fetch non-existent sources jars in perpetuity.
> Maven waits several seconds when attempting to fetch a sources jar before 
> giving up.
> We have 142 sourceless jars on our build path.
> The wait time multiplied by 142 winds up adding 11 minutes to our builds.
> We don't want to shut off sources jars, because, when they exist, developers 
> use them to step through code. But we don't want Maven to keep trying to 
> download sources jars we know don't exist and are pretty sure will never 
> exist.
> Something like a section in settings.xml for ignoreSourcesJars that allowed 
> us to list the ones to ignore would be great.
> I'm happy to help with this if someone can point me to where in the code a 
> change like this needs to be made.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to