python-zxing icon indicating copy to clipboard operation
python-zxing copied to clipboard

Non-mvn instructions

Open AbdealiLoKo opened this issue 9 years ago • 2 comments

The readme gives usage instructions that need maven. As I'm making a python application, it wouldn't be appropriate for me to ask my users to install maven and build maven packages. Isn't there a standalone jar file or so that they can simply download and use ?

AbdealiLoKo avatar May 30 '16 01:05 AbdealiLoKo

You can build a standalone jar yourself from the zxing project and distribute that along with your application.

Simply run:

cd zxing/javase/
mvn -DskipTests package assembly:single

A standalone jar will be generated in the javase/target/ directory with the name javase-X.X.X-jar-with-dependencies.jar, which you can then distribute.

You do have to modify the __init__.py by replacing libs = ... and args = ... with libs = ["javase/javase.jar"] and args = ["-jar", "LIBS"].

alanrgan avatar Jun 01 '17 19:06 alanrgan

getting this error when trying to build standalone or mvn install in the javase folder.

" Failed to execute goal on project javase: Could not resolve dependencies for project com.google.zxing:javase:jar:3.4.1-SNAPSHOT: Failed to collect dependencies at com.google.zxing:core:jar:3.4.1-SNAPSHOT: Failed to read artifact descriptor for com.google.zxing:core:jar:3.4.1-SNAPSHOT: Could not find artifact com.google.zxing:zxing-parent:pom:3.4.1-SNAPSHOT -> [Help 1]"

seems like it doesn't exist anymore.

Matt-Payne avatar Dec 21 '19 02:12 Matt-Payne