androidtest maven build

61 views
Skip to first unread message

Diego

unread,
Jul 25, 2014, 4:43:29 AM7/25/14
to zx...@googlegroups.com
Hi guys,

I'm trying to build androidtest but I'm failing.

I checked out tag "zxing-3.1.0"; I've tried to run "mvn package" under android-integration and it worked successfully.

Unfortunately I get this error when running "mvn package" under androidtest:
$ mvn package
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.google.zxing:androidtest:1.4.2 (/home/diego/Kynetics/Progetti/ADU/Android/Apps/workspace/zxing/androidtest/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact com.google.zxing:zxing-parent:pom:3.0.2-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 43, column 11 -> [Help 2]
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

Can anybody give any help on this?

Bests,
Diego

Diego Rondini

unread,
Jul 25, 2014, 5:00:05 AM7/25/14
to zx...@googlegroups.com
Hi,

actually found out the problem was not relative path, but the fact that zxing-
parent version is wrong, had to change it this way:
$ git diff pom.xml
diff --git a/androidtest/pom.xml b/androidtest/pom.xml
index ea5c144..7c756ae 100644
--- a/androidtest/pom.xml
+++ b/androidtest/pom.xml
@@ -43,7 +43,7 @@
<parent>
<groupId>com.google.zxing</groupId>
<artifactId>zxing-parent</artifactId>
- <version>3.0.2-SNAPSHOT</version>
+ <version>3.1.0</version>
</parent>

<build>


Bests,
Diego

Sean Owen

unread,
Jul 25, 2014, 12:33:08 PM7/25/14
to zx...@googlegroups.com
Yeah, that's basically a mistake. I didn't fix it retroactively just because it only affects someone checking out and building from source, and only affects Android apps, and the Android apps aren't distributed in Maven. You can ignore these modules if you don't need them. Or, point those versions to 3.1.0. The next release will not have a reference to SNAPSHOT there.
Reply all
Reply to author
Forward
0 new messages