Cannot build the runtime
lionelvillard opened this issue · 2 comments
lionelvillard commented
I followed these instructions. I'm getting this error:
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':tests:testCompileClasspath'.
> Could not find org.apache.openwhisk:openwhisk-tests:1.0.0-SNAPSHOT.
Searched in the following locations:
https://repo1.maven.org/maven2/org/apache/openwhisk/openwhisk-tests/1.0.0-SNAPSHOT/maven-metadata.xml
https://repo1.maven.org/maven2/org/apache/openwhisk/openwhisk-tests/1.0.0-SNAPSHOT/openwhisk-tests-1.0.0-SNAPSHOT.pom
https://repo1.maven.org/maven2/org/apache/openwhisk/openwhisk-tests/1.0.0-SNAPSHOT/openwhisk-tests-1.0.0-SNAPSHOT-tests.jar
Required by:
project :tests
lionelvillard commented
note that ./gradlew distDocker
works as expected. Maybe ./gradlew build
is not needed anymore and the readme should be fixed?
sciabarracom commented
actually the build, as the other runtimes, expects you have already installed locally in a maven repository the test jars as they historically were not published in maven central. Also since to run the tests you need to have built the docker images, the procedure is:
- do a ./gradlew install of the openwhisk repo
- ./gradlew -x test distDocker
- ./gradlew test
patches to cleanup this situation are welcome