Hi,

I want to install my jars into a local maven repository. But whatever I give
as location it always puts it into my user.home.

repositories { 
 def tmp = new File(System.getProperty('java.io.tmpdir'), '.m2/repository')
 mavenRepo urls: 'file://' + tmp.absolutePath
}

but starting with -i shows:

[INFO] Installing
D:\gradle-test\code\support\build\libs\support-SNAPSHOT.jar C:\Dokumente und
Einstellungen\user\.m2\repository\de\acme\code\support\SNAPSHOT\support-SNAPSHOT.jar

The first time i ran it i had user.home as location... but why does it
remember it and how is it changeable ?

The actual problem is that i wanted to use that jar in a separate project.

repositories { 
          mavenRepo urls: 'file://' + new File(System.getProperty('user.home'),
'.m2/repository').absolutePath
}

dependencies {
  compile 'de.acme.code:support:SNAPSHOT'
}

this fails with:

file://C:\Dokumente und
Einstellungen\user\.m2\repository/de/acme/code/support/SNAPSHOT/API-SNAPSHOT.jar

UNRESOLVED DEPENDENCIES

although the jar is at this location... so I wanted to try another location
if its because of the spaces or the different '\' '/' ?!

Any hint is welcome

Thanks
-- 
View this message in context: 
http://old.nabble.com/locale-maven-repository-problem-tp27271359p27271359.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