GitHub user CMoH opened a pull request:
https://github.com/apache/karaf/pull/214
Fix karaf-maven-plugin attaching the same artifact multiple times
The problem occurs when creating assemblies with karaf-maven-plugin version
4.0.4 (and I assume later on by looking at the code). One can examine the
output of mvn -X and look for the attachedArtifacts list to confirm that
assembly artifacts appears twice.
The effect is that maven-install-plugin to install each artifact (zip and
tar.gz, for instance) twice in the local repository, which does not cause any
visible problem. It also seems to check if the artifacts are the same and skip
duplicates.
However, maven-deploy-plugin fails when attempting to upload a release
version twice (if the repository server is configured to reject release
overwrites), which in turn failed my run of maven-release-plugin.
I hope the above explains the changes I submitted to you, and that you will
consider applying them.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/CMoH/karaf fix-attach-artifacts
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/karaf/pull/214.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #214
----
commit 68ae8c5434fe4fa9c206bca32f8001b07338a179
Author: Ciprian Ciubotariu <[email protected]>
Date: 2016-07-25T22:49:28Z
Fix karaf-maven-plugin attaching the same artifact multiple times
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---