You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "David Hoffer (JIRA)" <ji...@codehaus.org> on 2007/05/22 18:55:58 UTC

[jira] Created: (MNG-3006) Maven does not always download artifacts from specified repos

Maven does not always download artifacts from specified repos
-------------------------------------------------------------

                 Key: MNG-3006
                 URL: http://jira.codehaus.org/browse/MNG-3006
             Project: Maven 2
          Issue Type: Bug
    Affects Versions: 2.0.6
         Environment: Windows XP SP2
            Reporter: David Hoffer
         Attachments: settings.xml

Performing maven2 builds does not always downloaded requested artifacts from specified repos before complaining that the required artifact is not available and giving up.  However if I delete my local repo then it always works.

Here is the failure log:
[12:42:04]: Couldn't find a version in [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.9-SNAPSHOT, 1.11-SNAPSHOT] to match range [1.11,)
[12:42:04]: com.xrite.retail:retail-commons-classic:jar:null
[12:42:04]:
[12:42:04]: from the specified remote repositories:
[12:42:04]: central (http://xrbuild3:8081/artifactory/repo),
[12:42:04]: snapshots (http://xrbuild3:8082/artifactory/repo)

An HTTP port monitor shows that maven refuses to contact the servers until I delete my local repo.  Maven should always check the remote server before giving up.

I will attach my settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3006) Maven does not always download artifacts from specified repos

Posted by "Bob Fields (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=229435#action_229435 ] 

Bob Fields commented on MNG-3006:
---------------------------------

Looks like the version range selection is working correctly, 1.11-SNAPSHOT is considered earlier than 1.11. Use 1.11-! to select versions with qualifiers. However there is a related bug in maven 2.2.1 where a four part version (used by Eclipse, Spring, and Hibernate artifacts) are not recognized in version ranges. This appears to be fixed in maven3 but needs to be fixed in maven2 also.

Couldn't find a version in [3.6.0.v20100517] to match range [3.5.0,4.0.0)
  org.eclipse.osgi:org.eclipse.osgi:jar:null

> Maven does not always download artifacts from specified repos
> -------------------------------------------------------------
>
>                 Key: MNG-3006
>                 URL: http://jira.codehaus.org/browse/MNG-3006
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.6
>         Environment: Windows XP SP2
>            Reporter: David Hoffer
>             Fix For: Issues to be reviewed for 3.x
>
>         Attachments: settings.xml
>
>
> Performing maven2 builds does not always downloaded requested artifacts from specified repos before complaining that the required artifact is not available and giving up.  However if I delete my local repo then it always works.
> Here is the failure log:
> [12:42:04]: Couldn't find a version in [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.9-SNAPSHOT, 1.11-SNAPSHOT] to match range [1.11,)
> [12:42:04]: com.xrite.retail:retail-commons-classic:jar:null
> [12:42:04]:
> [12:42:04]: from the specified remote repositories:
> [12:42:04]: central (http://xrbuild3:8081/artifactory/repo),
> [12:42:04]: snapshots (http://xrbuild3:8082/artifactory/repo)
> An HTTP port monitor shows that maven refuses to contact the servers until I delete my local repo.  Maven should always check the remote server before giving up.
> I will attach my settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3006) Maven does not always download artifacts from specified repos

Posted by "David Hoffer (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99631 ] 

David Hoffer commented on MNG-3006:
-----------------------------------

We have discovered that fundamentally what is going on here is that maven2 is not, by default, really configured to work well in a company with an automated build system where artifact release versions change often.

The main issue here is that maven2, by default, only checks for version updates daily.  This may be fine for situations where you have a few static maven dependencies but is really bad for corporate component/application development where you are making/consuming lots of locally generated artifacts.

If I always run maven with the -U option this problem does not occur because maven then always checks for newer versions much like it does if you have no prior artifact version.

When I release a component artifact (to our proxy server) I also have lots of other components/applications with dependencies on it using set notation for the version.  Builds of these other components/applications must be able to find the just released component on our proxy server.  The default behavior of maven is to not find the new release until tomorrow!

In our environment I can see no reason for the daily update option for the local/corporate repo usage.  I have a hard time seeing a large benefit to it for remote repos as well, other than using a bit more network bandwidth.

This feature should be reworked so that I can say either globally (or possibly per project) that I want to always check for updates.  I suggest that this be configured in the settings.xml file for the global settings.

Also the -U option is misnamed as it implies it only effects snapshots when in fact it effects snapshots and releases.


> Maven does not always download artifacts from specified repos
> -------------------------------------------------------------
>
>                 Key: MNG-3006
>                 URL: http://jira.codehaus.org/browse/MNG-3006
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.6
>         Environment: Windows XP SP2
>            Reporter: David Hoffer
>             Fix For: 2.1.x
>
>         Attachments: settings.xml
>
>
> Performing maven2 builds does not always downloaded requested artifacts from specified repos before complaining that the required artifact is not available and giving up.  However if I delete my local repo then it always works.
> Here is the failure log:
> [12:42:04]: Couldn't find a version in [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.9-SNAPSHOT, 1.11-SNAPSHOT] to match range [1.11,)
> [12:42:04]: com.xrite.retail:retail-commons-classic:jar:null
> [12:42:04]:
> [12:42:04]: from the specified remote repositories:
> [12:42:04]: central (http://xrbuild3:8081/artifactory/repo),
> [12:42:04]: snapshots (http://xrbuild3:8082/artifactory/repo)
> An HTTP port monitor shows that maven refuses to contact the servers until I delete my local repo.  Maven should always check the remote server before giving up.
> I will attach my settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (MNG-3006) Maven does not always download artifacts from specified repos

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MNG-3006:
------------------------------

    Fix Version/s:     (was: Reviewed Pending Version Assignment)
                   2.1.x
      Component/s: Artifacts and Repositories

> Maven does not always download artifacts from specified repos
> -------------------------------------------------------------
>
>                 Key: MNG-3006
>                 URL: http://jira.codehaus.org/browse/MNG-3006
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.6
>         Environment: Windows XP SP2
>            Reporter: David Hoffer
>             Fix For: 2.1.x
>
>         Attachments: settings.xml
>
>
> Performing maven2 builds does not always downloaded requested artifacts from specified repos before complaining that the required artifact is not available and giving up.  However if I delete my local repo then it always works.
> Here is the failure log:
> [12:42:04]: Couldn't find a version in [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.9-SNAPSHOT, 1.11-SNAPSHOT] to match range [1.11,)
> [12:42:04]: com.xrite.retail:retail-commons-classic:jar:null
> [12:42:04]:
> [12:42:04]: from the specified remote repositories:
> [12:42:04]: central (http://xrbuild3:8081/artifactory/repo),
> [12:42:04]: snapshots (http://xrbuild3:8082/artifactory/repo)
> An HTTP port monitor shows that maven refuses to contact the servers until I delete my local repo.  Maven should always check the remote server before giving up.
> I will attach my settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3006) Maven does not always download artifacts from specified repos

Posted by "Wendy Smoak (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99632 ] 

Wendy Smoak commented on MNG-3006:
----------------------------------

You can configure the update policy for each repository.  See:  http://maven.apache.org/ref/2.0.4/maven-model/maven.html#class_repository

Sounds like you want either 'always' or an interval in minutes.



> Maven does not always download artifacts from specified repos
> -------------------------------------------------------------
>
>                 Key: MNG-3006
>                 URL: http://jira.codehaus.org/browse/MNG-3006
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.6
>         Environment: Windows XP SP2
>            Reporter: David Hoffer
>             Fix For: 2.1.x
>
>         Attachments: settings.xml
>
>
> Performing maven2 builds does not always downloaded requested artifacts from specified repos before complaining that the required artifact is not available and giving up.  However if I delete my local repo then it always works.
> Here is the failure log:
> [12:42:04]: Couldn't find a version in [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.9-SNAPSHOT, 1.11-SNAPSHOT] to match range [1.11,)
> [12:42:04]: com.xrite.retail:retail-commons-classic:jar:null
> [12:42:04]:
> [12:42:04]: from the specified remote repositories:
> [12:42:04]: central (http://xrbuild3:8081/artifactory/repo),
> [12:42:04]: snapshots (http://xrbuild3:8082/artifactory/repo)
> An HTTP port monitor shows that maven refuses to contact the servers until I delete my local repo.  Maven should always check the remote server before giving up.
> I will attach my settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MNG-3006) Maven does not always download artifacts from specified repos

Posted by "Scott Marlow (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-3006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=236214#action_236214 ] 

Scott Marlow commented on MNG-3006:
-----------------------------------

I'm using a newer maven but seeing a similar issue (I'll create a new jira if its thought to be different).  I'm using "Apache Maven 3.0-beta-1 (r935667; 2010-04-19 13:00:39-0400)" and occasionally get intermittent "connection refused" errors.  The problem is that this error is cached (as this jira reports for other problems) in the local Maven repo.  Deleting the cached entry, helps get the connection attempt to be retried.  Maybe Maven should automatically retry the connection attempt initially (waiting an increasing amount of time between attempts before finally giving up).  Would that help with the original issue reported by this jira?

By the way, my cached entry (dtdparser121-1.2.1.pom.lastUpdated) contains:
#Last modified on: Thu Sep 23 10:20:54 EDT 2010
#Thu Sep 23 10:20:54 EDT 2010
https\://repository.jboss.org/nexus/content/groups/developer/.error=Error transferring file\: Connection refused
83570450015=
https\://repository.jboss.org/nexus/content/groups/developer/=1285251654064


> Maven does not always download artifacts from specified repos
> -------------------------------------------------------------
>
>                 Key: MNG-3006
>                 URL: http://jira.codehaus.org/browse/MNG-3006
>             Project: Maven 2 & 3
>          Issue Type: Bug
>          Components: Artifacts and Repositories
>    Affects Versions: 2.0.6
>         Environment: Windows XP SP2
>            Reporter: David Hoffer
>             Fix For: Issues to be reviewed for 3.x
>
>         Attachments: settings.xml
>
>
> Performing maven2 builds does not always downloaded requested artifacts from specified repos before complaining that the required artifact is not available and giving up.  However if I delete my local repo then it always works.
> Here is the failure log:
> [12:42:04]: Couldn't find a version in [1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 1.10, 1.9-SNAPSHOT, 1.11-SNAPSHOT] to match range [1.11,)
> [12:42:04]: com.xrite.retail:retail-commons-classic:jar:null
> [12:42:04]:
> [12:42:04]: from the specified remote repositories:
> [12:42:04]: central (http://xrbuild3:8081/artifactory/repo),
> [12:42:04]: snapshots (http://xrbuild3:8082/artifactory/repo)
> An HTTP port monitor shows that maven refuses to contact the servers until I delete my local repo.  Maven should always check the remote server before giving up.
> I will attach my settings.xml.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira