Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/26.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular 如何使用gulp将war文件部署到nexus?(2)_Angular_Gulp_War_Web Deployment_Nexus - Fatal编程技术网

Angular 如何使用gulp将war文件部署到nexus?(2)

Angular 如何使用gulp将war文件部署到nexus?(2),angular,gulp,war,web-deployment,nexus,Angular,Gulp,War,Web Deployment,Nexus,我有一个可以工作的Angular应用程序,并创建了一个gulpfile,将我的dist文件夹包装到一个war文件中,以便部署。但是,下一步是编写脚本,将war文件写入Nexus存储库。我怎样才能通过大口大口喝达到这个目的?我做了一些研究,有一个工具可以使用(NexusDeployer)。您可以使用它来编写如下内容: var deployer = require('nexus-deployer'); gulp.task('deploy:artifacts', ['artifac

我有一个可以工作的Angular应用程序,并创建了一个gulpfile,将我的dist文件夹包装到一个war文件中,以便部署。但是,下一步是编写脚本,将war文件写入Nexus存储库。我怎样才能通过大口大口喝达到这个目的?我做了一些研究,有一个工具可以使用(NexusDeployer)。您可以使用它来编写如下内容:

    var deployer = require('nexus-deployer');


    gulp.task('deploy:artifacts', ['artifacts:generate'], 
    function(callback) {

    var snapshot = {
    groupId: 'nexus-deployer',
    artifactId: 'nexus-deployer',
    version: '1.2-SNAPSHOT',
    packaging: 'zip',
    auth: {
        username:'admin',
        password:'admin123'
    },
    pomDir: 'build/pom',
    url: 'http://localhost:8081/nexus/content/repositories/snapshots',
    artifact: 'build/nexus-deployer.zip',
    noproxy: 'localhost',
    cwd: '',
    quiet: false,
    insecure: true
    };

    deployer.deploy(snapshot, callback);

    });
不幸的是,我无法使用此工具,因为它来自外部源。是否有其他方法可以在不使用软件包/工具的情况下实现这一点

谢谢你的帮助