Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find artifact ai.verta:protos-public:jar:1.0-SNAPSHOT when building images from source #4232

Open
nicecatch2000 opened this issue Nov 29, 2023 · 2 comments

Comments

@nicecatch2000
Copy link

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!

@jkwatson-verta
Copy link
Contributor

I believe you just need to run a mvn install for the protos jar to end up in your local maven cache.

@avnertzur
Copy link

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants