Author Topic: PROBLEMA CON MAVEN ....  (Read 5300 times)

mari_ana_rodriguez

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
PROBLEMA CON MAVEN ....
« on: Marzo 07, 2011, 03:30:10 pm »

Hola buenas,

Me estoy encontrando con un problema a la hora de compilar en integrar mi proyecto con el eclipse. 

Yo dispongo de:

- Eclipse, WAS 7(Wesphere Aplication server), jdk1.5, maven 2.2.1 ....
- Repositorio local con todas las dependencias.
 
 
 La traza del error es la que sigue :


===============================
TRAZA DEL ERROR
===============================
 

>>   mvn clean eclipse:eclipse
 

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   e-Commerce Logistics ~ Project
[INFO]   e-Commerce Logistics ~ Common
[INFO]   e-Commerce Logistics ~ Data Access Layer
[INFO]   e-Commerce Logistics ~ Core
[INFO]   e-Commerce Logistics ~ Webapp
[INFO]   e-Commerce Logistics ~ Webservices
[INFO]   e-Commerce Logistics ~ EAR
[INFO] ------------------------------------------------------------------------
[INFO] Building e-Commerce Logistics ~ Project
[INFO]    task-segment: [clean, eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Not running eclipse plugin goal for pom project
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: C:\IBM\WCDE_ENT7\workspace
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C
:\IBM\SDP\runtimes\base_v7\java\jre
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C
:\IBM\SDP\runtimes\base_v6_stub\java\jre
[INFO] no substring wtp server match.
[INFO] Using as WTP server : WebSphere Application Server v7.0
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER
[INFO] ------------------------------------------------------------------------
[INFO] Building e-Commerce Logistics ~ Common
[INFO]    task-segment: [clean, eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: C:\IBM\WCDE_ENT7\workspace
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C
:\IBM\SDP\runtimes\base_v7\java\jre
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C
:\IBM\SDP\runtimes\base_v6_stub\java\jre
[INFO] no substring wtp server match.
[INFO] Using as WTP server : WebSphere Application Server v7.0
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER
[WARNING] POM for 'com.ibm.icu:icu4j:pom:3.4.4:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[INFO] Wrote settings to C:\IBM\WCDE_ENT7\workspace\logistics2\common\.settings\
org.eclipse.jdt.core.prefs
[INFO] Wrote Eclipse project for "eclogistics-common" to C:\IBM\WCDE_ENT7\worksp
ace\logistics2\common.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building e-Commerce Logistics ~ Data Access Layer
[INFO]    task-segment: [clean, eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: C:\IBM\WCDE_ENT7\workspace
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C
:\IBM\SDP\runtimes\base_v7\java\jre
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C
:\IBM\SDP\runtimes\base_v6_stub\java\jre
[INFO] no substring wtp server match.
[INFO] Using as WTP server : WebSphere Application Server v7.0
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER
[WARNING] POM for 'com.ibm.icu:icu4j:pom:3.4.4:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[INFO] Wrote settings to C:\IBM\WCDE_ENT7\workspace\logistics2\dal\.settings\org
.eclipse.jdt.core.prefs
[INFO] Wrote Eclipse project for "eclogistics-dal" to C:\IBM\WCDE_ENT7\workspace
\logistics2\dal.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building e-Commerce Logistics ~ Core
[INFO]    task-segment: [clean, eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Adding support for WTP version 2.0.
[INFO] Using Eclipse Workspace: C:\IBM\WCDE_ENT7\workspace
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C
:\IBM\SDP\runtimes\base_v7\java\jre
[WARNING] Workspace defines a VM that does not contain a valid jre/lib/rt.jar: C
:\IBM\SDP\runtimes\base_v6_stub\java\jre
[INFO] no substring wtp server match.
[INFO] Using as WTP server : WebSphere Application Server v7.0
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAIN
ER
Downloading: file:////axinic/mavenrepo/com/ibm/mq-jms/6.0.1.1/mq-jms-6.0.1.1.pom
[INFO] Unable to find resource 'com.ibm:mq-jms:pom:6.0.1.1' in repository Indite
x (file:////axinic/mavenrepo)
Downloading: http://repository.jboss.org/maven2//com/ibm/mq-jms/6.0.1.1/mq-jms-6
.0.1.1.pom
[INFO] Unable to find resource 'com.ibm:mq-jms:pom:6.0.1.1' in repository jboss
(http://repository.jboss.org/maven2/)
Downloading: http://ejb3unit.sourceforge.net/maven2/com/ibm/mq-jms/6.0.1.1/mq-jm
s-6.0.1.1.pom
[INFO] Unable to find resource 'com.ibm:mq-jms:pom:6.0.1.1' in repository ejb3un
it (http://ejb3unit.sourceforge.net/maven2)
Downloading: http://repo1.maven.org/maven2/com/ibm/mq-jms/6.0.1.1/mq-jms-6.0.1.1
.pom
[INFO] Unable to find resource 'com.ibm:mq-jms:pom:6.0.1.1' in repository centra
l (http://repo1.maven.org/maven2)
[WARNING] POM for 'com.ibm.icu:icu4j:pom:3.4.4:compile' is invalid.
Its dependencies (if any) will NOT be available to the current build.
[INFO] Wrote settings to C:\IBM\WCDE_ENT7\workspace\logistics2\core\.settings\or
g.eclipse.jdt.core.prefs
[INFO] Wrote Eclipse project for "eclogistics-core" to C:\IBM\WCDE_ENT7\workspac
e\logistics2\core.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building e-Commerce Logistics ~ Webapp
[INFO]    task-segment: [clean, eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean {execution: default-clean}]
[INFO] Preparing eclipse:eclipse
[INFO] [buildnumber:create {execution: default}]
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
[INFO] Executing: cmd.exe /X /C "svn --non-interactive info"
[INFO] Working directory: C:\IBM\WCDE_ENT7\workspace\logistics2\web
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Index: 0, Size: 0
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
        at java.util.ArrayList.RangeCheck(ArrayList.java:546)
        at java.util.ArrayList.get(ArrayList.java:321)
        at org.codehaus.mojo.build.CreateMojo.getRevision(CreateMojo.java:581)
        at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:414)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
cle(DefaultLifecycleExecutor.java:1205)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def
aultLifecycleExecutor.java:1038)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:643)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:569)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:539)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:6
0)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:592)
        at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 seconds
[INFO] Finished at: Mon Mar 07 09:20:13 CET 2011
[INFO] Final Memory: 19M/34M
[INFO] ------------------------------------------------------------------------


Teneis idea de por donde van los tiros??

Gracias de antemano,

saludos

chuidiang

  • Administrator
  • Hero Member
  • *****
  • Posts: 5449
  • Karma: 12
    • View Profile
    • Apuntes de programación
Re: PROBLEMA CON MAVEN ....
« Reply #1 on: Marzo 07, 2011, 04:43:42 pm »
La verdad es que ando un poco despistado... ¿qué tiene que ver todo esto con visual basic?

mari_ana_rodriguez

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
    • View Profile
Re: PROBLEMA CON MAVEN ....
« Reply #2 on: Marzo 07, 2011, 05:57:05 pm »
perdon, me equivoque de categoria.

gracias.

chuidiang

  • Administrator
  • Hero Member
  • *****
  • Posts: 5449
  • Karma: 12
    • View Profile
    • Apuntes de programación
Re: PROBLEMA CON MAVEN ....
« Reply #3 on: Marzo 07, 2011, 06:30:05 pm »
Da la impresión de que es en el plugin buildnumber:create y que intenta hacer una consulta con subversion.

Asegúrate de tener correctamente configurados los parámetros de conexion con svn en el pom.xml y que pudes ejecutar con línea de comandos esto, en el sitio en el que está el pom.xml

svn --non-interactive info

se buena.

 

ey