-
Notifications
You must be signed in to change notification settings - Fork 12
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
Maven Repo is shut down: bean-test not available anymore #29
Comments
Hi @StefanKock sorry that this happened to you. We were not aware that the project was being used in this way. Actually I am positively surprised that the project is being used nowadays as its general purpose back then was only to showcase an alternative for testing Java EE applications. The bad news is that our maven repo will be offline forever. We decided to shut it down for good. The good news is that, as you could already see, we started working to provide another alternative. I cannot tell you a timeline when this will be ready. BTW, we are open to contributions in that regard 😉 Regards, |
Hi @carlosbarragan, thanks for you quick try, I saw it and we followed up on it. We made the approach with Github Packages running, see hzi-braunschweig@8f0cb57 to publish version 0.2.0.Final . But the inconvenience with mandatory credentials is too annoying, and hardcoding the login to basically all public Github Packages repositories is probably a bit too extreme. My current approach is to deliver a workaround for my project, but I would really appreciate a publicly hosted artifact under the original maven coordinates. |
We now went with the system scope approach as workaround. |
We are still evaluating whether we publish it to maven or we follow the approach of using GitHub as a maven Repository: https://gist.github.com/fernandezpablo85/03cf8b0cd2e7d8527063 I also noticed some dependencies are really old and have vulnerabilities so it would be a good idea to update them. I also think that JDK 11 as baseline would be appropriate. However, I don't know if Java 11 and the dependencies update could affect your project because of version conflicts etc. |
The idea to use the Github repo tree as Maven Repository looks as an option (if it works but looks like it), but still less straight forward than Maven Central. I think updating to JDK 8 is probably a must if one would go into the topic updating dependencies. If JDK 11 is mandatory on the update path than it may be. But it would probably be helpful to publish a version compatible to 0.2.Final and keep dependency updates indipendent for a follow-up version. |
The "problem" with Maven Central is that it takes longer because of the requirements that need to be fulfilled. Besides, I don't know if they would easily accept an artefact that contains old dependencies with vulnerabilities 🤔 |
This week the repo where bean-test is hosted was shut down. This lets users hanging around without able to automatically download
bean-test
anymore.There is already a start with 9cb29eb to publish the artifact on Github Packages but it's not finished.
Possible Solution
Please provide the existing artifact
info.novatec:bean-test:0.2.Final
on a publicly available repository like Maven Central (howto: https://dzone.com/articles/how-to-publish-artifacts-to-maven-central).Workarounds for users
Summary possible workaround (partly under investigation).
1. Deploy to Maven Central as fork
Looks straightforward, but probably only Novatec can do this for the original artifact due to Maven Central checking ownership over the groupId. So it would be needed to fork, rewrite the groupId and then deploy to Maven Central.
2. Use Github Packages
Was started with 9cb29eb (thanks for that), can also be done with a self-maintained fork. But a downside is that Github Packages requires token authentication also for public repos (doc here: https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-apache-maven-registry). Setting secrets in every users settings.xml might not be ideal.
A workaround would be to write credentials into the pom.xml
Update: The approach with username:accesstoken is prevented by Github (actually, a good sign that hardcoded credentials don't work on Gihub :-) ):
A recent scan found a valid GitHub Personal Access Token linked to your GitHub account in commit at ...
3. Provide bean-test with
system
scopeUpload the existing jar into a maven project and link it with
Problem with this approach: Changing the scope lets transitive dependencies like deltaspike or weld not be part of the Classpath because there is no POM linked to lookup dependencies. I documented dependencies that I needed to add, but in depends on the use case.
Doc: https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#system-dependencies
The text was updated successfully, but these errors were encountered: