Error de compilacion con MAVEN2
Publicado por Jose (1 intervención) el 31/05/2013 22:48:20
Tengo tres proyectos
1- Root
2- Java
3- Web
Orden de dependencias
Root<--Java<--Web
Por alguna razón, que no entiendo, tengo que correr el maven reiteradas veces antes que pueda generar el WAR como corresponde. Suele tener distintos errores. Entre ellos el mas recurrente es el que adjunto abajo.
Estoy trabajando con maven 2.0.9 JDK/JRE1.4 y Eclipse.
Lamentablemente no puedo subir la version de ninguno de estos.
Las opciones de maven son(variables de entorno) MAVEN_OPTS -Dfile.encoding=cp1252 -Xmx1024m -Xms512m
Nota: A veces, y solo a veces, veo que haciendo un CLEAN al proyecto desde el eclipse parece que sale todo OK. Pero tampoco es que sale siempre.
La pregunta del millon es ¿Porque después de tirar vaaarias veces el intall de maven logra hace el SUCCESEFUL y no a la primera?
el error:
C:\User\JOSE\Workspace Brasil\desWeb>mvn install
MAVEN_OPTS=-Dfile.encoding=cp1252 -Xmx1024m -Xms512m
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Projet WEB LEGO des
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'iReport:iReport:pom:1.3.3:compile' is invalid. It will be ign
ored for artifact resolution. Reason: Not a v4.0.0 POM. for project iReport:iRep
ort at C:\JIP\home\.m2\repository\iReport\iReport\1.3.3\iReport-1.3.3.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'iReport:iReport:pom:1.3.3:compile' is invalid. It will be ign
ored for artifact resolution. Reason: Not a v4.0.0 POM. for project iReport:iRep
ort at C:\JIP\home\.m2\repository\iReport\iReport\1.3.3\iReport-1.3.3.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[WARNING] POM for 'iReport:iReport:pom:1.3.3:compile' is invalid. It will be ign
ored for artifact resolution. Reason: Not a v4.0.0 POM. for project iReport:iRep
ort at C:\JIP\home\.m2\repository\iReport\iReport\1.3.3\iReport-1.3.3.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[INFO] [surefire:test]
[INFO] No tests to run.
[WARNING] POM for 'iReport:iReport:pom:1.3.3:compile' is invalid. It will be ign
ored for artifact resolution. Reason: Not a v4.0.0 POM. for project iReport:iRep
ort at C:\JIP\home\.m2\repository\iReport\iReport\1.3.3\iReport-1.3.3.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[desWeb] in [C:\User\JOSE\Workspace Brasil\desWeb\tar
get\desWeb]
[INFO] Processing war project
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Could not copy webapp sources[C:\User\JOSE\Workspace Brasil\desWeb\tar
get\desWeb]
Embedded error: Failed to copy full contents from C:\User\JOSE\Workspace Bras
il\desWeb\WebContent\struts-layout\config\menu.css to C:\User\JOSE\Workspace
Brasil\desWeb\target\desWeb\struts-layout\config\menu.css
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Fri May 31 22:31:49 CEST 2013
[INFO] Final Memory: 13M/508M
[INFO] --------------------------------------------
1- Root
2- Java
3- Web
Orden de dependencias
Root<--Java<--Web
Por alguna razón, que no entiendo, tengo que correr el maven reiteradas veces antes que pueda generar el WAR como corresponde. Suele tener distintos errores. Entre ellos el mas recurrente es el que adjunto abajo.
Estoy trabajando con maven 2.0.9 JDK/JRE1.4 y Eclipse.
Lamentablemente no puedo subir la version de ninguno de estos.
Las opciones de maven son(variables de entorno) MAVEN_OPTS -Dfile.encoding=cp1252 -Xmx1024m -Xms512m
Nota: A veces, y solo a veces, veo que haciendo un CLEAN al proyecto desde el eclipse parece que sale todo OK. Pero tampoco es que sale siempre.
La pregunta del millon es ¿Porque después de tirar vaaarias veces el intall de maven logra hace el SUCCESEFUL y no a la primera?
el error:
C:\User\JOSE\Workspace Brasil\desWeb>mvn install
MAVEN_OPTS=-Dfile.encoding=cp1252 -Xmx1024m -Xms512m
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building Projet WEB LEGO des
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'iReport:iReport:pom:1.3.3:compile' is invalid. It will be ign
ored for artifact resolution. Reason: Not a v4.0.0 POM. for project iReport:iRep
ort at C:\JIP\home\.m2\repository\iReport\iReport\1.3.3\iReport-1.3.3.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[WARNING] POM for 'iReport:iReport:pom:1.3.3:compile' is invalid. It will be ign
ored for artifact resolution. Reason: Not a v4.0.0 POM. for project iReport:iRep
ort at C:\JIP\home\.m2\repository\iReport\iReport\1.3.3\iReport-1.3.3.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[WARNING] POM for 'iReport:iReport:pom:1.3.3:compile' is invalid. It will be ign
ored for artifact resolution. Reason: Not a v4.0.0 POM. for project iReport:iRep
ort at C:\JIP\home\.m2\repository\iReport\iReport\1.3.3\iReport-1.3.3.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[INFO] [surefire:test]
[INFO] No tests to run.
[WARNING] POM for 'iReport:iReport:pom:1.3.3:compile' is invalid. It will be ign
ored for artifact resolution. Reason: Not a v4.0.0 POM. for project iReport:iRep
ort at C:\JIP\home\.m2\repository\iReport\iReport\1.3.3\iReport-1.3.3.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[WARNING] POM for 'jbarcode:jbarcode:pom:0.2.8:compile' is invalid. It will be i
gnored for artifact resolution. Reason: Not a v4.0.0 POM. for project jbarcode:j
barcode at C:\JIP\home\.m2\repository\jbarcode\jbarcode\0.2.8\jbarcode-0.2.8.pom
[INFO] [war:war]
[INFO] Packaging webapp
[INFO] Assembling webapp[desWeb] in [C:\User\JOSE\Workspace Brasil\desWeb\tar
get\desWeb]
[INFO] Processing war project
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Could not copy webapp sources[C:\User\JOSE\Workspace Brasil\desWeb\tar
get\desWeb]
Embedded error: Failed to copy full contents from C:\User\JOSE\Workspace Bras
il\desWeb\WebContent\struts-layout\config\menu.css to C:\User\JOSE\Workspace
Brasil\desWeb\target\desWeb\struts-layout\config\menu.css
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 seconds
[INFO] Finished at: Fri May 31 22:31:49 CEST 2013
[INFO] Final Memory: 13M/508M
[INFO] --------------------------------------------
Valora esta pregunta


0