Unable to build the javase.jar,but core.jar is fine

235 views
Skip to first unread message

Cropse

unread,
Jan 6, 2015, 11:10:47 PM1/6/15
to zx...@googlegroups.com
This is my platform
32-bit win7 with Java 8 and Maven 3.2.5
Apache Maven 3.2.5 (12a6b3acb947671f09b81f49094c53f426d8cea1; 2014-12-15T01:29:2
3+08:00)
Maven home: C:\apache-maven-3.2.5
Java version: 1.8.0_05, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_05\jre
Default locale: zh_TW, platform encoding: MS950
OS name: "windows 7", version: "6.1", arch: "x86", family: "dos"

step by step according "Getting Started Developing"

core/ run mvn -DskipTests package is fine and see the target/ directory
javase/ run mvn package

I get the following error,please help

C:\Users\CROPSE.MA\Desktop\zxing-master\javase>mvn package
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ZXing Java SE extensions 3.1.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.google.zxing:core:jar:3.1.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.272 s
[INFO] Finished at: 2015-01-07T12:04:19+08:00
[INFO] Final Memory: 7M/23M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project javase: Could not resolve dependencies
for project com.google.zxing:javase:jar:3.1.1-SNAPSHOT: Failure to find com.goo
gle.zxing:core:jar:3.1.1-SNAPSHOT in https://repo1.maven.org/maven2 was cached i
n the local repository, resolution will not be reattempted until the update inte
rval of central 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 swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyReso
lutionException

Lachezar Dobrev

unread,
Jan 7, 2015, 5:10:32 AM1/7/15
to Cropse, zxing
In core do a 'mvn install'.
Then you should be able to 'mvn package' in javase.
> --
> You received this message because you are subscribed to the Google Groups "zxing" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to zxing+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Sean Owen

unread,
Jan 7, 2015, 10:54:04 AM1/7/15
to zx...@googlegroups.com, crops...@gmail.com
Or, do 'mvn package' from the root. I will update the wiki as it is not quite correct on this point. If building it by itself, javase SNAPSHOT won't build unless you've created a local artifact for core SNAPSHOT first.

Cropse

unread,
Jan 12, 2015, 9:19:46 PM1/12/15
to zx...@googlegroups.com
Sorry for long time reply
Finally, Using this site to solve the problem
https://github.com/oostendo/python-zxing

ant build.xml is doing fine in my platform
Reply all
Reply to author
Forward
0 new messages