Open wtwhite opened 7 months ago
I got around this by running mvn package -DskipTests
first, which succeeded. After that, mvn package
worked:
wtwhite@wtwhite-vuw-vm:~/code/provenance-injector$ mvn package -DskipTests
--snip--
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.067 s
[INFO] Finished at: 2023-12-15T14:28:42+13:00
[INFO] ------------------------------------------------------------------------
wtwhite@wtwhite-vuw-vm:~/code/provenance-injector$ find . -name 'provenance-agent*.jar'
./target/provenance-agent.jar
wtwhite@wtwhite-vuw-vm:~/code/provenance-injector$ mvn package
--snip--
[INFO] Results:
[INFO]
[INFO] Tests run: 22, Failures: 0, Errors: 0, Skipped: 0
--snip--
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.663 s
[INFO] Finished at: 2023-12-15T14:29:10+13:00
[INFO] ------------------------------------------------------------------------
However, this means tests will always be executing on the previous compilation's code, which is confusing.
Ideally, fix pom.xml
to generate the needed provenance-agent.jar
before tests are run (perhaps this could be done by making the tests integration tests?). If that's not possible, update the README -- including the warning above.
This is most likely what https://github.com/veracitylab/provenance-injector/issues/1#issuecomment-1740071367 is referring to.