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

Jim Showalter commented on MNG-6448:
------------------------------------

Minimal pom attached.

$ mvn dependency:sources
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building example-of-using-dependency-sources 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:sources (default-cli) @ 
example-of-using-dependency-sources ---
[INFO] Downloading: 
http://nexus.intuit.net/nexus/content/groups/public/antlr/antlr/2.7.7/antlr-2.7.7-sources.jar
[INFO]
[INFO] The following files have been resolved:
[INFO] junit:junit:jar:sources:4.11
[INFO] org.hamcrest:hamcrest-core:jar:sources:1.3
[INFO]
[INFO] The following files have NOT been resolved:
[INFO] junit:junit:jar:4.11:compile
[INFO] org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] antlr:antlr:jar:2.7.7:compile
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.346 s
[INFO] Finished at: 2018-07-19T13:23:12-07:00
[INFO] Final Memory: 14M/378M
[INFO] ------------------------------------------------------------------------

Wait 24 hours, run it again, it again tries to resolve sources jars that don't 
exist.

 

 

> Need to be able to tell Maven to not bother trying to download particular 
> sources jars
> --------------------------------------------------------------------------------------
>
>                 Key: MNG-6448
>                 URL: https://issues.apache.org/jira/browse/MNG-6448
>             Project: Maven
>          Issue Type: Bug
>          Components: Dependencies
>            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