[JIRA] [repository-connector-plugin] (JENKINS-29166) Repository Connector Plugin doesn't refresh the list of artifacts stored on maven repository

7 views
Skip to first unread message

alexis.oliot@esigetel.fr (JIRA)

unread,
Jul 1, 2015, 9:06:03 AM7/1/15
to jenkinsc...@googlegroups.com
alexis oliot created an issue
 
Jenkins / Bug JENKINS-29166
Repository Connector Plugin doesn't refresh the list of artifacts stored on maven repository
Issue Type: Bug Bug
Assignee: Unassigned
Components: repository-connector-plugin
Created: 01/Jul/15 1:05 PM
Environment: Jenkins 1.596, Nexus 2.11.0-2, maven 3.2.5
Labels: plugin jenkins maven nexus
Priority: Major Major
Reporter: alexis oliot

I'm using this plugin to choose some artifacts versions which are stored on Maven repository.

The problem is that the list provided by the Maven Artifact Resolver parameter doesn't get refreshed whereas new versions of my artfiacts are stored on Maven Repository.

Is there a way to refresh this list automatically ? Like settings a timer or something else ?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

alexis.oliot@esigetel.fr (JIRA)

unread,
Jul 2, 2015, 6:41:02 AM7/2/15
to jenkinsc...@googlegroups.com

ms32035@gmail.com (JIRA)

unread,
Jul 16, 2015, 3:56:01 PM7/16/15
to jenkinsc...@googlegroups.com

fabrice.daugan@gmail.com (JIRA)

unread,
Jul 22, 2015, 6:12:01 PM7/22/15
to jenkinsc...@googlegroups.com

After investigation, the issue comes from Aether's cache.
more details there : https://github.com/apache/maven/blob/master/maven-aether-provider/src/main/java/org/apache/maven/repository/internal/DefaultVersionResolver.java

    public VersionResult resolveVersion( RepositorySystemSession session, VersionRequest request )
        throws VersionResolutionException
    {
        ...

        Key cacheKey = null;
        RepositoryCache cache = session.getCache();
        if ( cache != null && !ConfigUtils.getBoolean( session, false, "aether.versionResolver.noCache" ) )
        {
            cacheKey = new Key( session, request );

            Object obj = cache.get( session, cacheKey );
            if ( obj instanceof Record )
            {
                Record record = (Record) obj;
                result.setVersion( record.version );
                result.setRepository(
                    CacheUtils.getRepository( session, request.getRepositories(), record.repoClass, record.repoId ) );
                return result;
            }
        }
...

fabrice.daugan@gmail.com (JIRA)

unread,
Jul 22, 2015, 6:15:02 PM7/22/15
to jenkinsc...@googlegroups.com

fabrice.daugan@gmail.com (JIRA)

unread,
Jul 22, 2015, 6:15:03 PM7/22/15
to jenkinsc...@googlegroups.com

ms32035@gmail.com (JIRA)

unread,
Jul 24, 2015, 3:29:02 AM7/24/15
to jenkinsc...@googlegroups.com

Setting aether.versionResolver.noCache did not resolve the issue. However, changing Ather default constructor seems to have helped:

    public Aether(Collection<Repository> remoteRepositories, File localRepository) {
            this(remoteRepositories, localRepository, null, false, RepositoryPolicy.UPDATE_POLICY_ALWAYS,
                    RepositoryPolicy.CHECKSUM_POLICY_IGNORE, RepositoryPolicy.UPDATE_POLICY_ALWAYS, RepositoryPolicy.CHECKSUM_POLICY_IGNORE);
        }

fabrice.daugan@gmail.com (JIRA)

unread,
Jul 25, 2015, 2:12:02 PM7/25/15
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Sep 10, 2015, 5:19:02 AM9/10/15
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Fabrice Daugan
Path:
src/main/java/org/jvnet/hudson/plugins/repositoryconnector/aether/Aether.java
http://jenkins-ci.org/commit/repository-connector-plugin/728d2c3a72954fc1f18f0969ac60bf49704cf41f
Log:
Ensure the artfact's versions list is up to date

Fix issue : https://issues.jenkins-ci.org/browse/JENKINS-29166
TRUE -> "aether.versionResolver.noCache"

scm_issue_link@java.net (JIRA)

unread,
Sep 10, 2015, 5:19:03 AM9/10/15
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Sep 10, 2015, 5:19:04 AM9/10/15
to jenkinsc...@googlegroups.com

jagadish.pasunuri@syniverse.com (JIRA)

unread,
Jun 22, 2016, 4:25:01 PM6/22/16
to jenkinsc...@googlegroups.com
Jagadish Pasunuri commented on Bug JENKINS-29166
 
Re: Repository Connector Plugin doesn't refresh the list of artifacts stored on maven repository

Is this fix deployed yet ? I don't see this is working in latest version 1.1.3. If not deployed, when is this fix going to be available ?

This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

jagadish.pasunuri@syniverse.com (JIRA)

unread,
Jun 22, 2016, 4:27:02 PM6/22/16
to jenkinsc...@googlegroups.com
Jagadish Pasunuri reopened an issue
 

Issue still exists in v 1.1.3

Change By: Jagadish Pasunuri
Resolution: Fixed
Status: Resolved Reopened

dennisl@apache.org (JIRA)

unread,
Feb 14, 2019, 7:37:02 AM2/14/19
to jenkinsc...@googlegroups.com
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

julien@beti.name (JIRA)

unread,
Oct 3, 2019, 11:08:04 AM10/3/19
to jenkinsc...@googlegroups.com

I have version 1.2.6, and I have the issue.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages