apache / apache/maven-install-plugin

[MINSTALL-170] more control over what artifacts to be installed.

Open
#169 3 comments 0 reactions 0 assignees View on GitHub
enhancement priority:major
Dominant language
Java
Stars
43
Forks
44
Avg merge
1d 23h
Merged PRs (30d)
11

Description

**[Ernst Reissner](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ernstreissner)** opened **[MINSTALL-170](https://issues.apache.org/jira/browse/MINSTALL-170?redirect=false)** and commented

Maybe it is the wrong way to file a feature request but maybe this is the best way to come into contact with the development team.

My problem is that I want to deploy both a jar and a tar.gz file.
The latter I create with an assembly plugin.
Unfortunately, the assembly plugin forces the name `artifact-version-assId.tar.gz`
and offers no way to have empty assId.
The tar.gz is used in another software which strictly speaking requires `artifact-version.tar.gz`.

So I had the simple idea to just move `artifact-version-assId.tar.gz` to `artifact-version.tar.gz`
using exec plugin in a phase before install.

Well of course i want the install plugin to install now `artifact-version.tar.gz` instead of `artifact-version-assId.tar.gz`.
But the install plugin still wants to use the original artifact.

My somehow academical question would be how install plugin determines the artifact to be installed and to modify that info appropriately.
It seems to have nothing to do with the packaging as the original tar.gz is installed also.

If I need to define another kind of packaging.... installing other kinds of artifacts,
may I reuse the install plugin????

Help very much appreciated.

---

**Affects:** 3.0.0-M1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.