maven-deploy-plugin

How can I deploy only the pom file to my snapshot repository in Maven?

纵饮孤独 提交于 2019-12-05 02:12:16
I would like to be able to deploy only the POM artifact (file) without the main artifact (JAR, WAR, etc), when running mvn deploy and version is a SNAPSHOT version. Why? We several developers working on multiple Maven projects. We have a Hudson server with a job per Maven project and version (e.g. foo-1.2, foo-1.3). Each job builds the project and deploys it to a Nexus server (upon success). Maven projects under development are marked as such by using -SNAPSHOT postfix in the version. For example: 1.2-SNAPSHOT, 1.3-SNAPSHOT. Here's a sample scenario how a developer work is damaged due to this

How to deploy only zip artifacts in maven

风格不统一 提交于 2019-12-04 04:54:06
I have done some zip packaging in maven using the below descriptor and pom file. But in maven by default it created both jar and zip in target folder. Now i want to deploy only zip contents where i am using deploy:deploy-file plugin. but it is not deploying instead it is showing error. Not sure what is wrong with tag and how it should be resolved. Pom file: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion>

Connector for maven deployment?

不想你离开。 提交于 2019-12-04 01:52:00
I have created a working maven archetype for a Vaadin/Hibernate/Spring project. I am able to install this archetype to my local repository and use it to generate new maven projects. Now I want to deploy the archetype to my companies internal repository, so it might be used by other developers. However, when I run mvn deploy I recieve the following error message: [ERROR] Failed to execute goal org.apache.maven.plugins: maven-deploy-plugin:2.7:deploy (default-deploy) on project vaadin-hibernate-archetype: Failed to deploy artifacts/metadata: No connector available to access repository maven

mvn deploy:file to different repositories for snapshot and release version

╄→гoц情女王★ 提交于 2019-12-03 22:23:46
Is it possible to in some way tell the maven deploy:file goal to deploy to two independent artifactories based on whether the version of the project is a snapshot / release? I'm hoping there might be a property which indicates the fact the version has -SNAPSHOT prepended, or perhaps the default artifactory to deploy to (which has been worked out based on the version number already). I thought about using two different profiles and working out if its a snapshot in ant by parsing the pom.xml file, but I'd rather a cleaner solution if possible. Currently, my deploy plugin looks as follows, but

maven-metadata.xml is not updated when deploying to nexus

不问归期 提交于 2019-12-03 12:04:45
i am using Apache Maven 3.0 Nexus Open Source Edition, Version: 1.8.0.1 this is part of my pom.xml <plugin> <artifactId>maven-deploy-plugin</artifactId> <version>2.5</version> </plugin> <plugin> <artifactId>maven-release-plugin</artifactId> <version>2.1</version> </plugin> <distributionManagement> <repository> <id>nexus</id> <name>nexus</name> <url>http://myrepo/nexus/content/repositories/releases</url> </repository> </distributionManagement> it is a very simple project. when i do mvn release:prepare mvn release:perform everything runs fine: ... [INFO] [INFO] --- maven-deploy-plugin:2.5:deploy

How can I deploy a zip file created with the maven-antrun-plugin?

只愿长相守 提交于 2019-11-30 02:27:36
I'm using the maven-antrun-plugin to do a bunch of work with Ant, which ultimately results in a zip file. I'd like to deploy the zip file to our maven server (Artifactory). The maven-antrun-portion works as intended and successfully creates the zip file; however deployment fails with the following error message: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on project projectname: The packaging for this project did not assign a file to the build artifact My POM file is as follows: <project

How to restructure Maven multi-module project?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 12:44:32
问题 I appologize for the length of this post, but I had trouble making it more concise without presenting the picture. I've recently inherited the job of build-master for a maven 3.0 multi-module project. The problem is that the structure of the project/modules is a disaster. From the way things are currently stored in Source Control (we use RTC) to the pom structure of the modules, I'm tearing my hair out trying to get a full build cycle completed each time. As a project hierarchy goes, all the

Maven deploy plugin - deployAtEnd not working

て烟熏妆下的殇ゞ 提交于 2019-11-29 10:50:34
I'm using maven-deploy-plugin in multi-module project with deployAtEnd property set to true . After executing mvn deploy in root project, deploy plugin is executed for each subproject - I can see something like: [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ subproject-name --- [INFO] Deploying package:subproject-name:v1.1 at end Last invocation is for root project: [INFO] --- maven-deploy-plugin:2.8.2:deploy (default-deploy) @ parent-project --- [INFO] Deploying package:parent-project:v1.1 at end and that's all, actual deployment is not executed. How do I make deploy plugin

How can I deploy a zip file created with the maven-antrun-plugin?

随声附和 提交于 2019-11-28 23:23:24
问题 I'm using the maven-antrun-plugin to do a bunch of work with Ant, which ultimately results in a zip file. I'd like to deploy the zip file to our maven server (Artifactory). The maven-antrun-portion works as intended and successfully creates the zip file; however deployment fails with the following error message: org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.6:deploy (default-deploy) on project projectname: The

Maven maven-deploy-plugin always upload twice

不羁岁月 提交于 2019-11-28 20:47:52
I've a problem when publishing component to a Nexus repository, Maven upload the file twice: first time with maven-deploy-plugin groupId/artifactId/version parameters (that's what I want) second time with pom groupId/artifactId/version parameters (that's what I DON'T want) I launch packaging/deployment with the following command (see pom.xml file at the bottom): mvn clean package deploy:deploy-file -e -f pom.xml Here is the snippet of maven output console when handling deploy phase (the 6 first lines are correct but notice the 2 last lines with pom groupId/artifactId/version): [INFO] --- maven