Angular 如何使用gulp将war文件部署到nexus?(2)
我有一个可以工作的Angular应用程序,并创建了一个gulpfile,将我的dist文件夹包装到一个war文件中,以便部署。但是,下一步是编写脚本,将war文件写入Nexus存储库。我怎样才能通过大口大口喝达到这个目的?我做了一些研究,有一个工具可以使用(NexusDeployer)。您可以使用它来编写如下内容: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
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);
});
不幸的是,我无法使用此工具,因为它来自外部源。是否有其他方法可以在不使用软件包/工具的情况下实现这一点
谢谢你的帮助