Created
March 22, 2012 14:25
-
-
Save erikfried/2158611 to your computer and use it in GitHub Desktop.
Play2 build file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import PlayProject._ | |
object ApplicationBuild extends Build { | |
val appName = "my_app" | |
val appVersion = "1.0-SNAPSHOT" | |
val appDependencies = Seq( | |
// Add your project dependencies here, | |
) | |
val main = PlayProject(appName, appVersion, appDependencies).settings( | |
credentials := Credentials( | |
"Sonatype Nexus Repository Manager", //Matches Realm on my nexus server, i e "contentAuthcBasic.applicationName = Sonatype Nexus Repository Manager" | |
"http://maven-repo.myhost.se", | |
"username", | |
"password"), | |
publishTo := Some("Sonatype Nexus Repository Manager" at "http://maven-repo.myhost.se/nexus/content/repositories/snapshots/") | |
) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[error] ... *:publish: java.io.IOException: Access to URL http://maven-repo.myhost.se/nexus/content/repositories/snapshots/myapp/myapp_2.9.1/1.0-SNAPSHOT/myapp_2.9.1-1.0-SNAPSHOT.pom was refused by the server: Unauthorized |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-Agent: Apache Ivy/2.2.0 | |
Content-type: application/octet-stream | |
Host: maven-repo.myhost.se:8081 | |
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 | |
Content-Length: 1987 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HTTP/1.1 401 Unauthorized | |
Server: Apache-Coyote/1.1 | |
Set-Cookie: rememberMe=deleteMe; Path=/nexus; Max-Age=0; Expires=Wed, 21-Mar-2012 14:27:01 GMT | |
Set-Cookie: rememberMe=deleteMe; Path=/nexus; Max-Age=0; Expires=Wed, 21-Mar-2012 14:27:01 GMT | |
Set-Cookie: JSESSIONID=deleteMe; Path=/nexus; Max-Age=0; Expires=Wed, 21-Mar-2012 14:27:01 GMT | |
WWW-Authenticate: BASIC realm="Sonatype Nexus Repository Manager" | |
Content-Type: text/html;charset=utf-8 | |
Content-Length: 954 | |
Date: Thu, 22 Mar 2012 14:27:01 GMT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment