Is there a mvn command to clean the local repo?
All, Is there a mvn command that clean the local repo? Thanks. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a mvn command to clean the local repo?
http://maven.apache.org/plugins/maven-dependency-plugin/index.html see purge-local-repository goal On 4/16/07, Baz [EMAIL PROTECTED] wrote: All, Is there a mvn command that clean the local repo? Thanks. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax
Re: Is there a mvn command to clean the local repo?
Davis, Thanks for replying. After I reviewed the webpage, I wonder how i can delete/refresh one single directory... for example, com directory under the local repo. There is only exclude but no include. B. On 4/16/07, Davis Ford [EMAIL PROTECTED] wrote: http://maven.apache.org/plugins/maven-dependency-plugin/index.html see purge-local-repository goal On 4/16/07, Baz [EMAIL PROTECTED] wrote: All, Is there a mvn command that clean the local repo? Thanks. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a mvn command to clean the local repo?
This is a fairly new mojo, so it may not have all the functionality you require/desire. In that case, you are free to edit the code to add what you need etc, then contribute it back to Maven so it can be incorporated in a future release. Wayne On 4/16/07, Baz [EMAIL PROTECTED] wrote: Davis, Thanks for replying. After I reviewed the webpage, I wonder how i can delete/refresh one single directory... for example, com directory under the local repo. There is only exclude but no include. B. On 4/16/07, Davis Ford [EMAIL PROTECTED] wrote: http://maven.apache.org/plugins/maven-dependency-plugin/index.html see purge-local-repository goal On 4/16/07, Baz [EMAIL PROTECTED] wrote: All, Is there a mvn command that clean the local repo? Thanks. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a mvn command to clean the local repo?
well...you can do it the quick-n-dirty way, and just manually delete everything under .m2/repository/com/* (or subdirs that you want to refresh) --davis On 4/16/07, Baz [EMAIL PROTECTED] wrote: Davis, Thanks for replying. After I reviewed the webpage, I wonder how i can delete/refresh one single directory... for example, com directory under the local repo. There is only exclude but no include. B. On 4/16/07, Davis Ford [EMAIL PROTECTED] wrote: http://maven.apache.org/plugins/maven-dependency-plugin/index.html see purge-local-repository goal On 4/16/07, Baz [EMAIL PROTECTED] wrote: All, Is there a mvn command that clean the local repo? Thanks. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax
Re: Is there a mvn command to clean the local repo?
On 4/16/07, Baz [EMAIL PROTECTED] wrote: Davis, Thanks for replying. After I reviewed the webpage, I wonder how i can delete/refresh one single directory... for example, com directory under the local repo. There is only exclude but no include. With purge-local-repository goal you may refresh (delete and then download) dependencies for your project (including transitive dependencies). With resolutionFuzziness you may also 'expand' 'scope' of deletion (see http://maven.apache.org/plugins/maven-dependency-plugin/purge-local-repository-mojo.html#resolutionFuzziness). But this will work only for dependencies listed in your project (pom.xml). So - it's not designed for removing 'whole repository' but only for those parts of repository, which are required for your project. And that's why there's no 'include' - you're 'including artifacts for deletion' by adding them as dependencies to your project... For removing whole 'com' tree in local repo simple filesystem operation will work better IMHO. Regards, Tomek B. On 4/16/07, Davis Ford [EMAIL PROTECTED] wrote: http://maven.apache.org/plugins/maven-dependency-plugin/index.html see purge-local-repository goal On 4/16/07, Baz [EMAIL PROTECTED] wrote: All, Is there a mvn command that clean the local repo? Thanks. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Is there a mvn command to clean the local repo?
Yeah thats what i am doing right now :p Thanks. A. On 4/16/07, Davis Ford [EMAIL PROTECTED] wrote: well...you can do it the quick-n-dirty way, and just manually delete everything under .m2/repository/com/* (or subdirs that you want to refresh) --davis On 4/16/07, Baz [EMAIL PROTECTED] wrote: Davis, Thanks for replying. After I reviewed the webpage, I wonder how i can delete/refresh one single directory... for example, com directory under the local repo. There is only exclude but no include. B. On 4/16/07, Davis Ford [EMAIL PROTECTED] wrote: http://maven.apache.org/plugins/maven-dependency-plugin/index.html see purge-local-repository goal On 4/16/07, Baz [EMAIL PROTECTED] wrote: All, Is there a mvn command that clean the local repo? Thanks. B. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Zeno Consulting, Inc. http://www.zenoconsulting.biz 248.894.4922 phone 313.884.2977 fax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]