Leiningen was working just fine and I was perfectly happy, and one day I decided I'd like to wrap my head around maven. The instructions for using the maven clojure plugin are very concise and easy to follow, but they just don't seem to work for me. My pom.xml is at the bottom of this message.
1. "mvn clojure:run" does what I want it to do but when I try "mvn clojure:repl" or "mvn clojure:swank" I just get this, [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Building pounce [INFO] task-segment: [clojure:swank] [INFO] ------------------------------------------------------------------------ [INFO] Preparing clojure:swank [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Cannot find lifecycle mapping for packaging: 'clojure'. Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingclojure. [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2 seconds [INFO] Finished at: Wed Nov 10 20:20:16 MST 2010 [INFO] Final Memory: 16M/110M [INFO] ------------------------------------------------------------------------ 2. This might not be a maven problem but just a misunderstanding of unit tests. If I have the files src/main/clojure/com/curiouscat/ pounce/core.clj and src/test/clojure/com/curiouscat/pounce/core.clj "mvn clojure:test" will run tests in the core namespace but only those in the main file, not the test file. If I remove the test file no tests will be run. I assume that I should be able to contain all my tests in the test directory and I must be doing something wrong, what is it? <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.curiouscat</groupId> <artifactId>pounce</artifactId> <version>1.0-SNAPSHOT</version> <name>pounce</name> <url>http://maven.apache.org</url> <packaging>clojure</packaging> <repositories> <repository> <id>clojars</id> <url>http://clojars.org/repo</url> </repository> </repositories> <build> <plugins> <plugin> <groupId>com.theoryinpractise</groupId> <artifactId>clojure-maven-plugin</artifactId> <version>1.3.2</version> <extensions>true</extensions> <executions> <execution> <id>compile-clojure</id> <phase>compile</phase> <goals> <goal>compile</goal> </goals> </execution> <execution> <id>test-clojure</id> <phase>test</phase> <goals> <goal>test</goal> </goals> </execution> </executions> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.clojure</groupId> <artifactId>clojure</artifactId> <version>1.2.0</version> </dependency> <dependency> <groupId>swank-clojure</groupId> <artifactId>swank-clojure</artifactId> <version>1.2.1</version> </dependency> </dependencies> </project> -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en