How to access a secured Nexus with sbt?

Here’s what I did (sbt 0.13 + artifactory – setup should be similar for nexus): 1) Edited the file ~/.sbt/repositories as specified here: http://www.scala-sbt.org/0.13.0/docs/Detailed-Topics/Proxy-Repositories.html [repositories] local my-ivy-proxy-releases: http://repo.company.com/ivy-releases/, [organization]/[module]/(scala_[scalaVersion]/)(sbt_[sbtVersion]/)[revision]/[type]s/[artifact](-[classifier]).[ext] my-maven-proxy-releases: http://repo.company.com/maven-releases/ 2) Locked down my artifactory to disable anonymous access. 3) Created a credentials file in ~/.sbt/.credentials realm=Artifactory Realm host=artifactory.mycompany.com user=username password=password 4) Created a … Read more

how do I get sbt to use a local maven proxy repository (Nexus)?

Step 1: Follow the instructions at Detailed Topics: Proxy Repositories, which I have summarised and added to below: (If you are using Artifactory, you can skip this step.) Create an entirely separate Maven proxy repository (or group) on your corporate Maven repository, to proxy ivy-style repositories such as these two important ones: http://repo.typesafe.com/typesafe/ivy-releases/ http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/ This … Read more

good ivy tutorial for local repository? [closed]

Creating a local ivy repository is straight forward, maven is not required. Here’s an example of publishing some text files using ivy as a standalone program. I have 3 files I want to publish: src/English.txt src/Spanish.txt src/Irish.txt The ivy file src/ivy.xml details the name of the module and a list of the artifacts being published. … Read more

Convert ivy.xml to pom.xml

What you really need to do is publish the jars built by ANT project into your Maven repository. ant -Dproject.version=0.9.0-local-20120211095554 clean publish I know you don’t want to change the ANT build, but creating an extra “publish” target will properly integrate your ANT and Maven projects. The two jar artifacts, published by your modified ANT … Read more

Class not found with Ant, Ivy and JUnit – error in build.xml?

Example Project contains the following files: ├── build.xml ├── ivy.xml └── src ├── main │   ├── java │   │   └── org │   │   └── demo │   │   └── App.java │   └── resources │   └── log4j.properties └── test └── java └── org └── demo └── AppTest.java Build runs as follows: $ ant Buildfile: /home/mark/Files/Dev/ivy/demo/build.xml resolve: [ivy:resolve] … Read more

How are maven scopes mapped to ivy configurations by ivy

The following two articles helped me to better understand how Maven and Ivy inter-operate http://www.symphonious.net/2010/01/25/using-ivy-for-dependency-management/ http://lightguard-jp.blogspot.com/2009/04/ivy-configurations-when-pulling-from.html Oddly, I never really understood ivy configurations, until it was explained how they can be used to simulate Maven scopes. The following listis from the www.symphonious.net link and illustrates the available configurations from pom-files/maven repositories: default runtime dependencies and … Read more