[ https://issues.apache.org/jira/browse/GROOVY-4223?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15022405#comment-15022405 ]
ChenYangWen commented on GROOVY-4223: ------------------------------------- I change my grapeConfig.xml under ~/.groovy to {code:xml} <settings defaultResolver="downloadGrapes"/> <property name="m2-pattern" value="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]" override="false"/> <resolvers> <chain name="downloadGrapes"> <filesystem name="cachedGrapes" m2compatible="true"> <artifact pattern="${m2-pattern}"/> <ivy pattern="${m2-pattern}"/> </filesystem> <ibiblio name="localm2" root="file:${user.home}/.m2/repository/" checkmodified="true" changingPattern=".*" changingMatcher="regexp" m2compatible="true"/> <ibiblio name="nexus-osc" root="http://maven.oschina.net/content/groups/public/" m2compatible="true"/> <ibiblio name="central" m2compatible="true"/> <ibiblio name="jcenter" root="https://jcenter.bintray.com/" m2compatible="true"/> <ibiblio name="ibiblio" m2compatible="true"/> </chain> </resolvers> {code} still not work.I'm sure grape use this config file, but the filesystem config just not work. > Add local maven repo to default Grape config > -------------------------------------------- > > Key: GROOVY-4223 > URL: https://issues.apache.org/jira/browse/GROOVY-4223 > Project: Groovy > Issue Type: Improvement > Components: Grape > Affects Versions: 1.7.2 > Reporter: Matthew T. Adams > Assignee: Paul King > Fix For: 1.8.1 > > Attachments: addLocalMavenRepo.patch > > > Add an entry for the current user's local Maven2 repo to the default Grape > config file (groovy.grape.defaultGrapeConfig.xml): > <filesystem name="localMaven2" m2compatible="true"> > <ivy > pattern="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision].pom" > /> > <artifact > pattern="${user.home}/.m2/repository/[organisation]/[module]/[revision]/[module]-[revision].jar" > /> > </filesystem> > Groovy is all about being pragmatic and the reality is that many, many people > use Maven2. -- This message was sent by Atlassian JIRA (v6.3.4#6332)