clojure-maven-plugin icon indicating copy to clipboard operation
clojure-maven-plugin copied to clipboard

Running <script> tag on every goal task.

Open proofit404 opened this issue 13 years ago • 0 comments

Hello. I have following maven configuration (full version of pom.xml is here):

<!-- <packaging>clojure</packaging> -->
<packaging>jar</packaging>
...
<plugin>
  <groupId>com.theoryinpractise</groupId>
  <artifactId>clojure-maven-plugin</artifactId>
  <version>1.3.10</version>
  <!-- <extensions>true</extensions> -->
  <configuration>
    <script>src/main/clojure/proxy/main.clj</script>
  </configuration>
  <executions>
    <execution>
      <id>compile</id>
      <phase>compile</phase>
      <goals>
        <goal>compile</goal>
      </goals>
    </execution>
    <execution>
      <id>test</id>
      <phase>test</phase>
      <goals>
        <goal>test</goal>
      </goals>
    </execution>
  </executions>
</plugin>
...

I try to remove block and use clojure packaging together with block. The problem is the same. When I call commands below main.clj always run and wait for user stop him.

Commands I try:

  • mvn package
  • mvn clojure:repl
  • mvn test

And on mvn clojure:run its run as necessary.

proofit404 avatar Jan 06 '13 10:01 proofit404