continuum-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Iker Almandoz" <ikeralmandoz.li...@gmail.com>
Subject Error when project group has trailing spaces..
Date Mon, 01 Oct 2007 16:27:37 GMT
Hi All,

I am using continuum 1.1-beta2 with maven 2.0.7.

I am getting the following error when building one of my applications:

****************************************************************************

Output:

****************************************************************************

---------------------------------------------------

constituent[0]:
file:/usr/local/maven/lib/maven-core-2.0.7-uber.jar</usr/local/maven/lib/maven-core-2.0.7-uber.jar>

---------------------------------------------------

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

      at java.lang.AbstractStringBuilder.setLength(
AbstractStringBuilder.java:146)

      at java.lang.StringBuffer.setLength(StringBuffer.java:154)

      at org.apache.maven.cli.MavenCli$CLIManager.cleanArgs(MavenCli.java
:796)

      at org.apache.maven.cli.MavenCli$CLIManager.parse(MavenCli.java:749)

      at org.apache.maven.cli.MavenCli.main(MavenCli.java:98)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      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)



****************************************************************************



I am trying to build a file with <packaging>pom</packaging> with maven
targets mvn clean site site:deploy**

If I run the targets from the continuum working directory using maven
directly, the build is successful. However, if I try to force the build, I
get the above exception everytime



My guess is that the problem is happening because the group name has a
trailing space, in my case "Aggregators ".



This is what I get from the continuum log files



INFO   | jvm 1    | 2007/09/30 20:27:23 | 2007-09-30 20:27:23,334
[pool-1-thread-1] INFO  BuildController:default        - Performing action
execute-builder

INFO   | jvm 1    | 2007/09/30 20:27:23 | 2007-09-30 20:27:23,621
[pool-1-thread-1] INFO  ShellCommandHelper:default     - Executing:
/bin/bash -c 'cd
/usr/local/continuum-1.1-beta-2/apps/continuum/webapp/WEB-INF/working-directory/279
&& /usr/local/bin/mvn --batch-mode --non-recursive -
Dcontinuum.project.lastBuild.state=3 -Dcontinuum.project.nextBuild.number=1"-
Dcontinuum.project.group.name=Aggregators " -
Dcontinuum.project.lastBuild.number=0 clean site site:deploy'

INFO   | jvm 1    | 2007/09/30 20:27:23 | 2007-09-30 20:27:23,622
[pool-1-thread-1] INFO  ShellCommandHelper:default     - Working directory:
/usr/local/continuum-1.1-beta-2
/apps/continuum/webapp/WEB-INF/working-directory/279

INFO   | jvm 1    | 2007/09/30 20:26:36 | 2007-09-30 20:26:36,214
[pool-1-thread-1] DEBUG ShellCommandHelper:default     -
EnvironmentVariables [MAVEN_TERMINATE_CMD=on, DISPLAY=:0.0,
SSH_AUTH_SOCK=/tmp/ssh-Tow21658/agent.21658,
TOOLS_JAR=/usr/java/jdk1.5.0_08/lib/tools.jar, G_BROKEN_FILENAMES=1,
LESSOPEN=|/usr/bin/lesspipe.sh %s,
XFILESEARCHPATH=/usr/dt/app-defaults/%L/Dt,
PATH=.:/usr/local/ant/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/oracle/product/10.2.0/db_1/bin:/opt/SUNWappserver/bin:/home/tester/bin,
LOGNAME=tester, COLORTERM=gnome-terminal, SHLVL=3, HISTSIZE=1000,
ANT_HOME=/usr/local/ant, XAUTHORITY=/home/tester/.Xauthority,
GTK_RC_FILES=/etc/gtk/gtkrc:/home/tester/.gtkrc-1.2-gnome2,
TOMCAT_HOME=/usr/local/tomcat, INPUTRC=/etc/inputrc, SHELL=/bin/bash,
AXIS2_HOME=/usr/local/axis2, GNOME_DESKTOP_SESSION_ID=Default,
XMODIFIERS=@im=none, HOSTNAME=localhost.localdomain, WRAPPER_BITS=32,
SESSION_MANAGER=local/localhost.localdomain:/tmp/.ICE-unix/21658,
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass,
WRAPPER_FILE_SEPARATOR=/, WINDOWID=29360196, MAIL=/var/spool/mail/tester,
LANG=en_US.UTF-8,
LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:,
CVS_RSH=ssh,
LD_LIBRARY_PATH=/usr/java/jdk1.5.0_08/jre/lib/i386/server:/usr/java/jdk1.5.0_08/jre/lib/i386:/usr/java/jdk1.5.0_08/jre/../lib/i386,
OLDPWD=/usr/local/continuum/bin/linux-x86-32, HOME=/home/tester,
WRAPPER_ARCH=x86, PLEXUS_HOME=/usr/local/continuum,
PWD=/usr/local/continuum-1.1-beta-2/bin/linux-x86-32, CVSROOT=:
ext:tester@cvs_server:/cvs, WRAPPER_OS=windows, WRAPPER_PATH_SEPARATOR=:,
J2EE_HOME=/opt/SUNWappserver, ORACLE_SID=SID,
PLEXUS_BASE=/usr/local/continuum, ORACLE_HOME=/oracle/product/10.2.0/db_1,
NLSPATH=/usr/dt/lib/nls/msg/%L/%N.cat, USER=tester,
JAVA_HOME=/usr/java/jdk1.5.0_08, TERM=xterm,
CLASSPATH=:/opt/SUNWappserver/bin/j2ee.jar:/opt/SUNWappserver/lib/locale,
SSH_AGENT_PID=21670]

INFO   | jvm 1    | 2007/09/30 20:26:36 | 2007-09-30 20:26:36,558
[pool-1-thread-1] INFO  ContinuumBuildExecutor:maven2  - Exit code: 100



Regards,
Iker

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message