Patrick de Groot
Posts: 0
Joined: Fri Sep 28, 2012 10:22 am

Compile project using Maven

A few days ago I finally was able to get everything up and running, but now it seems like Tiggzi changed the exported Eclipse project.

It now generates one (but easily fixable) error in Eclipse, but I get a buckedload of errors when trying to compile it 'using mvn clean install' .

These seem to be caused by the added pushnotification functionality

codeC:\co4>mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Projectname_Online-parent
[INFO] barcode scanner
[INFO] Projectname_Online
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Projectname_Online-parent 1.1-parent
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Projectname_Online-parent

---

[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ Projectname_Online-
parent ---
[INFO] Installing C:\co4\pom.xml to C:\Users\patrickC:\co4mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Projectname_Online-parent
[INFO] barcode scanner
[INFO] Projectname_Online
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Projectname_Online-parent 1.1-parent
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Projectname_Online-parent

---

[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ Projectname_Online-
parent ---
[INFO] Installing C:\co4\pom.xml to C:\Users\patrick\.m2\repository\nl\pinkweb\c
lientonlineandroid-parent\Projectname_Online-parent\1.1-parent\Projectname_Online-parent-1
.1-parent.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building barcode scanner 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ BarcodeScanner ---
[INFO] Deleting C:\co4\BarcodeScanner\target
[INFO]
[INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources
) @ BarcodeScanner ---
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -m
, -J, C:\co4\BarcodeScanner\target\generated-sources\r, -M, C:\co4\BarcodeScanne
r\AndroidManifest.xml, -S, C:\co4\BarcodeScanner\res, --auto-add-overlay, -A, C:
\co4\BarcodeScanner\assets, -I, C:\Program Files\Android\android-sdk\platforms\a
ndroid-10\android.jar]
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ BarcodeSca
nner ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\co4\BarcodeScanner\src\main\resour
ces
[INFO] skip non existing resourceDirectory C:\co4\BarcodeScanner\target\generate
d-sources\extracted-dependencies\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ BarcodeScanner

---

[INFO] Changes detected - recompiling the module!
[INFO] Compiling 238 source files to C:\co4\BarcodeScanner\target\classes
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/Projectname/android/encode/QRCo
deEncoder.java: Some input files use or override a deprecated API.
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/Projectname/android/encode/QRCo
deEncoder.java: Recompile with -Xlint:deprecation for details.
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/oned/OneDReader.java: Some
input files use unchecked or unsafe operations.
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/oned/OneDReader.java: Reco
mpile with -Xlint:unchecked for details.
[INFO]
[INFO] --- android-maven-plugin:3.0.0:proguard (default-proguard) @ BarcodeScann
er ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Ba
rcodeScanner ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\co4\BarcodeScanner\src\test\resour
ces
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ Barcode
Scanner ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ BarcodeScanner ---

[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ BarcodeScanner ---
[INFO] Building jar: C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.jar
[INFO]
[INFO] --- android-maven-plugin:3.0.0:apklib (default-apklib) @ BarcodeScanner -
--
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -f
, -M, C:\co4\BarcodeScanner\AndroidManifest.xml, -S, C:\co4\BarcodeScanner\res,
--auto-add-overlay, -A, C:\co4\BarcodeScanner\assets, -I, C:\Program Files\Andro
id\android-sdk\platforms\android-10\android.jar, -F, C:\co4\BarcodeScanner\targe
t\BarcodeScanner-1.0.ap_]
[INFO] Building jar: C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.apklib
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ BarcodeScanner -
--
[INFO] Installing C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.apklib to C:\U
sers\patrick\.m2\repository\phonegap\plugins\BarcodeScanner\1.0\BarcodeScanner-1
.0.apklib
[INFO] Installing C:\co4\BarcodeScanner\pom.xml to C:\Users\patrick\.m2\reposito
ry\phonegap\plugins\BarcodeScanner\1.0\BarcodeScanner-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Projectname_Online 1.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Projectname_Online ---
[INFO] Deleting C:\co4\Projectname_Online\target
[INFO]
[INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources
) @ Projectname_Online ---
[DEBUG] Expanding: C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.apklib into C
:\co4\Projectname_Online\target\unpack\apklibs\phonegap.plugins_BarcodeScanner_apklib
_1.0
[DEBUG] expand complete
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -m
, -J, C:\co4\Projectname_Online\target\generated-sources\r, -M, C:\co4\Projectname_Online\
AndroidManifest.xml, -S, C:\co4\Projectname_Online\res, -S, C:\co4\Projectname_Online\targ
et\unpack\apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-ove
rlay, -A, C:\co4\Projectname_Online\assets, -I, C:\Program Files\Android\android-sdk\
platforms\android-7\android.jar]
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -m
, -J, C:\co4\Projectname_Online\target\generated-sources\r, --custom-package, com.goo
gle.zxing.Projectname.android, -M, C:\co4\Projectname_Online\AndroidManifest.xml, -S, C:\c
o4\Projectname_Online\res, -S, C:\co4\Projectname_Online\target\unpack\apklibs/phonegap.pl
ugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, C:\co4\Projectname_Onlin
e\assets, -A, C:\co4\Projectname_Online\target\unpack\apklibs/phonegap.plugins_Barcod
eScanner_apklib_1.0/assets, -I, C:\Program Files\Android\android-sdk\platforms\a
ndroid-7\android.jar]
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Projectname_Onl
ine ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\co4\Projectname_Online\src\main\resourc
es
[INFO] skip non existing resourceDirectory C:\co4\Projectname_Online\target\generated
-sources\extracted-dependencies\src\main\resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ Projectname_Online

---

[INFO] Compiling 245 source files to C:\co4\Projectname_Online\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[11,25] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[27,45] error: package com.phonegap.plugins.pushnotifications does not exist

[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[28,49] error: package com.phonegap.plugins.pushnotifications.gcm does not e
xist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[103,66] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[133,32] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[38,14] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[44,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[50,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[56,63] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[58,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[72,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[78,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[115,35] error: cannot find symbol
[INFO] 13 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Projectname_Online-parent .............................. SUCCESS [0.554s]
[INFO] barcode scanner ................................... SUCCESS [25.176s]
[INFO] Projectname_Online ..................................... FAILURE [16.997s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.353s
[INFO] Finished at: Thu Dec 06 13:32:25 CET 2012
[INFO] Final Memory: 19M/79M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project Projectname_Online: Compilation failure: Com
pilation failure:
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[11,25] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[27,45] error: package com.phonegap.plugins.pushnotifications does not exist

[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[28,49] error: package com.phonegap.plugins.pushnotifications.gcm does not e
xist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[103,66] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[133,32] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[38,14] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[44,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[50,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[56,63] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[58,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[72,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[78,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[115,35] error: cannot find symbol
[ERROR] - [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/di...
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn -rf :Projectname_Online#46;m2\repository\nl\pinkweb\c
lientonlineandroid-parent\Projectname_Online-parent.1-parent\Projectname_Online-parent-1
.1-parent.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building barcode scanner 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ BarcodeScanner ---
[INFO] Deleting C:\co4\BarcodeScanner\target
[INFO]
[INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources
) @ BarcodeScanner ---
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -m
, -J, C:\co4\BarcodeScanner\target\generated-sources\r, -M, C:\co4\BarcodeScanne
r\AndroidManifest.xml, -S, C:\co4\BarcodeScanner\res, --auto-add-overlay, -A, C:
\co4\BarcodeScanner\assets, -I, C:\Program Files\Android\android-sdk\platforms\a
ndroid-10\android.jar]
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ BarcodeSca
nner ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\co4\BarcodeScanner\src\main\resour
ces
[INFO] skip non existing resourceDirectory C:\co4\BarcodeScanner\target\generate
d-sources\extracted-dependencies\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ BarcodeScanner

---

[INFO] Changes detected - recompiling the module!
[INFO] Compiling 238 source files to C:\co4\BarcodeScanner\target\classes
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/Projectname/android/encode/QRCo
deEncoder.java: Some input files use or override a deprecated API.
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/Projectname/android/encode/QRCo
deEncoder.java: Recompile with -Xlint:deprecation for details.
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/oned/OneDReader.java: Some
input files use unchecked or unsafe operations.
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/oned/OneDReader.java: Reco
mpile with -Xlint:unchecked for details.
[INFO]
[INFO] --- android-maven-plugin:3.0.0:proguard (default-proguard) @ BarcodeScann
er ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Ba
rcodeScanner ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\co4\BarcodeScanner\src\test\resour
ces
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ Barcode
Scanner ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ BarcodeScanner ---

[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ BarcodeScanner ---
[INFO] Building jar: C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.jar
[INFO]
[INFO] --- android-maven-plugin:3.0.0:apklib (default-apklib) @ BarcodeScanner -
--
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -f
, -M, C:\co4\BarcodeScanner\AndroidManifest.xml, -S, C:\co4\BarcodeScanner\res,
--auto-add-overlay, -A, C:\co4\BarcodeScanner\assets, -I, C:\Program Files\Andro
id\android-sdk\platforms\android-10\android.jar, -F, C:\co4\BarcodeScanner\targe
t\BarcodeScanner-1.0.ap_]
[INFO] Building jar: C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.apklib
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ BarcodeScanner -
--
[INFO] Installing C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.apklib to C:\U
sers\patrickC:\co4mvn clean install
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Projectname_Online-parent
[INFO] barcode scanner
[INFO] Projectname_Online
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Projectname_Online-parent 1.1-parent
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Projectname_Online-parent

---

[INFO]
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ Projectname_Online-
parent ---
[INFO] Installing C:\co4\pom.xml to C:\Users\patrick\.m2\repository\nl\pinkweb\c
lientonlineandroid-parent\Projectname_Online-parent\1.1-parent\Projectname_Online-parent-1
.1-parent.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building barcode scanner 1.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ BarcodeScanner ---
[INFO] Deleting C:\co4\BarcodeScanner\target
[INFO]
[INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources
) @ BarcodeScanner ---
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -m
, -J, C:\co4\BarcodeScanner\target\generated-sources\r, -M, C:\co4\BarcodeScanne
r\AndroidManifest.xml, -S, C:\co4\BarcodeScanner\res, --auto-add-overlay, -A, C:
\co4\BarcodeScanner\assets, -I, C:\Program Files\Android\android-sdk\platforms\a
ndroid-10\android.jar]
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ BarcodeSca
nner ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\co4\BarcodeScanner\src\main\resour
ces
[INFO] skip non existing resourceDirectory C:\co4\BarcodeScanner\target\generate
d-sources\extracted-dependencies\src\main\resources
[INFO]
[INFO] --- maven-compiler-plugin:3.0:compile (default-compile) @ BarcodeScanner

---

[INFO] Changes detected - recompiling the module!
[INFO] Compiling 238 source files to C:\co4\BarcodeScanner\target\classes
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/Projectname/android/encode/QRCo
deEncoder.java: Some input files use or override a deprecated API.
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/Projectname/android/encode/QRCo
deEncoder.java: Recompile with -Xlint:deprecation for details.
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/oned/OneDReader.java: Some
input files use unchecked or unsafe operations.
[WARNING] /C:/co4/BarcodeScanner/src/com/google/zxing/oned/OneDReader.java: Reco
mpile with -Xlint:unchecked for details.
[INFO]
[INFO] --- android-maven-plugin:3.0.0:proguard (default-proguard) @ BarcodeScann
er ---
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ Ba
rcodeScanner ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\co4\BarcodeScanner\src\test\resour
ces
[INFO]
[INFO] --- maven-compiler-plugin:3.0:testCompile (default-testCompile) @ Barcode
Scanner ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ BarcodeScanner ---

[INFO] No tests to run.
[INFO]
[INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ BarcodeScanner ---
[INFO] Building jar: C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.jar
[INFO]
[INFO] --- android-maven-plugin:3.0.0:apklib (default-apklib) @ BarcodeScanner -
--
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -f
, -M, C:\co4\BarcodeScanner\AndroidManifest.xml, -S, C:\co4\BarcodeScanner\res,
--auto-add-overlay, -A, C:\co4\BarcodeScanner\assets, -I, C:\Program Files\Andro
id\android-sdk\platforms\android-10\android.jar, -F, C:\co4\BarcodeScanner\targe
t\BarcodeScanner-1.0.ap_]
[INFO] Building jar: C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.apklib
[INFO]
[INFO] --- maven-install-plugin:2.4:install (default-install) @ BarcodeScanner -
--
[INFO] Installing C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.apklib to C:\U
sers\patrick\.m2\repository\phonegap\plugins\BarcodeScanner\1.0\BarcodeScanner-1
.0.apklib
[INFO] Installing C:\co4\BarcodeScanner\pom.xml to C:\Users\patrick\.m2\reposito
ry\phonegap\plugins\BarcodeScanner\1.0\BarcodeScanner-1.0.pom
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Projectname_Online 1.1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Projectname_Online ---
[INFO] Deleting C:\co4\Projectname_Online\target
[INFO]
[INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources
) @ Projectname_Online ---
[DEBUG] Expanding: C:\co4\BarcodeScanner\target\BarcodeScanner-1.0.apklib into C
:\co4\Projectname_Online\target\unpack\apklibs\phonegap.plugins_BarcodeScanner_apklib
_1.0
[DEBUG] expand complete
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] ANDROID-904-002: Found aidl files: Count = 0
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -m
, -J, C:\co4\Projectname_Online\target\generated-sources\r, -M, C:\co4\Projectname_Online\
AndroidManifest.xml, -S, C:\co4\Projectname_Online\res, -S, C:\co4\Projectname_Online\targ
et\unpack\apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-ove
rlay, -A, C:\co4\Projectname_Online\assets, -I, C:\Program Files\Android\android-sdk\
platforms\android-7\android.jar]
[INFO] C:\Program Files\Android\android-sdk\platform-tools\aapt.exe [package, -m
, -J, C:\co4\Projectname_Online\target\generated-sources\r, --custom-package, com.goo
gle.zxing.Projectname.android, -M, C:\co4\Projectname_Online\AndroidManifest.xml, -S, C:\c
o4\Projectname_Online\res, -S, C:\co4\Projectname_Online\target\unpack\apklibs/phonegap.pl
ugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, C:\co4\Projectname_Onlin
e\assets, -A, C:\co4\Projectname_Online\target\unpack\apklibs/phonegap.plugins_Barcod
eScanner_apklib_1.0/assets, -I, C:\Program Files\Android\android-sdk\platforms\a
ndroid-7\android.jar]
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ Projectname_Onl
ine ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory C:\co4\Projectname_Online\src\main\resourc
es
[INFO] skip non existing resourceDirectory C:\co4\Projectname_Online\target\generated
-sources\extracted-dependencies\src\main\resources
[INFO] Copying 0 resource
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ Projectname_Online

---

[INFO] Compiling 245 source files to C:\co4\Projectname_Online\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[11,25] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[27,45] error: package com.phonegap.plugins.pushnotifications does not exist

[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[28,49] error: package com.phonegap.plugins.pushnotifications.gcm does not e
xist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[103,66] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[133,32] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[38,14] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[44,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[50,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[56,63] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[58,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[72,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[78,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[115,35] error: cannot find symbol
[INFO] 13 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Projectname_Online-parent .............................. SUCCESS [0.554s]
[INFO] barcode scanner ................................... SUCCESS [25.176s]
[INFO] Projectname_Online ..................................... FAILURE [16.997s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 43.353s
[INFO] Finished at: Thu Dec 06 13:32:25 CET 2012
[INFO] Final Memory: 19M/79M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project Projectname_Online: Compilation failure: Com
pilation failure:
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[11,25] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[27,45] error: package com.phonegap.plugins.pushnotifications does not exist

[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[28,49] error: package com.phonegap.plugins.pushnotifications.gcm does not e
xist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[103,66] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\PhoneGapActivity.j
ava:[133,32] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[38,14] error: cannot find symbol
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[44,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[50,41] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[56,63] error: package Constants does not exist
[ERROR] \co4\Projectname_Online\src\nl\pinkweb\Projectnameonlineandroid\GCMIntentService.j
ava:[58,41

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Compile project using Maven

Hello!
We cannot reproduse this.
Please send us zip-file with sources or share your project with support@tiggzi.com

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Compile project using Maven

It's already fixed, will be in production on Tuesday (Dec 18)

Patrick de Groot
Posts: 0
Joined: Fri Sep 28, 2012 10:22 am

Compile project using Maven

Thank you, but it still doesn't work.

code

[INFO] Compiling 251 source files to C:\co10\Client_App\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] \co10\Client_App\src\nl\pinkweb\clientAppandroid\PhoneGapActivity.
java:[11,25] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[6,29] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[7,29] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[22,39] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[28,35] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[46,58] error: cannot find symbol
[ERROR] \co10\Client_App\src\nl\pinkweb\clientAppandroid\PhoneGapActivity.
java:[133,32] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[28,91] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[34,8] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[48,19] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[63,47] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[72,45] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[79,26] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[90,40] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[110,61] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[117,52] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[45,4] error: method does not override or implement a method from
a supertype
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[201,8] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[211,8] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[221,8] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[231,8] error: cannot find symbol
[INFO] 21 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Client_App-parent .............................. SUCCESS [0.640s]
[INFO] barcode scanner ................................... SUCCESS [15.247s]
[INFO] Client_App ..................................... FAILURE [4.493s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 20.960s
[INFO] Finished at: Wed Dec 19 09:23:55 CET 2012
[INFO] Final Memory: 20M/83M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
3.2:compile (default-compile) on project Client_App: Compilation failure: Com
pilation failure:
[ERROR] \co10\Client_App\src\nl\pinkweb\clientAppandroid\PhoneGapActivity.
java:[11,25] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[6,29] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[7,29] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[22,39] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[28,35] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[46,58] error: cannot find symbol
[ERROR] \co10\Client_App\src\nl\pinkweb\clientAppandroid\PhoneGapActivity.
java:[133,32] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[28,91] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[34,8] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[48,19] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[63,47] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[72,45] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[79,26] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[90,40] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[110,61] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[117,52] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[45,4] error: method does not override or implement a method from
a supertype
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[201,8] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[211,8] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[221,8] error: cannot find symbol
[ERROR] \co10\Client_App\src\com\phonegap\plugins\pushnotifications\PushNotif
ications.java:[231,8] error: cannot find symbol
[ERROR] -> [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/MojoFailureExc
eption
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command

[ERROR] mvn <goals> -rf :Client_App
/code

Actually, the exported Eclipse project is smaller now. There are no files in the libs directory.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Compile project using Maven

Hello,

Have you changed something in the source code?
Check the following file exists:
Client_App\repo\org\apache\cordova\cordova\2.2.0\cordova-2.2.0.jar

And please share your project with support@tiggzi.com so we can test it.

Patrick de Groot
Posts: 0
Joined: Fri Sep 28, 2012 10:22 am

Compile project using Maven

No I didn't change anything, just downloaded the Eclipse project and ran Maven.

I did manage to get it to compile by removing some things from the source (the references to the Pushnotifications and there was also a IceCreamCordovaWebViewClient which caused errors, so I replaced that one with the regular CordovaWebViewClient). But that caused problems when running the app. I'm no Java guru though.

What I want is basically:

  • Download the Eclipse project

  • Run a batch file which changes a few settings and images, compiles multiple personalized apps and generates the APK files

    edit: I sent you the source code

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Compile project using Maven

We cannot say exactly what caused the problem.
Please share the project or send us zip-file with source code you are not able to build.
Maybe your batch file makes some changes that interfere app building.

Patrick de Groot
Posts: 0
Joined: Fri Sep 28, 2012 10:22 am

Compile project using Maven

I sent you the source code.

But I didn't ran the batch file. All I do is unzip the eclipse project and run 'mvn clean install'.

Everything worked fine before the Pushnotifications were introduced.

I do use the older Flash based editor. I don't know if there is any difference with the HTML5 based editor when the output is concerned.

Patrick de Groot
Posts: 0
Joined: Fri Sep 28, 2012 10:22 am

Compile project using Maven

Alright, I now notice that the project uses a new version of cordova.

I installed it using:
codemvn install:install-file -Dfile=cordova-2&#46;2&#46;0&#46;jar -DgroupId=org&#46;apache&#46;cordova -DartifactId=cordova -Dversion=2&#46;2&#46;0 -Dpackaging=jar -DgeneratePom=true -DcreateChecksum=true/code

And managed to compile it.

Now the whole layout is a mess, but it seems like more users are having these issues. Wonderful.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Compile project using Maven

We released new Tiggzi version, it is fixed now, so you don't have to change code manually.
It seems that compilation problems are caused by your batch file.
We didn't get your source code yet...
There was no attachment in your message.

Return to “Issues”