Can't compile my glue project anymore because dependencies aren't on classpath #5
Comments
I can build your solution compiles (with the tests turned off) using the following scripts. Note that it deletes your local Maven cache. #!/bin/bash
### WARNING: this deletes your local Maven cache
rm -rf ~/.m2
mkdir funnyqt
cd funnyqt
git clone https://github.com/tsdh/ttc15-train-benchmark-funnyqt/
git clone git@github.com:tsdh/trainbenchmark-ttc.git
cd ttc15-train-benchmark-funnyqt/
lein install
ll ~/.m2/repository/ttc15-train-benchmark-funnyqt/ttc15-train-benchmark-funnyqt/0.1.0-SNAPSHOT/
cd ..
cd trainbenchmark-ttc/
mvn clean install -DskipTests Some information on my system: $ cat /etc/issue
Linux Mint 17.1 Rebecca \n \l
$ mvn -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /usr/share/maven3
Java version: 1.8.0_40, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-37-generic", arch: "amd64", family: "unix"
$ lein -version
Leiningen 2.5.1 on Java 1.8.0_40 Java HotSpot(TM) 64-Bit Server VM |
Well, I've ran the script once, and indeed the build succeeded. Then I pushed a new commit to my fork (first I rebased my master branch and then pushed it with
The maven output with the single execution that worked was:
As you can see, in this single execution the Anyway, when re-running your script after deleting the I don't know maven very well but this looks to me as if the order in which the tasks (or maven calls that goals, right?) are executed is arbitrary (based on |
Ah, I'm too stupid. My last change accidentally removed an |
No problem, Maven is very tricky and hard to debug -- last year we wasted days until we got our Maven/Tycho build right (and it was still slow and tedious to maintain). |
Maven is actually a great tool when used through Leiningen. But using it bare-bones is kind of a pain if you don't do that daily. Anyway, good that it works again now. Then I can start writing the solution description. And the solution descriptions for the two other cases. |
My solution glue project in my trainbenchmark-ttc fork used to work fine. But now I've changed some stuff in my solution and merged the latest changes from FTSRG/trainbenchmark-ttc into my fork, and since then, it won't compile because of errors like these:
It seems that my solution's dependencies aren't fetched and added to the classpath anymore. And indeed, the
target/
directory of my glue project doesn't contain adependencies/
subfolder.But I think I have my deps correctly declared. See my glue project's pom.xml. My solution is deployed to my local maven repository, and the transitive dependencies can all be fetched from there and from Clojars which I added as another repo here.
The maven output for my glue project is
As you can see, it doesn't even try to fetch the declare dependencies.
Is there anything I'm doing wrong?
The text was updated successfully, but these errors were encountered: