« Return to Thread: how to exclude plugin version from artifactory ?
Thanks very much !
I knew about pluginManagement, but I would need then to modify the pom.
The problem occurs for an old pom (last year), and I would like to avoid touching it.
So, I just thought that perhaps artifactory had an option (checkbox ? ;) ) to force an artifact exclusion (so 2.7 would never get called and artifactory would always return 2.5.1 for instance).
This would enable me to exclude instable plugins for my company on a per version basis.
Is it possible, or the only way to exclude a maven plugin version is only to pin down the plugin version in the pluginManagement pom ?
Thanks once more
De : Frederic Simon <freds@...>
À : artifactory-users@...
Envoyé le : Lundi, 6 Juillet 2009, 20h02mn 57s
Objet : Re: [Artifactory-users] how to exclude plugin version from artifactory ?It looks like Artifactory is doing what it should: Refuse the download of the 2.7 version.
You'll need to add in pluginManagement of your POM the version of the plugin you want, and if does not work find out which plugin/dependency needs the plugin and exclude it.
Normally for plugin, pluginManagement should do the work.
HTH,
Fred.On Mon, Jul 6, 2009 at 8:25 PM, Adrian Gonzalez <adr_gonzalez@...> wrote:
Hello,
I think this is a newbie question , so ... sorry !
I'm using artifactory 1.2.5.
I want to exclude from artifactory the version 2.7 of the maven-eclipse-plugin (I want all my users to use 2.5.1).
How can I do it ? (if I remove it from Web UI, artifactory's going to download it when requested).
Thanks
P.S : I've configured artifactory to handle http://repo1.maven.org/maven2 as a remote repository.
I've added 'org/apache/maven/plugins/maven-eclipse-plugin/2.7/**' to the excludesPattern in artifactory.config.xml, but it doesn't seem to work cf [1] !
<remoteRepository>
<key>repo1</key>
<handleReleases>true</handleReleases>
<handleSnapshots>false</handleSnapshots>
<excludesPattern>org/artifactory/**,org/jfrog/**,com/natixis/**,com/ibm/**,com/oracle/**,org/jboss/**,org/apache/maven/plugins/maven-eclipse-plugin/2.7/**</excludesPattern>
http://repo1.maven.org/maven2
<!-- delai long en raison du serveur antivirus -->
<socketTimeoutMillis>60000</socketTimeoutMillis>
<proxyRef>planetsurf</proxyRef>
</remoteRepository>
[1][INFO] ------------------------------------------------------------------------
[INFO] Building Application MVC2 Web Simple - Module Parametrage
[INFO] task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-eclipse-plugin: checking for upda
tes from central
Downloading: http://sxdmut53:18080/artifactory/repo/org/apache/maven/plugins/mav
en-eclipse-plugin/2.7/maven-eclipse-plugin-2.7.pom
Downloading: http://sxdmut53:18080/artifactory/repo/org/apache/maven/plugins/mav
en-eclipse-plugin/2.7/maven-eclipse-plugin-2.7.jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] A required plugin was not found: Plugin could not be found - check that t
he goal name is correct: Unable to download the artifact from any repositoryTry downloading the file manually from the project website.Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.maven.plugins -DartifactId=mav
en-eclipse-plugin -Dversion=2.7 -Dpackaging=maven-plugin -Dfile=/path/to/fileAlternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.maven.plugins -DartifactId=maven
-eclipse-plugin -Dversion=2.7 -Dpackaging=maven-plugin -Dfile=/path/to/file -Dur
l=[url] -DrepositoryId=[id]
------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users
--
JFrog Ltd
5 Habonim st., P.O.Box 8187
Netanya, Israel 42504.
Tel: +972 9 8941444
Fax: +972 9 8659977
http://www.jfrog.org/
http://freddy33.blogspot.com/
http://nothingisinfinite.blogspot.com/
------------------------------------------------------------------------------
_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users
« Return to Thread: how to exclude plugin version from artifactory ?
| Free embeddable forum powered by Nabble | Forum Help |