Ok so I’m having sorta kinda strange behaviour. St...
# amper
j
Ok so I’m having sorta kinda strange behaviour. Standalone 0.4.0 setup running on macos M1 on 21.0.2-tem). When the module.yaml looks like this:
Copy code
product: jvm/app

dependencies:
  - io.ktor:ktor-server-core:3.0.0-beta-2
  - io.ktor:ktor-server-netty:3.0.0-beta-2
#  - org.apache.logging.log4j:log4j-core:2.17.1
it works just peachy, although no logs because of “No SLF4J providers were found”, blah blah blah. And as soon as I uncomment last dependency for log4j and do
./amper clean ; ./amper build
, it just breaks with
Copy code
ERROR: Task ':system-token-server:resolveDependenciesJvmTest' failed: File '/Users/jakub.gwozdz@example.com/Library/Caches/Amper/.m2.cache/org/junit/jupiter/junit-jupiter-params/5.7.2/junit-jupiter-params-5.7.2-all.jar' was returned from dependency resolution, but is missing on disk
I don’t have any tests, my whole setup is three files:
src/Main.kt
with “embeddedServer(…)“,
./amper
as a build tool wrapper and
./module.yaml
Could someone confirm if this is actual error or just something on my environment?
youtrack new 1
also this:
Copy code
❯ ls ~/Library/Caches/Amper/.m2.cache/org/junit/jupiter/junit-jupiter-params/5.7.2/ 
junit-jupiter-params-5.7.2.jar                  junit-jupiter-params-5.7.2.module.sha512        junit-jupiter-params-5.7.2.pom.sha512
junit-jupiter-params-5.7.2.module               junit-jupiter-params-5.7.2.pom
notice there is indeed no
-all.jar
file
z
Created this quick reproducer, I am seeing the same problem - even though it seemed like it worked initially, after a
clean
and a
build
it's now broken pretty persistently
j
well. it is possible that the problem is with this particular dependency. it’s been fixed after I switched it to
org.apache.logging.log4j:log4j-slf4j2-impl:2.23.1
(so it’s now just a cosmetic issue with misleading error message)