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

build.sh fails because Maven now requires HTTPS to be used instead of HTTP #315

Closed
alexhenrie opened this issue May 31, 2021 · 13 comments
Closed

Comments

@alexhenrie
Copy link
Contributor

alexhenrie commented May 31, 2021

./build.sh fails with the following error on my computer:

[ERROR] Failed to execute goal on project OWLTools-Core: Could not resolve dependencies for project org.bbop:OWLTools-Core:jar:0.3.0-SNAPSHOT: Failed to collect dependencies at org.bbop:oboformat-tools:jar:0.7.3: Failed to read artifact descriptor for org.bbop:oboformat-tools:jar:0.7.3: Could not transfer artifact org.bbop:oboformat-tools:pom:0.7.3 from/to maven-default-http-blocker (http://0.0.0.0/): Blocked mirror for repositories: [BerkeleyBOP (http://code.berkeleybop.org/maven/repository/, default, releases+snapshots), BerkeleyBOPSnapshot (http://code.berkeleybop.org/maven/snapshot-repository/, default, releases+snapshots)] -> [Help 1]

This is because Maven 3.8.1, released in April, blocks HTTP downloads by default to prevent man-in-the-middle attacks. Could you please move http://code.berkeleybop.org/maven/repository/ to https://code.berkeleybop.org/maven/repository/ (or another HTTPS location) and update the URLs in OWLTools-Parent/pom.xml?

@egchristensen
Copy link

I second this request.

@balhoff
Copy link
Member

balhoff commented Jun 1, 2021

@alexhenrie and @egchr out of curiosity, are you building owltools itself, or are you including owltools as a dependency in another Maven project? For the former situation, I just wanted to point out in case it was helpful, we do have pre-built releases here: https://github.com/owlcollab/owltools/releases

In any case hopefully the Berkeley group will be able to turn on HTTPS in the near future.

@alexhenrie
Copy link
Contributor Author

alexhenrie commented Jun 1, 2021

We would use the pre-built releases, but they don't work either because they were built before 3230a8b.

@alexhenrie
Copy link
Contributor Author

Sorry, I should have double-checked that before commenting. The pre-built releases do work, so this bug is only a problem when trying to compile OWLTools yourself.

@kltm
Copy link
Member

kltm commented Jun 8, 2021

Unfortunately, getting a cert for our current setup (S3 direct hosting) is not doable, so I'll be pushing it towards a more typical S3/CloudFront setup. I've starting the process of doing the validation and will update here as there is progress.

@alexhenrie
Copy link
Contributor Author

For what it's worth, Let's Encrypt has been easy to use and has worked very well for me.

@kltm
Copy link
Member

kltm commented Jun 8, 2021

@alexhenrie Unfortunately, in this case, not really an option for us unless we setup a machine for this.

@kltm
Copy link
Member

kltm commented Jun 10, 2021

I believe I've managed to get the certificate issues sorted out and am now attempting to switch the DNS over to the new site. However, given how it's managed, I can only operate on it at about the frequency of a day. I believe this test should be fine, but there is a small possibility that we'll have to revert due to an outage.

@kltm
Copy link
Member

kltm commented Jun 10, 2021

Okay, a little surprised, but it seems that HTTP and HTTPS and now functioning for code.berkeleybop.org. Somebody else may want to check.

Is this sufficient to close this out, or does automatic upgrade need to be added (i.e. maven does not attempt on its own)?

@alexhenrie
Copy link
Contributor Author

OWLTools-Parent/pom.xml needs to be updated to use the HTTPS addresses. Thanks!

balhoff added a commit that referenced this issue Jun 11, 2021
Use https for berkeleybop maven repo, for #315
@balhoff
Copy link
Member

balhoff commented Jun 11, 2021

Fixed by #317.

@balhoff balhoff closed this as completed Jun 11, 2021
@balhoff
Copy link
Member

balhoff commented Jun 11, 2021

@alexhenrie the new URL seemed to work on Travis. Could you give it a try now?

@alexhenrie
Copy link
Contributor Author

Yes, it works now, thanks!

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

4 participants