Hi,
Virtual repository generates merged maven metadata based on the repositories
it aggregates.
In your case, you use the global virtual repository (/repo) which aggregates
all the repositories.
If you only want to use release repositories, the best way is to use virtual
repositories that include
only release repositories (e.g., the default libs-release virtual
repository). This way, the virtual repository
won't "see" the snapshot and it will not be included in the returned maven
metadata.
By the way, in your case you encounter a bug in Maven 2 that tries to
resolve snapshot even when
you disable snapshot for the plugins repository. Maven 3 solved it.
Cheers,
Yossi
On Mon, Apr 25, 2011 at 20:06, rendel <[email protected]> wrote:
> Hi,
>
> we are using Artifactory 2.3.2, Maven 2.2.1,
> We have a settings.xml forwarding all the requests to a virtual repository,
> where snapshots are deactivated for pluginRepositories.
> In our artifactory, all the public repositories have snapshots deactivated
> (Handle Snapshots not checked).
>
> However, whenever we are trying to run a maven command, such as
> eclipse:eclipse or help:eclipse, maven tries to fetch a snapshot version of
> the maven-eclipse-plugin or maven-help-plugin and display the following
> error:
>
> Reason: Error getting POM for 'org.apache.maven.plugins:maven-help-plugin'
> from the repository: Failed to resolve artifact, possibly due to a
> repository list that is not appropriately equipped for this artifact's
> metadata.
> org.apache.maven.plugins:maven-help-plugin:pom:2.2-SNAPSHOT
>
> from the specified remote repositories:
> my-repository (https://myrepository/repo)
>
> for project org.apache.maven.plugins:maven-help-plugin
>
> In Artifactory, it seems that only one public repository refers to these
> artifacts: the apache public repositories. In this repository, the file
> maven-help-plugin/maven-metadata.xml contains:
>
> <metadata>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-help-plugin</artifactId>
> <versioning>
> <latest>2.2-SNAPSHOT</latest>
> <release>2.1.1</release>
> <versions>
>
> <version>2.0</version>
> <version>2.0.1</version>
> <version>2.0.2</version>
> <version>2.1</version>
> <version>2.1.1</version>
> <version>2.2-SNAPSHOT</version>
>
> </versions>
> <lastUpdated>20110225214700</lastUpdated>
> </versioning>
> </metadata>
>
> How can I configure Artifactory so that it ignores snapshots for this
> repository ? as it seems this is the cause of the errors.
>
> Thanks
>
>
> --
> View this message in context:
> http://forums.jfrog.org/Problem-Retrieving-Maven-Plugin-Artifacts-tp6303296p6303296.html
> Sent from the Artifactory - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network
> management toolset available today. Delivers lowest initial
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users