试图在Bitbucket上使用私有的composer包和依赖

时间:2014-02-12 11:11:24

标签: dependencies composer-php

这就是我的项目的样子:

MyPackage的:

{
    "name":             "my-enterprise/my-package",
    "description":      "my desc", 
    "license":          "proprietary",    
    "authors": [
        {
            "name":         "MySelf",
            "email":        "my@mail.com",
            "homepage":     "http://www.mywebsite.com",
            "role":         "Developer"
        }
    ],    
    "require": {
        "illuminate/support": "4.1.*@dev",
        "composer/composer": "1.0.*@dev"
    },
    "autoload": {
        "classmap": [            
            "src"
        ]
    },
    "target-dir": "src",
}

我的项目:

...laravel stuff (is a laravel 4 project)...

"require": {
    "laravel/framework": "4.1.*",
    "rodamoto/visual-fox-connect": "dev-master"
},
"repositories": [
{
    "type": "git",
    "url": "https://readonlyuser:withpassword@bitbucket.org/myBitBucketPackage.git"
    }
],
"minimum-stability": "stable"

...more laravel stuff...

问题是,MyPackage安装在我的项目中,而我不需要“composer / composer”。如果我在MyPackage上包含作曲家,我收到了消息:     MyEnterprise / MyPackage需要作曲家/作曲家“1.0.*@dev” - >找不到匹配

我甚至尝试将composer repo添加到我的composer.json中,但它无效。

任何帮助?

我需要作曲家所以我可以使用post / install&&发布/更新脚本。

谢谢

0 个答案:

没有答案