>
>
> I think the problem might also be that the failing tests are Java tests
> calling Java code, which is trying to call Clojure.
>
Usually I'd have Clojure code consuming Java code; then Java and/or Clojure
tests consuming compiled code, including classes from gen-class. But given
the order
Here's my sequence and results:
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources)
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile)
[INFO] --- clojure-maven-plugin:1.3.4:compile (clojure-compile)
[INFO] --- maven-resources-plugin:2.4.3:testResources
(default-tes
Can you post the error? It's hard to tell without looking at the details.
As you've may have seen, the order is this:
[INFO] [resources:resources {execution: default-resources}]
[INFO] [compiler:compile {execution: default-compile}]
[INFO] [clojure:compile {execution: compile-clojure}]
[INFO] [res
Armando,
Thanks for your help. I was using
`com. theoryinpractise.clojure-maven-plugin` at first but recently switched
because I figured the other would help (seeing that it was built by Stuart
Sierra..
I've switched back now, but stil receiving an error.
When I `mvn compile` all is fine and
This repo and plugin tags should do it.
clojure-releases
http://build.clojure.org/releases
...
com.theoryinpractise
clojure-maven-plugin
1.3.4
compile-clojure
compile
c
Right, I totally understand I need AOT compilation for calling Clojure from
Java. I'm asking how to set that up in maven.
Thanks for your help.
On Wednesday, May 16, 2012 9:58:18 AM UTC-4, Meikel Brandmeyer (kotarak)
wrote:
>
> Hi,
>
> you have to use AOT compilation to generate the class with
Hi,
you have to use AOT compilation to generate the class with gen-class.
Additionally you have to compile the clojure source before you compile the
java code since otherwise the class is missing. I don't know how to do this
with maven. I can tell you only for gradle.
Kind regards
Meikel
--
Meikel,
Thanks for your reply.
I should have been more clear. This is an existing Java app using maven.
How would I add to my pom to AOT-compile the Clojure pieces?
I'm using the clojure-maven-plugin, from
`com.theoryinpractise.clojure-maven-plugin`. I'll try Stuart's
`org.clojure.clojure-mav
Hi,
you are sure that your AOT compiled class files are on the classpath before
compiling the Java side?
Kind regards
Meikel
--
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 pos
I currently have a static method in Java. I have rewritten it in Clojure. I
wish to allow the rest of the Java app to call the new function with
minimal change. Still getting "NumberValidator cannot be resolved" even
after reading the following SO post and it's not helping for my particular
sit
10 matches
Mail list logo