在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):micha149/gulp-maven-deploy开源软件地址(OpenSource Url):https://github.com/micha149/gulp-maven-deploy开源编程语言(OpenSource Language):JavaScript 100.0%开源软件介绍(OpenSource Introduction):gulp-maven-deployA Gulp wrapper for the maven-deploy module. Enables you to have projects which are built with Gulp, but deploys to Maven repositories. All the samples below require a basic understanding of Gulp and Maven. Please look at the documentation for those projects for details. This readme refers to 1.x versions. If you are still using the 0.x versions, have a look into the 0.x support branch. Installing
Sample usage in a gulpfile.jsBelow are two configuration samples: Configuring a task for deploying to a Maven proxy var gulp = require('gulp'),
maven = require('gulp-maven-deploy');
zip = require('gulp-zip');
gulp.task('deploy', function() {
return gulp.src('.')
.pipe(zip('my-artifact.war'))
.pipe(maven.deploy({
'groupId': 'com.mygroup',
'repositories': [{
'id': 'some-repo-id',
'url': 'http://some-repo/url'
}]
}))
}); A task running a local Maven install: var gulp = require('gulp'),
maven = require('gulp-maven-deploy'),
zip = require('gulp-zip');
gulp.task('deploy-local', function() {
return gulp.src('.')
.pipe(zip('my-artifact.war'))
.pipe(maven.install({
'groupId': 'com.mygroup',
}))
}); Note: A local install in Maven means it is only available on your machine. A deployment is different as it means you ship the artifact off to some remote repository. Upgrading from 0.x to 1.xWith
Example projectThere is a complete example project if you checkout the example directory.
This will install gulp and allow you to run the sample. Gulp will run with with a local deploy configuration
by default. You should see an artifact deployed to your local Running tests
ContributionsAll pull requests and issues are welcome! Big thanks to Gregers for making the maven-deploy module. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论