Could not find artifact ai.verta:protos-public:jar:1.0-SNAPSHOT when building images from source
nicecatch2000 opened this issue · 2 comments
I've followed the tutorial about Build images from source and deploy. However, when I run:
./build_all_no_deploy_modeldb.sh
There is an error:
[ERROR] Failed to execute goal on project common: Could not resolve dependencies for project ai.verta.common:common:jar:1.0-SNAPSHOT: Could not find artifact ai.verta:protos-public:jar:1.0-SNAPSHOT -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project common: Could not resolve dependencies for project ai.verta.common:common:jar:1.0-SNAPSHOT: Could not find artifact ai.verta:protos-public:jar:1.0-SNAPSHOT
How can I fix this situation? Thank you!
I believe you just need to run a mvn install
for the protos jar to end up in your local maven cache.
I'm not a Java developer, but I don't understand why i need mvn in my development environment when building the backend image?
#!/bin/bash
set -e
mvn clean
mvn package -Dmaven.test.skip=true
docker build --no-cache -t vertaaiofficial/modeldb-backend:latest -f dockerfile --rm .