-
Notifications
You must be signed in to change notification settings - Fork 80
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
[KOGITO-2374] Setup Maven repo url #173
Conversation
08fe22c
to
643f221
Compare
32becbf
to
801c8e0
Compare
I am not sure that we should use |
Good point but the user should use normally the Maven central artifacts by default and not the JBoss ones or ? Another concern is that if we have a staging repository or another repository containing the latest snapshot artifacts and JBoss repo is not yet updated (a mirror repository takes some time for the update...), who has precedence on the other ? Another way would be to leverage the |
I am not sure if remove the default repo is a good idea, maybe use -U to force download the latests artifacts? |
@spolti yes and no because if I have 2 repositories both with those snapshots, the first one tried and answering ok will give the snapshots, and may be not up to date (mirroring in Maven can take time...) btw, for productive images, shouldn't the default repository be Maven central ? |
maybe disable the snapshots on jboss central might be better.
not really, jboss repo has been in use since beginning cloud effort, if there's a strong reason to change that, we can.
Even better, we can remove the jboss central from settings.xml and, during build time, if no repo is set at all, we define the default one. this way, no other repo will be added if you correctly set the maven configuration envs |
so will go for being able to change default Maven repo via |
28be97d
to
6e7c417
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, one suggestion above.
c58a4b6
to
2b1c83e
Compare
@spolti @Kaitou786 can you please review ? |
@radtriste shouldn't we also change the |
you are right. Missed it. I will update it. |
@Kaitou786 updated, as well as the README |
Thanks :) |
https://issues.redhat.com/browse/KOGITO-2374
Consider the given repo-url in local and remote builds.
KOGITO_MAVEN_REPO_URL
is added if needed to change the default Kogito artifacts url (https://repository.jboss.org/nexus/content/groups/public/
).clone-repos.sh
is using theconfigure
&settings.xml
from kogito-mavenMany thanks for submitting your Pull Request ❤️!
Please make sure your PR meets the following requirements:
[KOGITO-XYZ] Subject