我有一个Symfony2项目,它使用composer来管理包。我想从我的个人SVN存储中添加另一个包。这是我在composer.json中的存储库配置。我改变了我的SVN网址,现在只是为了在stackoverflow中不显示敏感信息而显示真实的网址。我在Windows 7平台上运行。我已经为Windows http://sourceforge.net/projects/win32svn/
安装了SVN "repositories": [
{
"type": "package",
"package": {
"name": "jquery/jquery",
"version": "1.9.1",
"dist": {
"url": "http://code.jquery.com/jquery-1.9.1.js",
"type": "file"
}
}
},
{
"type": "svn",
"url": "https://This-is-where-my-path-is"
}
]
执行时
composer --verbose update
我得到以下结果
Loading composer repositories with package information
[RuntimeException]
Failed to load https://This-is-where-my-path-is, svn was not found, check that it is installed and in your PATH env.
Den angivne sti blev ikke fundet.
Exception trace:
() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Repository/Vcs/SvnDriver.php:316
Composer\Repository\Vcs\SvnDriver->execute() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Repositor
y/Vcs/SvnDriver.php:205
Composer\Repository\Vcs\SvnDriver->getBranches() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Repos
itory/Vcs/SvnDriver.php:75
Composer\Repository\Vcs\SvnDriver->initialize() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Reposi
tory/VcsRepository.php:78
Composer\Repository\VcsRepository->getDriver() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Reposit
ory/VcsRepository.php:113
Composer\Repository\VcsRepository->initialize() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Reposi
tory/ArrayRepository.php:170
Composer\Repository\ArrayRepository->getPackages() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Dep
endencyResolver/Pool.php:169
Composer\DependencyResolver\Pool->addRepository() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Inst
aller.php:353
Composer\Installer->doInstall() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Installer.php:215
Composer\Installer->run() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Command/UpdateCommand.php:12
3
Composer\Command\UpdateCommand->execute() at phar://C:/ProgramData/Composer/bin/composer.phar/vendor/symfony/console/Sy
mfony/Component/Console/Command/Command.php:241
Symfony\Component\Console\Command\Command->run() at phar://C:/ProgramData/Composer/bin/composer.phar/vendor/symfony/con
sole/Symfony/Component/Console/Application.php:892
Symfony\Component\Console\Application->doRunCommand() at phar://C:/ProgramData/Composer/bin/composer.phar/vendor/symfon
y/console/Symfony/Component/Console/Application.php:191
Symfony\Component\Console\Application->doRun() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Console
/Application.php:117
Composer\Console\Application->doRun() at phar://C:/ProgramData/Composer/bin/composer.phar/vendor/symfony/console/Symfon
y/Component/Console/Application.php:121
Symfony\Component\Console\Application->run() at phar://C:/ProgramData/Composer/bin/composer.phar/src/Composer/Console/A
pplication.php:83
Composer\Console\Application->run() at phar://C:/ProgramData/Composer/bin/composer.phar/bin/composer:43
require() at C:\ProgramData\Composer\bin\composer.phar:15
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers]
[--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [
packagesN]
现在你可能认为哦他没有在路径中获得SVN(因为那是我得到的丹麦语的错误信息)......但是我知道。运行SVN命令给我
Type 'svn help' for usage.
所以我确实运行了SVN客户端并在路径中配置了它。 我甚至测试过运行
svn checkout https://This-is-where-my-path-is
哪个有效。它检查我的项目。 有什么想法吗?
修改
我运行了这个命令php composer.phar update -vvv并得到了这个:
> C:\xampp\php\php.exe composer.phar update -vvv
Reading ./composer.json
Executing command (CWD): git describe --exact-match --tags
Executing command (CWD): git branch --no-color --no-abbrev -v
Executing command (CWD): hg branch
Executing command (CWD): svn info --xml
Loading composer repositories with package information
Executing command (CWD): svn ls --verbose --non-interactive "https://This-is-where-my-path-is"
Executing command (CWD): svn --version
[RuntimeException]
Failed to load https://This-is-where-my-path-is, svn was not found, check
that it is installed and in your PATH env.
Den angivne sti blev ikke fundet.
Exception trace:
() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Repository/Vcs/SvnDriver.php:316
Composer\Repository\Vcs\SvnDriver->execute() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Repository/Vcs/SvnDriver.php:205
Composer\Repository\Vcs\SvnDriver->getBranches() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Repository/Vcs/SvnDriver.php:75
Composer\Repository\Vcs\SvnDriver->initialize() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Repository/VcsRepository.php:78
Composer\Repository\VcsRepository->getDriver() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Repository/VcsRepository.php:113
Composer\Repository\VcsRepository->initialize() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Repository/ArrayRepository.php:170
Composer\Repository\ArrayRepository->getPackages() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/DependencyResolver/Pool.php:169
Composer\DependencyResolver\Pool->addRepository() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Installer.php:353
Composer\Installer->doInstall() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Installer.php:215
Composer\Installer->run() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Command/UpdateCommand.php:123
Composer\Command\UpdateCommand->execute() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:241
Symfony\Component\Console\Command\Command->run() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:892
Symfony\Component\Console\Application->doRunCommand() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:191
Symfony\Component\Console\Application->doRun() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Console/Application.php:117
Composer\Console\Application->doRun() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/vendor/symfony/console/Symfony/Component/Console/Application.php:121
Symfony\Component\Console\Application->run() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/src/Composer/Console/Application.php:83
Composer\Console\Application->run() at phar://C:/xampp/htdocs/dagtilbudsupport/composer.phar/bin/composer:43
require() at C:\xampp\htdocs\dagtilbudsupport\composer.phar:15
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--with-dependencies] [-v|vv|vvv|--verbose] [-o|--optimize-autoloader] [packages1] ... [packagesN]
Process finished with exit code 1 at 11:38:44.
Execution time: 1.360 ms.