[ https://issues.apache.org/jira/browse/MRESOLVER-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17613742#comment-17613742 ]
Réda Housni Alaoui commented on MRESOLVER-277: ---------------------------------------------- >From a rapid debugging, IMHO, when {{check.getPolicy()}} returns {{NEVER}} at >[https://github.com/apache/maven-resolver/blob/11db4e360088407e6a387652b8d65d8035f87a22/maven-resolver-impl/src/main/java/org/eclipse/aether/internal/impl/DefaultUpdateCheckManager.java#L232] > , we should call {{check.setRequired(false).}} Copy-paste of the related code: {code:java} public void checkMetadata( RepositorySystemSession session, UpdateCheck<Metadata, MetadataTransferException> check ) { if ( check.getLocalLastUpdated() != 0 && !isUpdatedRequired( session, check.getLocalLastUpdated(), check.getPolicy() ) ) { LOGGER.debug( "Skipped remote request for {} locally installed metadata up-to-date", check.getItem() ); check.setRequired( false ); return; } Metadata metadata = check.getItem(); RemoteRepository repository = check.getRepository(); File metadataFile = requireNonNull( check.getFile(), String.format( "The metadata '%s' has no file attached", metadata ) ); boolean fileExists = check.isFileValid() && metadataFile.exists(); {code} > --no-snapshot-update option does not prevent metadata.xml download > ------------------------------------------------------------------ > > Key: MRESOLVER-277 > URL: https://issues.apache.org/jira/browse/MRESOLVER-277 > Project: Maven Resolver > Issue Type: Bug > Reporter: Réda Housni Alaoui > Priority: Major > Fix For: waiting-for-feedback > > > I have a multi-module project. > Each time I build the project using an empty local repository, maven-resolver > tries to download the {{metadata.xml}} of each module even if I pass > {{--no-snapshot-update}} option. > I think it is a bug. -- This message was sent by Atlassian Jira (v8.20.10#820010)