Apache Continuum не восстанавливает команду M1 или M2

Когда я запускаю процесс сборки внутри консоли Apache Continuum, я получаю:

/bin/sh: maven: command not found

или же

/bin/sh: mvn: command not found

Все в порядке с командной строкой. Также мой экземпляр континуума работает от имени пользователя root.

servProfCvs:~ # echo $M2_HOME
/opt/apache-maven-2.2.1

servProfCvs:~ # echo $MAVEN_HOME
/opt/maven-1.0.2

 servProfCvs:~ # echo $PATH
    /usr/java/jdk1.5.0_12/bin:/sbin:/usr/sbin:/usr/local/sbin:/opt/gnome/sbin:
/root/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:
/opt/kde3/bin:/usr/lib/jvm/jre/bin:/opt/apache-maven-2.0.9/bin:/opt/maven-1.0.2/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

servProfCvs:~ # mvn --version
Apache Maven 2.2.1 (r801777; 2009-08-06 16:16:01-0300)
Java version: 1.5.0_12
Java home: /usr/java/jdk1.5.0_12/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux" version: "2.6.18.2-34-default" arch: "i386" Family: "unix"

servProfCvs:~ # maven --version
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

Я попытался определить переменные в /etc/profile, /root/.bash_profile, /root/.bashrc, /root/.profile (* не одновременно) и Continuum не распознавать мои maven установки.

Журнал континуума показывает:

INFO  org.apache.continuum.buildmanager.ParallelBuildsManager  - Project group '33' added to overall build queue 'DEFAULT_BUILD_QUEUE'
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Initializing prepare build
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Starting prepare build of project: geopos2-unimarc-tax
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Purging existing working copy
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Performing action clean-working-directory
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Updating working dir
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Performing action check-working-directory
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Performing action checkout-project
INFO  action#checkout-project  - Checking out project: 'geopos2-unimarc-tax', id: '225' to '/mnt/samba/apache-continuum-1.4.1/data/working-directory/225'.
INFO  org.apache.continuum.scm.manager.Slf4jScmLogger  - Executing: /bin/sh -c cd /mnt/samba/apache-continuum-1.4.1/data/working-directory && cvs -z3 -f -d :pserver:hudson@192.168.254.50:/home/cvsrep -q checkout -d 225 geopos2-unimarc-tax
INFO  org.apache.continuum.scm.manager.Slf4jScmLogger  - Working directory: /mnt/samba/apache-continuum-1.4.1/data/working-directory
INFO  action#checkout-project  - Checked out 52 files.
ERROR org.apache.maven.continuum.notification.mail.MailContinuumNotifier  - project state=3
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Merging SCM results
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Ending prepare build of project: geopos2-unimarc-tax
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Ending prepare build
INFO  org.apache.maven.continuum.scm.queue.PrepareBuildProjectsTaskExecutor  - Performing action create-build-project-task
INFO  org.apache.continuum.buildmanager.ParallelBuildsManager  - Project '225' - 'geopos2-unimarc-tax' added to overall build queue 'DEFAULT_BUILD_QUEUE'.
INFO  org.apache.maven.continuum.buildcontroller.DefaultBuildController  - Initializing build
INFO  org.apache.maven.continuum.buildcontroller.DefaultBuildController  - Starting build of geopos2-unimarc-tax
INFO  org.apache.maven.continuum.buildcontroller.DefaultBuildController  - The project build is forced, building
INFO  org.apache.maven.continuum.buildcontroller.DefaultBuildController  - Performing action update-project-from-working-directory
INFO  action#update-project-from-working-directory  - Updating project 'geopos2-unimarc-tax' from checkout.
INFO  org.apache.maven.continuum.buildcontroller.DefaultBuildController  - Performing action execute-builder
WARN  org.apache.maven.continuum.execution.maven.m1.MavenOneBuildExecutor  - Could not find the executable 'maven' in this path:
INFO  org.apache.continuum.utils.shell.DefaultShellCommandHelper  - Executing: /bin/sh -c cd /mnt/samba/apache-continuum-1.4.1/data/working-directory/225 && maven --batch-mode --non-recursive -Dcontinuum.project.lastBuild.state=3 -Dcontinuum.project.nextBuild.number=1 -Dcontinuum.project.name=geopos2-unimarc-tax -Dcontinuum.project.id=225 -Dcontinuum.project.version=1.11-SNAPSHOT -Dcontinuum.project.group.name=Geopos2 -Dcontinuum.project.lastBuild.number=0 clean:clean jar:deploy
INFO  org.apache.continuum.utils.shell.DefaultShellCommandHelper  - Working directory: /mnt/samba/apache-continuum-1.4.1/data/working-directory/225
INFO  org.apache.maven.continuum.execution.maven.m1.MavenOneBuildExecutor  - Exit code: 127

Я обнаружил, что личный путь строки члена пуст, как показано в журнале.

WARN org.apache.maven.continuum.execution.maven.m1.MavenOneBuildExecutor - Could not find the executable 'maven' in this path:

Этот член определен в org.apache.maven.continuum.execution.AbstractBuildExecutor

File resolvedExecutable = executableResolver.findExecutable( defaultExecutable, path );
121
122                if ( resolvedExecutable == null )
123                {
124                    getLogger().warn(
125                        "Could not find the executable '" + defaultExecutable + "' in the " + "path '" + path + "'." );
126                }
127                else
128                {
129                    getLogger().info( "Resolved the executable '" + defaultExecutable + "' to " + "'" +
130                        resolvedExecutable.getAbsolutePath() + "'." );
131                }
132            }
133        }

Я думаю, что также хорошая информация код ошибки 127.

ИНФОРМАЦИЯ org.apache.maven.continuum.execution.maven.m1.MavenOneBuildExecutor - Код выхода: 127

Я не знаю, почему мой экземпляр Apache Continuum не может получить значение $PATH.

0 ответов

Другие вопросы по тегам