Hi, 

I am trying to convert an existing maven project to gradle, but I can't get
it working in combination with my local maven repository (trying a "gradle
compile"). Weird thing is that it seems to look at the correct place because
it gives this output:

....
:: problems summary ::
:::: WARNINGS
                module not found: ext#gwittir-core;0.4.4
.....
          -- artifact ext#gwittir-core;0.4.4!gwittir-core.jar:

         
file://C:/Docume~1/rintcius/.m2/repository/ext/gwittir-core/0.4.4/gwittir-core-0.4.4.jar

        ==== myrepo_jars: tried
....

and when I copy/paste this url into firefox then it does find this file.

So probably I am missing something here?

I tried several things with addMavenRepo and addMavenStyleRepo but this is
my last attempt for build.gradle:

project.group = 'myproject'
project.version = '1.0'

usePlugin('java')
dependencies {
  addMavenRepo('file://C:/Docume~1/rintcius/.m2/repository')
  addMavenStyleRepo('myrepo', 'file://C:/Docume~1/rintcius/.m2/repository',
"http://repo1.maven.org/maven2/";)
  compile('com.google.gwt:gwt-user:1.5-RC1')
  compile('ext:gwittir-core:0.4.4')
}
sourceCompatibility = 1.5
targetCompatibility = 1.5
srcDirNames = ['main/gwt']

Note: 
- i digged addMavenStyleRepo call somewhere from this user forum
- i don't really know what the difference is between addMavenRepo and
addMavenStyleRepo so i added them both

Can anyone point out to me what I am doing wrong?

Thanks, Rintcius

-- 
View this message in context: 
http://www.nabble.com/how-to-add-a-local-maven-repository--tp18689218p18689218.html
Sent from the gradle-user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to