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

maven repo offline? #16

Open
jcorcoran opened this issue Jan 13, 2024 · 7 comments
Open

maven repo offline? #16

jcorcoran opened this issue Jan 13, 2024 · 7 comments

Comments

@jcorcoran
Copy link

Attempting to build now w/ wpilib 2024 project.

It looks like the maven repo is offline:

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\jcorcoran\Documents\!FRC\git\2024_Robot\build.gradle' line: 96

* What went wrong:
Could not determine the dependencies of task ':jar'.
> Could not resolve all files for configuration ':runtimeClasspath'.
   > Could not resolve pw.otake.pseudoresonance:pixy2-java-api:1.4.1.
     Required by:
         project :
      > Could not resolve pw.otake.pseudoresonance:pixy2-java-api:1.4.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/pw/otake/pseudoresonance/pixy2-java-api/1.4.1/pixy2-java-api-1.4.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/pw/otake/pseudoresonance/pixy2-java-api/1.4.1/pixy2-java-api-1.4.1.pom'. Received status code 523 from server: 
   > Could not resolve edu.wpi.first.wpilibj:wpilibj-java:2024.1.1.
     Required by:
         project :
      > Could not resolve edu.wpi.first.wpilibj:wpilibj-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpilibj/wpilibj-java/2024.1.1/wpilibj-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpilibj/wpilibj-java/2024.1.1/wpilibj-java-2024.1.1.pom'. Received status code 523 from server: 
   > Could not resolve edu.wpi.first.wpimath:wpimath-java:2024.1.1.
     Required by:
         project :
      > Could not resolve edu.wpi.first.wpimath:wpimath-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpimath/wpimath-java/2024.1.1/wpimath-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpimath/wpimath-java/2024.1.1/wpimath-java-2024.1.1.pom'. Received status code 523 from server: 
   > Could not resolve edu.wpi.first.ntcore:ntcore-java:2024.1.1.
     Required by:
         project :
      > Could not resolve edu.wpi.first.ntcore:ntcore-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/ntcore/ntcore-java/2024.1.1/ntcore-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/ntcore/ntcore-java/2024.1.1/ntcore-java-2024.1.1.pom'. Received status code 523 from server: 
   > Could not resolve edu.wpi.first.cscore:cscore-java:2024.1.1.
     Required by:
         project :
      > Could not resolve edu.wpi.first.cscore:cscore-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/cscore/cscore-java/2024.1.1/cscore-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/cscore/cscore-java/2024.1.1/cscore-java-2024.1.1.pom'. Received status code 523 from server: 
   > Could not resolve edu.wpi.first.cameraserver:cameraserver-java:2024.1.1.
     Required by:
         project :
      > Could not resolve edu.wpi.first.cameraserver:cameraserver-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/cameraserver/cameraserver-java/2024.1.1/cameraserver-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/cameraserver/cameraserver-java/2024.1.1/cameraserver-java-2024.1.1.pom'. Received status code 523 from server: 
   > Could not resolve edu.wpi.first.hal:hal-java:2024.1.1.
     Required by:
         project :
      > Could not resolve edu.wpi.first.hal:hal-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/hal/hal-java/2024.1.1/hal-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/hal/hal-java/2024.1.1/hal-java-2024.1.1.pom'. Received status code 523 from server:
   > Could not resolve edu.wpi.first.wpinet:wpinet-java:2024.1.1.
     Required by:
         project :
      > Could not resolve edu.wpi.first.wpinet:wpinet-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpinet/wpinet-java/2024.1.1/wpinet-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpinet/wpinet-java/2024.1.1/wpinet-java-2024.1.1.pom'. Received status code 523 from server:
   > Could not resolve edu.wpi.first.wpilibj:wpilibj-java:2024.1.1.
     Required by:
         project : > com.github.Oblarg:Oblog:5.1.0
      > Could not resolve edu.wpi.first.wpilibj:wpilibj-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpilibj/wpilibj-java/2024.1.1/wpilibj-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpilibj/wpilibj-java/2024.1.1/wpilibj-java-2024.1.1.pom'. Received status code 523 from server:
   > Could not resolve edu.wpi.first.wpimath:wpimath-java:2024.1.1.
     Required by:
         project : > com.github.Oblarg:Oblog:5.1.0
      > Could not resolve edu.wpi.first.wpimath:wpimath-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpimath/wpimath-java/2024.1.1/wpimath-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpimath/wpimath-java/2024.1.1/wpimath-java-2024.1.1.pom'. Received status code 523 from server:
   > Could not resolve edu.wpi.first.ntcore:ntcore-java:2024.1.1.
     Required by:
         project : > com.github.Oblarg:Oblog:5.1.0
      > Could not resolve edu.wpi.first.ntcore:ntcore-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/ntcore/ntcore-java/2024.1.1/ntcore-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/ntcore/ntcore-java/2024.1.1/ntcore-java-2024.1.1.pom'. Received status code 523 from server:
   > Could not resolve edu.wpi.first.cscore:cscore-java:2024.1.1.
     Required by:
         project : > com.github.Oblarg:Oblog:5.1.0
      > Could not resolve edu.wpi.first.cscore:cscore-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/cscore/cscore-java/2024.1.1/cscore-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/cscore/cscore-java/2024.1.1/cscore-java-2024.1.1.pom'. Received status code 523 from server:
   > Could not resolve edu.wpi.first.cameraserver:cameraserver-java:2024.1.1.
     Required by:
         project : > com.github.Oblarg:Oblog:5.1.0
      > Could not resolve edu.wpi.first.cameraserver:cameraserver-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/cameraserver/cameraserver-java/2024.1.1/cameraserver-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/cameraserver/cameraserver-java/2024.1.1/cameraserver-java-2024.1.1.pom'. Received status code 523 from server:
   > Could not resolve edu.wpi.first.hal:hal-java:2024.1.1.
     Required by:
         project : > com.github.Oblarg:Oblog:5.1.0
      > Could not resolve edu.wpi.first.hal:hal-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/hal/hal-java/2024.1.1/hal-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/hal/hal-java/2024.1.1/hal-java-2024.1.1.pom'. Received status code 523 from server:
   > Could not resolve edu.wpi.first.wpinet:wpinet-java:2024.1.1.
     Required by:
         project : > com.github.Oblarg:Oblog:5.1.0
      > Could not resolve edu.wpi.first.wpinet:wpinet-java:2024.1.1.
         > Could not get resource 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpinet/wpinet-java/2024.1.1/wpinet-java-2024.1.1.pom'.
            > Could not GET 'https://nexus.otake.pw/repository/maven-public/edu/wpi/first/wpinet/wpinet-java/2024.1.1/wpinet-java-2024.1.1.pom'. Received status code 523 from server:

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

BUILD FAILED in 29s

 *  The terminal process "cmd.exe /d /c gradlew build   -Dorg.gradle.java.home="C:\Users\Public\wpilib\2024\jdk"" terminated with exit code: 1. 
 *  Terminal will be reused by tasks, press any key to close it. 

@PseudoResonance
Copy link
Owner

I had a drive failure a few weeks ago and have been working on trying to restore the data, but ended up having a lot of issues along the way. It will probably take at least a few more weeks until I get all the parts necessary to restore it. In the mean time, it is available directly here, and you could also use a service such as Gitpack. I apologize for the confusion.

@jsmith128
Copy link

How would I go about installing the library manually? The maven repository is still offline unfortunately.

@PseudoResonance
Copy link
Owner

There are a couple options.
You can download a compiled jar here and add it to your dependencies. This exact process will depend on the IDE/build system you are using, but it should be fairly easy. Here's gradle.

You can also use GitHub's package repository here, however this can be annoying as you need to authenticate your requests to it with an API token from your account.

Finally, you could also just copy paste the code into your project, although I wouldn't really recommend this option as it's more difficult to maintain.

I cannot make guaranteed promises at this point, but I hope that I'll have all my old services restored by the end of April. Unfortunately, all of this stuff was basically run for my hobby purposes, but since losing my data, I've realized the importance in making sure it's resilient and secure, and I've had to spend a lot of time relearning everything the proper way to make sure it never happens again.

@jsmith128
Copy link

Okay thank you for your help! I appreciate you putting so much time and effort into maintaining this after all these years.

@jcorcoran
Copy link
Author

@jsmith128
If it helps, I attempted to get a maven repo setup to no avail after the suggestion was made.
I don't use maven enough to know what I was doing wrong, so pivot to quick & dirty

I ended up just copying the source directly into our project.
image

And then making some changes to handle the 2024 lib changes:
image

We didn't end up using the pixy for too long, but the code seemed to work for getting target position metrics
There could be issues I'm unaware of

Also, thanks @PseudoResonance for the help and work on this lib

@jsmith128
Copy link

jsmith128 commented Apr 4, 2024

Thanks @jcorcoran!
I ended up getting it working by putting the pixy2-java-api.jar file into a new folder project_root/libs, and then adding the following line into build.gradle under the depedencies {} block.
implementation fileTree(dir: 'libs', include: ['*.jar'])

And then simply importing like any other library import io.github.pseudoresonance.pixy2api.Pixy2;

It should be worth noting that we haven't actually tested it on our robot yet, so we may need to do it your way with the code changes!

@democat3457
Copy link
Contributor

Thanks to the merging of #17, you can now use jitpack's maven repo to get this dependency to your project with the maven string 'com.github.PseudoResonance:Pixy2JavaAPI:dd753b74d4' and the repository maven { url 'https://jitpack.io' }: see the commit-locked jitpack for more info: https://jitpack.io/#PseudoResonance/Pixy2JavaAPI/dd753b74d4

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