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

The POM for io.trygvis.usb:libusb:pom:1.0.1-1-SNAPSHOT is missing, no dependency information available #10

Open
AbbottWC opened this issue Jun 28, 2014 · 2 comments

Comments

@AbbottWC
Copy link

After dinking around for quite a while I was finally able to:
•Install the LibUSB Library (after git cloning it) into the /usr/local/lib directory
•Install the Java JDK 1.8.0_05 and set the home directory to its location
•Include the libusb.home variable in the pom.xml in the /usr/lib/javax-usb-libusb1 directory
•Find SOME level of success running mvn install (or sudo mvn install in this case because of the location).
However when I run it, rather then getting some blatantly obvious message that I did something stupid/wrong, I instead get the following:

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Javalibusb1
[INFO] Javalibusb1 :: javax.usb API implementation
[INFO] Javalibusb1 :: Implementation and JNI Wrapper
[INFO] Javalibusb1 :: javax.usb utilities
[INFO] Javalibusb1 :: FTDI Driver
[INFO] Javalibusb1 :: Misc USB tools
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Javalibusb1 1.0.1-1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ javax-usb-libusb1 ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (default) @ javax-usb-libusb1 ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ javax-usb-libusb1 ---
[INFO] Installing /usr/lib/javax-usb-libusb1/pom.xml to /root/.m2/repository/io/trygvis/usb/javax-usb-libusb1/1.0.1-1-SNAPSHOT/javax-usb-libusb1-1.0.1-1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Javalibusb1 :: javax.usb API implementation 1.0.1-1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ javax.usb ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (default) @ javax.usb ---
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ javax.usb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /usr/lib/javax-usb-libusb1/javax.usb/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ javax.usb ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ javax.usb ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /usr/lib/javax-usb-libusb1/javax.usb/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ javax.usb ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.6:test (default-test) @ javax.usb ---
[INFO] No tests to run.
[INFO] Surefire report directory: /usr/lib/javax-usb-libusb1/javax.usb/target/surefire-reports


T E S T S

There are no tests to run.

Results :

Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

[INFO]
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ javax.usb ---
[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ javax.usb ---
[INFO] Installing /usr/lib/javax-usb-libusb1/javax.usb/target/javax.usb-1.0.1-1-SNAPSHOT.jar to /root/.m2/repository/io/trygvis/usb/javax.usb/1.0.1-1-SNAPSHOT/javax.usb-1.0.1-1-SNAPSHOT.jar
[INFO] Installing /usr/lib/javax-usb-libusb1/javax.usb/pom.xml to /root/.m2/repository/io/trygvis/usb/javax.usb/1.0.1-1-SNAPSHOT/javax.usb-1.0.1-1-SNAPSHOT.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Javalibusb1 :: Implementation and JNI Wrapper 1.0.1-1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for io.trygvis.usb:libusb:pom:1.0.1-1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Javalibusb1 ....................................... SUCCESS [0.577s]
[INFO] Javalibusb1 :: javax.usb API implementation ....... SUCCESS [1.118s]
[INFO] Javalibusb1 :: Implementation and JNI Wrapper ..... FAILURE [0.065s]
[INFO] Javalibusb1 :: javax.usb utilities ................ SKIPPED
[INFO] Javalibusb1 :: FTDI Driver ........................ SKIPPED
[INFO] Javalibusb1 :: Misc USB tools ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.954s
[INFO] Finished at: Sat Jun 28 10:43:37 CDT 2014
[INFO] Final Memory: 10M/118M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project javalibusb1: Could not resolve dependencies for project io.trygvis.usb:javalibusb1:nar:1.0.1-1-SNAPSHOT: Failure to find io.trygvis.usb:libusb:pom:1.0.1-1-SNAPSHOT in https://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-nexus-snapshots has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :javalibusb1

This doesn't feel to me like something I did wrong. How can I correct this issue (Can I even correct this issue?)

@trygvis
Copy link
Owner

trygvis commented Jun 28, 2014

Run maven with the -Plibusb flag to include the libusb module.

@AbbottWC
Copy link
Author

Alright. Did that (sudo mvn install -Plibusb). Still no love:
At least its a different kind of error:
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Javalibusb1 :: Implementation and JNI Wrapper 1.0.1-1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-nar-plugin:2.1-trygvis-1:nar-validate (default-nar-validate) @ javalibusb1 ---
[INFO] Using AOL: amd64-Linux-gpp
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ javalibusb1 ---
[INFO]
[INFO] --- maven-enforcer-plugin:1.0:enforce (default) @ javalibusb1 ---
[INFO]
[INFO] --- maven-nar-plugin:2.1-trygvis-1:nar-download (default-nar-download) @ javalibusb1 ---
[INFO]
[INFO] --- maven-nar-plugin:2.1-trygvis-1:nar-unpack (default-nar-unpack) @ javalibusb1 ---
[INFO]
[INFO] --- maven-nar-plugin:2.1-trygvis-1:nar-gnu-configure (default-nar-gnu-configure) @ javalibusb1 ---
[INFO]
[INFO] --- maven-nar-plugin:2.1-trygvis-1:nar-system-generate (default-nar-system-generate) @ javalibusb1 ---
[INFO] Generating /usr/lib/javax-usb-libusb1/javalibusb1/target/nar/nar-generated/javalibusb1/NarSystem.java
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ javalibusb1 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-nar-plugin:2.1-trygvis-1:nar-resources (default-nar-resources) @ javalibusb1 ---
[INFO] Copied 0 resources
[INFO]
[INFO] --- maven-nar-plugin:2.1-trygvis-1:nar-gnu-resources (default-nar-gnu-resources) @ javalibusb1 ---
[INFO]
[INFO] --- maven-nar-plugin:2.1-trygvis-1:nar-vcproj (default-nar-vcproj) @ javalibusb1 ---
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ javalibusb1 ---
[INFO] Compiling 11 source files to /usr/lib/javax-usb-libusb1/javalibusb1/target/classes
[INFO]
[INFO] --- maven-nar-plugin:2.1-trygvis-1:nar-javah (default-nar-javah) @ javalibusb1 ---
[INFO] Running /usr/lib/jvm/jdk1.8.0_05/jre/../bin/javah compiler on 4 classes...
[ERROR] Error: Class javax.usb.event.UsbDeviceListener could not be found.
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Javalibusb1 ....................................... SUCCESS [0.736s]
[INFO] Javalibusb1 :: javax.usb API implementation ....... SUCCESS [1.353s]
[INFO] Javalibusb1 :: libusb ............................. SUCCESS [18.477s]
[INFO] Javalibusb1 :: Implementation and JNI Wrapper ..... FAILURE [2.916s]
[INFO] Javalibusb1 :: javax.usb utilities ................ SKIPPED
[INFO] Javalibusb1 :: FTDI Driver ........................ SKIPPED
[INFO] Javalibusb1 :: Misc USB tools ..................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 24.764s
[INFO] Finished at: Sat Jun 28 13:07:04 CDT 2014
[INFO] Final Memory: 17M/95M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.trygvis.usb:maven-nar-plugin:2.1-trygvis-1:nar-javah (default-nar-javah) on project javalibusb1: /usr/lib/jvm/jdk1.8.0_05/jre/../bin/javah failed with exit code 1 0x1 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :javalibusb1

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

2 participants