
|
how to exclude plugin version from artifactory ?

Some parts of this message have been removed.
Learn more about Nabble's security policy.
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
repository
Try 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/file
Alternatively, 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
|

|
Re: 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
repository
Try 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/file
Alternatively, 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
|

|
Re : how to exclude plugin version from artifactory ?

Some parts of this message have been removed.
Learn more about Nabble's security policy.
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
repository
Try 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/file
Alternatively, 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
|

|
Re: Re : how to exclude plugin version from artifactory ?
The "normal" clean way is like you said: "pin down the plugin version in the pluginManagement pom". Now, for your case (and it happen to me :) you can actually manually deploy the jar of the 2.5.1 plugin has the 2.7 version in Artifactory using the Web UI.
Be careful to uncheck the check box of "use pom in jar", and deploy also the 2.5.1 pom that you modify to think it is 2.7 and deploy it also. In 2.0.x you have more flexibility for virtual/local repo configuration via the UI, but in 1.2.x just make sure your users see this newly deploy artifact in their plugin repo conf.
HTH, Fred. On Mon, Jul 6, 2009 at 9:40 PM, Adrian Gonzalez <adr_gonzalez@...> wrote:
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
repository
Try 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/file
Alternatively, 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
-- 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
|

|
Re : Re : how to exclude plugin version from artifactory ?

Some parts of this message have been removed.
Learn more about Nabble's security policy.
Thanks for the tip !
One last question : I would have thought that excluding a plugin or maven artifact on a per version basis to be a common function for repository management tool (I'm a bit surprised ;o) ). Is it a missing feature in artifactory, a missing feature in all kinds of maven repository management tools, or just an uninteresting feature (so the stupid question's for me ;) )?
De : Frederic Simon <freds@...> À :
artifactory-users@... Envoyé le : Lundi, 6 Juillet 2009, 22h48mn 18s Objet : Re: [Artifactory-users] Re : how to exclude plugin version from artifactory ?
The "normal" clean way is like you said: "pin down the plugin version in the pluginManagement pom". Now, for your case (and it happen to me :) you can actually manually deploy the jar of the 2.5.1 plugin has the 2.7 version in Artifactory using the Web UI.
Be careful to uncheck the check box of "use pom in jar", and deploy also the 2.5.1 pom that you modify to think it is 2.7 and deploy it also. In 2.0.x you have more flexibility for virtual/local repo configuration via the UI, but in 1.2.x just make sure your users see this newly deploy artifact in their plugin repo conf.
HTH, Fred. On Mon, Jul 6, 2009 at 9:40 PM, Adrian Gonzalez <adr_gonzalez@...> wrote:
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
repository
Try 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/file
Alternatively, 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
-- 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
|

|
Re : Re : how to exclude plugin version from artifactory ?

Some parts of this message have been removed.
Learn more about Nabble's security policy.
'Now, for your case (and it happen to me :) you can actually manually deploy the jar ' -> I've used today your solution and it solved my problem. So thank you once more !
I've also pinned down all my plugin versions in my root pom's pluginManagement (in order to avoid this pb for the future). mvn help:effective-pom helped me a lot for this.
De : Frederic Simon <freds@...> À :
artifactory-users@... Envoyé le : Lundi, 6 Juillet 2009, 22h48mn 18s Objet : Re: [Artifactory-users] Re : how to exclude plugin version from artifactory ?
The "normal" clean way is like you said: "pin down the plugin version in the pluginManagement pom". Now, for your case (and it happen to me :) you can actually manually deploy the jar of the 2.5.1 plugin has the 2.7 version in Artifactory using the Web UI.
Be careful to uncheck the check box of "use pom in jar", and deploy also the 2.5.1 pom that you modify to think it is 2.7 and deploy it also. In 2.0.x you have more flexibility for virtual/local repo configuration via the UI, but in 1.2.x just make sure your users see this newly deploy artifact in their plugin repo conf.
HTH, Fred. On Mon, Jul 6, 2009 at 9:40 PM, Adrian Gonzalez <adr_gonzalez@...> wrote:
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
repository
Try 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/file
Alternatively, 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
-- 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/
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/blackberry_______________________________________________
Artifactory-users mailing list
Artifactory-users@...
https://lists.sourceforge.net/lists/listinfo/artifactory-users
|