1

I am green with maven, how to compile aar library from zxing project? I tried use axis2 maven plugin, but i get error:

[ERROR] Failed to execute goal on project android: Could not resolve dependencies for project com.google.zxing:android:jar:4.7.0: The following artifacts could not be resolved: com.google.zxing:core:jar:3.1.1-SNAPSHOT, com.google.zxing:android-core:jar:3.1.1-SNAPSHOT: Could not find artifact com.google.zxing:core:jar:3.1.1-SNAPSHOT

djv
  • 15,168
  • 7
  • 48
  • 72
marcu
  • 223
  • 4
  • 14
  • Do you mean an .apk? what's an aar? – Sean Owen Feb 06 '15 at 16:06
  • @SeanOwen: Android Archive. The format for android libraries. It includes the compiled java source and the resources. see http://tools.android.com/tech-docs/new-build-system/aar-format – njzk2 Feb 06 '15 at 16:10
  • did you try http://stackoverflow.com/questions/24309950/create-aar-file-in-android-studio ? – njzk2 Feb 06 '15 at 16:11
  • `android/` isn't a library and shouldn't be treated as one, so you won't be able to create an .aar for it. – Sean Owen Feb 06 '15 at 16:13

1 Answers1

0

Whatever you're trying to do, the error means what it says. There is no 3.1.1-SNAPSHOT artifact until you create and install one locally. You can do that with mvn -DskipTests install at the top level. See also https://github.com/zxing/zxing/wiki/Getting-Started-Developing

Sean Owen
  • 66,182
  • 23
  • 141
  • 173