Leiningen 2 doesn't look like localrepo?

I am using Leiningen 2 and am struggling to recognize the local repository ($ HOME / .m2)

I am trying to use storm-rdbms (storm-contrib) which is not on clojar

Here are the steps I took:

  • Using the lein-localrepo plugin, install storm-rdbms in your local .m2 repository
  • pom.xml shows this:

    <groupId>storm-rdbms</groupId>
    <artifactId>storm-rdbms</artifactId>
    <versioning>
        <versions>
          <version>0.1-SNAPSHOT</version>
        </versions>
    <lastUpdated>20130214173431</lastUpdated>
    </versioning>
    
          

  • my project.clj file:

     :dependencies [[org.clojure/clojure "1.4.0"]
                    [storm "0.8.2"]
                    [storm-rdbms "0.1-SNAPSHOT"]]
     :plugins [[lein-localrepo "0.4.1"]]
     :repositories {"local" ~(str (.toURI (java.io.File. "~/.m2")))})
    
          

  • I am running depin:

     Could not find artifact storm-rdbms:storm-rdbms:jar:0.1-SNAPSHOT
     This could be due to a typo in :dependencies or network issues.
     Could not resolve dependencies
    
          

I've tried this with Maven too, but Maven 3 can't even install the jar following the directions here .

Please shed some light on what I am doing wrong here. Many thanks!

+3


source to share


1 answer


When you run mvn install, storm-rdbms doesn't seem to fit? install the pump when he installs the jar that was preventing lane from finding him.

here are the complete steps i used:



git clone git://github.com/nathanmarz/storm-contrib.git
cd storm-contrib/storm-rdbms/
mvn install
cp pom.xml ~/.m2/repository/storm/storm-rdbms/0.1-SNAPSHOT/storm-rdbms.pom  

cd ~/my-storm-project 
emacs project.clj and add this dep:
 [storm/storm-rdbms "0.1-SNAPSHOT"]
lein deps

      

I'm not sure if this is because it is a sub-project. I was unable to create the parent project because one of the other subprojects was broken when I checked it out ...

+2


source







All Articles