PseudoResonance / Pixy2JavaAPI

Pixy2 API ported to Java for FIRST Robotics RoboRIO
37 stars 11 forks source link

Does not work with latest WPILib #9

Closed JasonTheKitten closed 4 years ago

JasonTheKitten commented 4 years ago

This does not appear to work with the latest version of WPILib, failing with this error:

Could not determine the dependencies of task ':jar'.
> Could not resolve all files for configuration ':compile'.
   > Could not find edu.wpi.first.thirdparty.frc2019.opencv:opencv-java:3.4.4-4.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/edu/wpi/first/thirdparty/frc2019/opencv/opencv-java/3.4.4-4/opencv-java-3.4.4-4.pom
       - https://repo.maven.apache.org/maven2/edu/wpi/first/thirdparty/frc2019/opencv/opencv-java/3.4.4-4/opencv-java-3.4.4-4.jar
       - https://nexus.otake.pw/repository/maven-public/edu/wpi/first/thirdparty/frc2019/opencv/opencv-java/3.4.4-4/opencv-java-3.4.4-4.pom
       - https://nexus.otake.pw/repository/maven-public/edu/wpi/first/thirdparty/frc2019/opencv/opencv-java/3.4.4-4/opencv-java-3.4.4-4.jar
       - file:/C:/Users/Public/wpilib/2020/maven/edu/wpi/first/thirdparty/frc2019/opencv/opencv-java/3.4.4-4/opencv-java-3.4.4-4.pom
       - file:/C:/Users/Public/wpilib/2020/maven/edu/wpi/first/thirdparty/frc2019/opencv/opencv-java/3.4.4-4/opencv-java-3.4.4-4.jar
       - https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/thirdparty/frc2019/opencv/opencv-java/3.4.4-4/opencv-java-3.4.4-4.pom
       - https://frcmaven.wpi.edu/artifactory/release/edu/wpi/first/thirdparty/frc2019/opencv/opencv-java/3.4.4-4/opencv-java-3.4.4-4.jar
     Required by:
         project : > pw.otake.pseudoresonance:pixy2-java-api:1.3.4

It works on last year's version of WPILib though, however, that does not work with the latest robot firmware, so...

JasonTheKitten commented 4 years ago

Manually copying the source files appears to work

PseudoResonance commented 4 years ago

It seems they've shaded some resources to contain the current year in the package name, but the latest version 1.3.5 no longer requires the additional, unnecessary dependencies, so it should work in any year.