Hi, It's not clear to me, from the subject of your email nor its content, whether this is a pure "clojure-maven-plugin" issue, or also related to Eclipse, and/or related to Counterclockwise.
Cheers, -- Laurent 2011/3/2 Zlatko Josic <zlatko.jo...@gmail.com> > Hi, > > I use eclipse clojure & maven for developing applications. I have clojure > maven plugin installed. > I start script with clojure:run goal. The script creates server socket. > After i terminate script from > eclipse the socket is stil alive. When I start script again I got address > already in use error. > > Am I doing something wrong? Is there other way to start clojure > script/program from maven? > > > Thanks > > Zlaja > > P.S > > > This is may script : > > (ns clojure.examples.example5) > > (import (java.net ServerSocket)) > > > (def server-socket (new ServerSocket 5432)) > > > ;Creates programs loop and prints message every second > > (loop > [] > (println "server waits for a client") > (let [client-socket (.accept server-socket)] > (println "client accepted") > (recur))) > > > and this is may pom.xml file : > > <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/xsd/maven-4.0.0.xsd"> > <modelVersion>4.0.0</modelVersion> > <groupId>com.amsi</groupId> > <artifactId>module-server</artifactId> > <version>0.1</version> > <build> > <sourceDirectory>src</sourceDirectory> > <plugins> > <plugin> > > <groupId>com.theoryinpractise</groupId> > > <artifactId>clojure-maven-plugin</artifactId> > > <version>1.3.2</version> > <configuration> > <script>src/clojure/examples/example5.clj</script> > </configuration> > > <executions> > > <execution> > > <id>compile-clojure</id> > > <phase>compile</phase> > > <goals> > > <goal>compile</goal> > > </goals> > > </execution> > > </executions> > > </plugin> > > </plugins> > </build> > > <dependencies> > > <dependency> > > <groupId>org.clojure</groupId> > > <artifactId>clojure</artifactId> > > <version>1.2.0</version> > > </dependency> > > <dependency> > > <groupId>org.clojure</groupId> > > <artifactId>clojure-contrib</artifactId> > > <version>1.2.0</version> > > </dependency> > > </dependencies> > > > <repositories> > <repository> > <id>clojure-releases</id> > <url>http://build.clojure.org/releases</url> > </repository> > > <repository> > <id>clojars</id> > <url>http://clojars.org/repo/</url> > </repository> > </repositories> > </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 -- 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