[
http://jira.codehaus.org/browse/MNG-2881?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_108585
]
Mauro Talevi commented on MNG-2881:
-----------------------------------
You mean to not log this information when in offline mode?
Simplest thing would be to just allow metadata resolving when online and ignore
when not - but throw no RepositoryMetadataResolutionException, both in
DefaultRepositoryMetadataManager#resolveAlways() and in
SnapshotTransformation#resolveLatestSnapshotBuildNumber().
Was this the intended result?
> Improve logging when downloading snapshots in offline mode
> ----------------------------------------------------------
>
> Key: MNG-2881
> URL: http://jira.codehaus.org/browse/MNG-2881
> Project: Maven 2
> Issue Type: Improvement
> Components: Artifacts and Repositories
> Affects Versions: 2.0.5
> Reporter: Jason van Zyl
> Priority: Minor
> Fix For: 2.0.8
>
>
> Even though the network is not touched we get logging output like this:
> --->8---
> [INFO] snapshot
> org.codehaus.plexus:plexus-appserver-maven-plugin:2.0-alpha-8-SNAPSHOT:
> checking for updates from apache.snapshots
> [DEBUG] System is offline. Cannot resolve metadata:
> Repository Metadata
> --------------------------
> GroupId: org.codehaus.plexus
> ArtifactId: plexus-appserver-maven-plugin
> Metadata Type:
> org.apache.maven.artifact.repository.metadata.SnapshotArtifactRepositoryMetadata
> --->8---
--
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